Can someone help me with this keywait thing? ( aware that it looks similar to my last post but it’s slightly different)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
joeplinde
Posts: 3
Joined: 05 Jun 2023, 16:14

Can someone help me with this keywait thing? ( aware that it looks similar to my last post but it’s slightly different)

Post by joeplinde » 06 Jun 2023, 11:47

can someone help me with this? whenever i press "o" or scroll "scolldown" while still holding the key "f" i want it to only send "Sendinput { insert up }" but when "o" or "scrolldown are not touched while holding the "f" key i want it to send as normal. also when "f" key is not held down i want everything to just work as normal. following script:

Code: Select all

$*~f::
sleep 1
SendInput {insert down}
KeyWait, f
{
sleep 0.1
}
SendInput {f}
SendInput {insert up}
Return

[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]

User avatar
boiler
Posts: 16768
Joined: 21 Dec 2014, 02:44

Re: Can someone help me with this keywait thing? ( aware that it looks similar to my last post but it’s slightly differe

Post by boiler » 06 Jun 2023, 13:31

@joeplinde -- Please enclose your code in [code][/code] tags when posting code on the forum. Thank you.

Post Reply

Return to “Ask for Help (v1)”