Unc3nZureD 13 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 Share this post Link to post Share on other sites
wakillon 403 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 Share this post Link to post Share on other sites
Jos 2,210 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. Share this post Link to post Share on other sites
Unc3nZureD 13 Posted August 16, 2011 Check the helpfile, in particular this section: The following hotkeys cannot be setOh lol, I forgot it Share this post Link to post Share on other sites
PowerCat 0 Posted August 16, 2011 Also check the website rules about game automation. Share this post Link to post Share on other sites
Jos 2,210 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. Share this post Link to post Share on other sites
PowerCat 0 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! Share this post Link to post Share on other sites
Dana 29 Posted August 17, 2011 He turned me into a newt!But you got better? Share this post Link to post Share on other sites