Dime333 Posted July 6, 2016 Posted July 6, 2016 I'm running an app called HyperElectronicAHK.exe that is a compiled script that looks like this: Loop { Process, Exist, mame.exe If ErrorLevel <> 0 run taskkill /IM HyperElectronicAHK.exe,, Hide Else t::9 y::8 U::7 b::6 a: s::- q::- w::- e::- z::- x::- c::- v::- l::- o::- h::- j::- k::- } It's remapping keys and I want the script to stop if mame is running. What am I doing wrong?
Dime333 Posted July 8, 2016 Author Posted July 8, 2016 I'm sure this is easy for anyone who knows ahk. Please help me out, guys.
Guest Posted July 14, 2016 Posted July 14, 2016 Does the task kill line work in the command line? As in, does the command 'taskkill /IM HyperElectronicAHK.exe' do what you want when you run it in a command prompt? Also, I wouldn't task kill the script, from within the script. There are better and more supported methods for having a script end - check out the AHK docs.
Dime333 Posted July 14, 2016 Author Posted July 14, 2016 You might want to ask on the AHK forums. I can't do that since you can't register.
Dime333 Posted July 14, 2016 Author Posted July 14, 2016 Does the task kill line work in the command line? As in, does the command 'taskkill /IM HyperElectronicAHK.exe' do what you want when you run it in a command prompt? Also, I wouldn't task kill the script, from within the script. There are better and more supported methods for having a script end - check out the AHK docs. Yes it does, but I don't need this script anymore. Thanks for posting though, guys.
Guest Posted July 14, 2016 Posted July 14, 2016 I can't do that since you can't register. Your using the old forum. Click the green forum button on this page to get to the new one, where you can sign up and post. https://autohotkey.com
Dime333 Posted July 14, 2016 Author Posted July 14, 2016 Your using the old forum. Click the green forum button on this page to get to the new one, where you can sign up and post. https://autohotkey.com Oh my god. Thank you. Here I've been swearing for years
Guest Posted July 14, 2016 Posted July 14, 2016 Oh my god. Thank you. Here I've been swearing for years I only know because I did the same!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.