Repository navigation
|
Hi roblarky, welcome back. I’m trying to port logic from StrokesPlus.net to Input.Observer. Expected behaviour:
Working StrokesPlus.net code: Input.Observer’s scripting environment does not support |
Replies: 1 comment 1 reply
|
Hi, here's the Input.Observer version. Scripts have no Before you start: in Advanced mode, open the Ctrl+Shift+Alt+B trigger and turn Registered off. A registered hotkey takes those keys from every program, so the keys the action sends would never reach the program you're aiming at. Leave Swallow the final key on. StepsAdvanced mode. Add each step with All N builtins... unless noted.
240 passes × 20 ms plus the 200 ms hold is about 5 seconds, which is the safety timeout. To paste instead of clicking, open View code and use this: [[steps]]
id = 1
op = "call"
fn = "KeyboardKeyDown"
args = [{ const = "VirtualKey.LControlKey" }]
[[steps]]
id = 2
op = "call"
fn = "KeyboardKeyDown"
args = [{ const = "VirtualKey.LShiftKey" }]
[[steps]]
id = 3
op = "call"
fn = "KeyboardKeyDown"
args = [{ const = "VirtualKey.LMenu" }]
[[steps]]
id = 4
op = "call"
fn = "KeyboardKeyDown"
args = [{ const = "VirtualKey.B" }]
[[steps]]
id = 5
op = "call"
fn = "UtilityWait"
args = [200]
[[steps]]
id = 6
op = "repeat"
times = 240
[[steps]]
id = 7
op = "if"
condition = { fn = "MouseIsButtonDown", args = [{ const = "MouseButton.Left" }] }
[[steps]]
id = 8
op = "exit_repeat"
[[steps]]
id = 9
op = "end_if"
[[steps]]
id = 10
op = "call"
fn = "UtilityWait"
args = [20]
[[steps]]
id = 11
op = "end_repeat"
[[steps]]
id = 12
op = "call"
fn = "KeyboardKeyUp"
args = [{ const = "VirtualKey.B" }]
[[steps]]
id = 13
op = "call"
fn = "KeyboardKeyUp"
args = [{ const = "VirtualKey.LMenu" }]
[[steps]]
id = 14
op = "call"
fn = "KeyboardKeyUp"
args = [{ const = "VirtualKey.LShiftKey" }]
[[steps]]
id = 15
op = "call"
fn = "KeyboardKeyUp"
args = [{ const = "VirtualKey.LControlKey" }]ScriptNotes
|
Hi, here's the Input.Observer version. Scripts have no
while, butforcovers it, and Steps has Repeat with Exit the loop.Before you start: in Advanced mode, open the Ctrl+Shift+Alt+B trigger and turn Registered off. A registered hotkey takes those keys from every program, so the keys the action sends would never reach the program you're aiming at. Leave Swallow the final key on.
Steps
Advanced mode. Add each step with All N builtins... unless noted.
VirtualKey.LControlKeyVirtualKey.LShiftKeyVirtualKey.LMenuVirtualKey.B200240Mous…