how do i undo a hotkey script?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
wolfmagic
Posts: 7
Joined: 17 Feb 2017, 15:53

how do i undo a hotkey script?

20 Apr 2018, 15:33

how do i undo a hotkey script?
gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: how do i undo a hotkey script?

20 Apr 2018, 16:12

You mean, how to stop it?
Right-click the script icon (white H on green background) in the system tray and choose 'exit', or reboot your computer - AHK hotkey scripts don't make permanent changes (alternatively, end the script in task manager).
wolfmagic
Posts: 7
Joined: 17 Feb 2017, 15:53

Re: how do i undo a hotkey script?

20 Apr 2018, 19:15

rebooting not a great option, so thanks. good to know. some odd things in other apps started happening with my first simple remap, so had to break out.
gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: how do i undo a hotkey script?

20 Apr 2018, 19:31

At least - but not only - for testing, it is always good practice to add a hotkey that exits the script. For example:

Code: Select all

#Esc::Exitapp		; Hit Win+Escape to exit
wolfmagic
Posts: 7
Joined: 17 Feb 2017, 15:53

Re: how do i undo a hotkey script?

20 Apr 2018, 20:40

ok will do. i undid the script as noted, it worked. now i want to redo it, but it won't do anything. does that sound right or whack? probably need to reboot dont i?
gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: how do i undo a hotkey script?

20 Apr 2018, 20:49

Actually no... rebooting doesn't make much sense here - unless you placed a shortcut to the script in your startup folder (but even then rebooting wouldn't be necessary to just restart the script)
Just double-click the script to start it again. Its icon should appear again in the systray and its process in task manager.

In doubt, post your script.
bandel_nation
Posts: 1
Joined: 23 Jan 2021, 05:25

Re: how do i undo a hotkey script?

23 Jan 2021, 06:05

Hi,
I'm very frustrated and would deeply appreciate your help.
I made a script that should map numbers to arrows (also should map '7' to 'home' and 9 to 'end'):
"

Code: Select all

Numpad4::NumpadLeft
Numpad5::NumpadDown
Numpad6::NumpadRight
Numpad8::NumpadUp
Numpad7::NumpadHome
Numpad9::NumpadEnd
[Mod edit: [code][/code] tags added.]
"

The mapping of 5 and 9 didn't work, only the mapping of 4,6,7, 8.
So I want to undo it all.
When I exit the script as described ("Right-click the script icon (white H on green background) in the system tray and choose 'exit'") and restart the computer - the mapping still happens (all of it, including the wrong part of it).
I also uninstalled the AutoHotKeys and restarted the computer - and the mapping still happens.

Is it possible that it changed something permanently ?
How can I undo it ? I want to go back to the state where there was no change at all.

Thanks,
Bandel
gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: how do i undo a hotkey script?

23 Jan 2021, 06:12

bandel_nation wrote:
23 Jan 2021, 06:05
Is it possible that it changed something permanently ?
With the code above? No, not possible.

Did you perhaps put a link or a script into your startup folder that starts the script when Windows starts? Then delete that.
But if there are no Autohotkey.exe processes running, it's not AHK-related (at least not from our official AHK version).

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: doodles333, mikeyww and 307 guests