From the input box at User|Manage Commands...|Load Script File|Script File, I'm trying to load a script using this line:
<xyscripts>\ChildLauncher\ChildLauncher.xys "openWithMode"
Once the script is running, I want to check if the argument
openWithMode
was passed. It will be optional, so the script shouldn't break if the argument wasn't passed. Here's my code so far...Code: Select all
// ---------------------------------------------------------------------
// Check if ChildLauncher was called in openWithMode
// ---------------------------------------------------------------------
$openWithMode = "false";
// Toolbar button: Left-click + Shift
if (get("trigger", "mousebtn") == 1 && get("trigger", "callshift") == 1) {
$openWithMode = "true";
}
// Argument: ChildLauncher.xys "openwith"
if ($ARGUMENT_1 LikeI "openWithMode") {
$openWithMode = "true";
}
Any tips?