I want to press PAGEUP
after that I want CONTROL to be held down until I press PAGEUP again.
Press PAGEUP for a second time needs to release the CONTROL key for being held down.
I've look for scripts and changing the keys, but I can never get it working...
Toggle Key Being Held Down
-
- Posts: 216
- Joined: 30 Jun 2016, 06:01
Re: Toggle Key Being Held Down
Hallo,
try:
try:
Code: Select all
PgUp::
Toggle := !Toggle
If (Toggle)
{
Send {Ctrl down}
} Else {
Send {Ctrl up}
}
Return
Re: Toggle Key Being Held Down
thank you for your help, but after I un-toggle the PAGEUP command, control is still being held down... it is strange.
For example, if I run your script, and un-toggle it, and then go to firefox and scroll up or down, it will resize the webpage (as if CONTROL is being held down)
I need to press CONTROL for everything to work like normal again.
For example, if I run your script, and un-toggle it, and then go to firefox and scroll up or down, it will resize the webpage (as if CONTROL is being held down)
I need to press CONTROL for everything to work like normal again.
-
- Posts: 216
- Joined: 30 Jun 2016, 06:01
Re: Toggle Key Being Held Down
Maybe change it to LCtrl instead of Ctrl?
Re: Toggle Key Being Held Down
I got it working! Thank you so much! I was using this with a program that lets me live draw on the screen, and this script allows me to use it with my script.
ESC::Send --
PgUp::Ctrl
ESC::Send --
PgUp::Ctrl
Who is online
Users browsing this forum: Kodakku and 371 guests