Unc3nZureD Posted August 16, 2011 Share Posted August 16, 2011 (edited) I tried to make a VERY VERY simple script to let me make my life easier. But when I tried to modify I got an error:So this code works:HotKeySet("{ESC}", "Terminate") HotKeySet("{SPACE}", "_Jump") While 1 Sleep(100) WEnd Func Terminate() Exit 0 EndFunc Func _Jump() Send("{SHIFTDOWN}") Sleep(100) Send("{SPACE DOWN}") Sleep(900) Send("{SHIFTUP}") Send("{SPACE UP}") EndFuncBut For example if I make a hotkey with the LCTRL it won't work.HotKeySet("{ESC}", "Terminate") HotKeySet("{LCTRL}", "_Jump") While 1 Sleep(100) WEnd Func Terminate() Exit 0 EndFunc Func _Jump() Send("{SHIFTDOWN}") Sleep(100) Send("{SPACE DOWN}") Sleep(900) Send("{SHIFTUP}") Send("{SPACE UP}") EndFuncI can't understand what's wrong with my second source... Edited August 16, 2011 by Unc3nZureD Link to comment Share on other sites More sharing options...
wakillon Posted August 16, 2011 Share Posted August 16, 2011 use ^ instead of {LCTRL} AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Developers Jos Posted August 16, 2011 Developers Share Posted August 16, 2011 Check the helpfile, in particular this section: The following hotkeys cannot be set SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Unc3nZureD Posted August 16, 2011 Author Share Posted August 16, 2011 Check the helpfile, in particular this section: The following hotkeys cannot be setOh lol, I forgot it Link to comment Share on other sites More sharing options...
PowerCat Posted August 16, 2011 Share Posted August 16, 2011 Also check the website rules about game automation. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 16, 2011 Developers Share Posted August 16, 2011 Also check the website rules about game automation.We all know what it is likely used for and I am sure the OP is aware of the rules here, but we are not going to have a crusade like they did in the time of the Spanish inquisition. That would mean we would have to start drowning people and see if they float or sink.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
PowerCat Posted August 16, 2011 Share Posted August 16, 2011 We all know what it is likely used for and I am sure the OP is aware of the rules here, but we are not going to have a crusade like they did in the time of the Spanish inquisition. That would mean we would have to start drowning people and see if they float or sink.JosHe turned me into a newt! Link to comment Share on other sites More sharing options...
Dana Posted August 17, 2011 Share Posted August 17, 2011 He turned me into a newt!But you got better? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now