- Code: Select all
<Hotkey w>
<Toggle>
<DoHotKey HotKey Junja>
<Toggle>
<Cancel>
<Hotkey Junja>
<SendLabel w1, w2, w3>
<Key w>
<wait 1>
<DoHotKey Hotkey Junja>
<Hotkey w>
<Toggle>
<DoHotKey HotKey Junja>
<Toggle>
<Cancel>
<Hotkey Junja>
<SendLabel w1, w2, w3>
<Key w>
<wait 1>
<DoHotKey Hotkey Junja>
Cardinal_Ximinez wrote:Knowing that HKN doesn't really send typematic keys, I was wondering if this script would cause any problems? I wasn't sure if your scripts would allow recursion and if it would cause any stack problems in the long run.
Just trying to figure out a way to do movement keys in Lotro in a typematic way.
<Label x 192.168.1.103 SendFocusWin>
<Hotkey W> // TRIGGERED BY FINGER PRESS
<DoHotkey Hotkey Junja>
<HotkeyUp W> // TRIGGERED BY FINGER RELEASE
<SendLabel x>
<KeyUp W>
<SendPC Local>
<Cancel>
<Hotkey Junja>
<SendLabel x>
<KeyDown W> // TYPEMATIC EVENTS ARE PURELY PRESSES WITHOUT RELEASES
<SendPC Local>
<Wait 67> // APPROXIMATE DEFAULT TYPEMATIC INTERVAL
<DoHotkey Hotkey Junja>
BloodCloud wrote:I tried this in the past, but it didn't work.
It completely froze up HKN
HotkeyNet wrote:
While it's running, HotkeyNet can't do anything else because by design, Hotkeynet executes only one hotkey at a time.
That doesn't mean the sample doesn't work. It means that by design, HotkeyNet can't do anything else while it's running.
<Hotkey 1>
<sendlabel x>
<Toggle>
<SetVar START 1>
<dohotkey hotkey 2>
<Toggle>
<SetVar START 0>
<Hotkey 2>
<If START Is 1>
<sendlabel x>
<key 2>
<wait 1000>
<dohotkey hotkey 2>
HotkeyNet wrote:It doesn't freeze up HotkeyNet. You need a <Cancel> hotkey to stop the loop. The loop continues indefinitely until you stop it with <Cancel>. As soon as you press the <Cancel> hotkey, the loop stops. That's why I provided a <Cancel> hotkey with the sample above.
Basically had a loop which pressed 2 every second, and tried to influence (start/stop) by pressing 1.
Which didn't work and just completely froze up HKN
Users browsing this forum: No registered users and 1 guest