Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v1) • Issues with using the Windows Key

$
0
0
Hello, i tried to implement a hotkey for the Windows Magnifier that enlarges my view when being hold down. If i now run the script below it shows some weird behavior, first it repeats itself (this is probably the easiest to fix with a variable that checks if the Magnification is set or not). The thing that gave me more grey hair is that the Magnification is not only triggered by the Q key as intended, but also by the F2 key which should not trigger the corresponding code.
Iam thankful for every input on why this happens, ty in advance!


CODE:

*f1::
Suspend, Permit
send {RWin up}
send {+ up}
ExitApp

*f2::
Suspend
send {RWin up}
send {+ up}

q::
{
send {RWin down}
send {+}
send {RWin up}
sleep 300
}

q Up::
{
send {RWin down}
send {-}
send {RWin up}
sleep 300
}

Statistics: Posted by FirstTimeUser_2 — Today, 10:00



Viewing all articles
Browse latest Browse all 579

Trending Articles