AutoHotkey's hotkeys do not work in Skyrim

AutoHotkey's hotkeys do not work in Skyrim - Woman Coding on Computer

Certain inventory operations are ridiculously tedious in Skyrim. I wrote myself a script that would sell my items one by one, because according to internet wisdom, you do not get Speech experience for every sold item if you sell them as stack.

The script looks like this (works only with the skyUI plugin):

toggle=0

F7::
If (toggle := !toggle)
{
  SetTimer, Timer, -1
}
return

timer:
while toggle
{
  Send {e down}
  Sleep, 50
  Send {e up}
  if (!toggle) {
    break
  }
  Sleep, 100
  if (!toggle) {
    break
  }
  Send {HOME down}
  Sleep, 50
  Send {HOME up}
  Sleep, 100
}
return

It works perfectly if I assign F12 as hotkey, but I am using that one for a script that just spams E. So what's wrong, why is F12 the only hotkey that seems to work in Skyrim?






Pictures about "AutoHotkey's hotkeys do not work in Skyrim"

AutoHotkey's hotkeys do not work in Skyrim - Photo of Woman Taking Notes
AutoHotkey's hotkeys do not work in Skyrim - High-rise Buildings
AutoHotkey's hotkeys do not work in Skyrim - Women at the Meeting





AutoHotkey - Beginners tutorial (All the basic functions)




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: ThisIsEngineering, Ivan Samkov, SevenStorm JUHASZIMRUS, RF._.studio