help me!!! sendinput insert up and cancel out the sendinput f on keywait

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

help me!!! sendinput insert up and cancel out the sendinput f on keywait

Post by joeplinde » 05 Jun 2023, 16:24

i'm very new to this, and i was wondering if someone could help me out.

for the follow script, i want whenever i use the "scroll down" or "o" while holding the f key. i only want it to sendinput insert up and cancel out the sendinput f on keywait. but when "o" or "scrollwheel" is not pressed or scrolled i want it to work as normal. if someone can help that would be great! thank you.

Code: Select all

$*~f::
sleep 1
SendInput {insert down}
KeyWait, f
{
sleep 0.1
}
SendInput {f}                    -so when i press "o" or "scrollwheel down" while still holding the f key.
SendInput {insert up}
Return
[Mod edit: [code][/code] tags added.]
[Mod edit: Wrong subforum: Moved topic to AHK v1 help, since this is not v2 code.]

joeplinde
Posts: 3
Joined: 05 Jun 2023, 16:14

Re: help me!!! sendinput insert up and cancel out the sendinput f on keywait

Post by joeplinde » 05 Jun 2023, 16:32

-so when i press "o" or "scrollwheel down" while still holding the f key.

with this i mean that i want that Sendinput {f} not to be send

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: help me!!! sendinput insert up and cancel out the sendinput f on keywait

Post by mikeyww » 05 Jun 2023, 17:01

I'm not sure whether this helps.

Code: Select all

#Requires AutoHotkey v1.1.33
f::f
f & o::
f & WheelDown::Send 123

Post Reply

Return to “Ask for Help (v1)”