Is it possible to make a script, that would switch profiles in Throttlestop 8.60? Built-in hotkeys are restricted to ctrl-alt-shift + number, i want to bind it to "Win+Ctrl+1" for profile #1 and "Win+Ctrl+2" for profile 2.

up vote 0 down vote accepted

AutoHotkey should allow you to do that simply by assigning your desired shortcut key to the pre-existing key the program accepts already.

For example, the main code in the script could use hotkey assignments looking something like this:

#IfWinActive, Throttlestop     ; Make this match the WinTitle as needed--see AHK docs

#^2::                   ; Win+Ctrl+2
    SendInput, ^!+2     ; Ctrl+Alt+Shift+2
Return

^!+2::Return            ; Turn off App's default hotkey combo (return without action)

#IfWinActive            ; Allow subsequent hotkeys to be global

After downloading AutoHotkey you could modify the default script and then run it-- it will have an 'H' icon in the system tray after starting it up.

  • Thanks, my original app's hotkeys must be active in order to work, but is it possible to turn off app's default hotkeys with autohotkey? – Alexander Kim Sep 10 at 5:04
  • Just add another hotkey of that definition and return with no action. See updated post. SendInput won't trigger this new hotkey since it obeys a SendLevel that will exclude it by default (so one hotkey can send those keys, and another can exclude them from the app). – JJohnston2 Sep 11 at 6:07
  • Order is important? If i place that blank return above - then it wouldn't work, right? – Alexander Kim Sep 11 at 7:45
  • Order is not important. They are two different hotkeys and can be listed in any order. – JJohnston2 Sep 12 at 3:50

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.