notenjesus
notenjesus

Reputation: 11

AutoHotkey: Exit Script without pressing a key after its done

Run "C:\Program Files (x86)\Total CMA Pack\totalcmd.exe"    
^!F1::    
ExitApp    

My Script works so far but it doesnt quit after its done. I just want to start totalcommander and send a hotkey combo and then quit. ExitApp doesnt work for me in this case...:(

Upvotes: 1

Views: 2086

Answers (1)

Robert Ilbrink
Robert Ilbrink

Reputation: 7953

If you want to run TotalCommander and send a command, I would change this to:

SetTitleMatchMode, 2    
Run C:\Program Files (x86)\Total CMA Pack\totalcmd.exe
WinWait, TotalCommander
Send, ^!{F1}
ExitApp

Your ^!F1::ExitApp defined the hotkey ^!{F1} as the hotkey to run Exit App.
By changing the hotkey to a Send command, you will send the key combination to your Total Commander.

Upvotes: 1

Related Questions