NoNam3 Posted August 12, 2006 Share Posted August 12, 2006 Hello, i am new to autoit and programming. I need to make a script for a Beat em up. I want to do a combo when i press the key "a". I tryed do do it myself. I readed the help-file andI had done this until now: ; Script Start - Add your code below here HotKeySet ( "a" [, "Lightningbolt"] ) Func Lightningbolt() Send ( "c" [, flag] ) sleep (100); Send ( "Down" [, flag] ) sleep (100); Send ( "Left" [, flag] ) sleep (100); Send ( "y" [, flag] ) EndFunc It allways tells me there is an error in line 12 . I tryed to find something in this forum but i missed. I tryed my best but now Ineed some help please Link to comment Share on other sites More sharing options...
azeazezar Posted August 12, 2006 Share Posted August 12, 2006 ; Script Start - Add your code below here HotKeySet ( "a" , "Lightningbolt" ) Func Lightningbolt() Send ( "c" ) sleep (100); Send ( "Down" ) sleep (100); Send ( "Left" ) sleep (100); Send ( "y" ) EndFunc Try this ^^ Link to comment Share on other sites More sharing options...
NoNam3 Posted August 12, 2006 Author Share Posted August 12, 2006 Thx azeazezar Now I dont get any errors by starting the script. But it looks like i have another problem. Dont know if its a problem in the scrip or maybe I am doing something wrong but when i start the script i can see the autoit icon in systray for a second and then its gone. I looks like my autoit script closes itself? Link to comment Share on other sites More sharing options...
azeazezar Posted August 12, 2006 Share Posted August 12, 2006 ; Script Start - Add your code below here HotKeySet ( "a" , "Lightningbolt" ) Func Lightningbolt() Send ( "c" ) sleep (100); Send ( "Down" ) sleep (100); Send ( "Left" ) sleep (100); Send ( "y" ) EndFunc while 1 sleep (100) wend try this Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 12, 2006 Share Posted August 12, 2006 Hello, i am new to autoit and programming. I need to make a script for a Beat em up. I want to do a combo when i press the key "a". I tryed do do it myself. I readed the help-file andI had done this until now: ; Script Start - Add your code below here HotKeySet ( "a" [, "Lightningbolt"] ) Func Lightningbolt() Send ( "c" [, flag] ) sleep (100); Send ( "Down" [, flag] ) sleep (100); Send ( "Left" [, flag] ) sleep (100); Send ( "y" [, flag] ) EndFuncoÝ÷ ØZÊË^[&zØ^è¬jw«®âX§{]¶¼vÚwl¢g)à{aÇè®éºØ¦ËtkÉçfÉ·¬µ»ç²éi¦W±ïêº^.$²X¤y¬Þk7³j¸½ì¨¹¨(¡Ö§³«jZÞiÜë-Á©íyÛhi×jºVzW(ëhëh!=÷ªê-jwa¢²¢ëkÊÊ&zj+zÇ+l&ë-~íºÚ+©wöËäázÊ®j·§$zÛ"Ø^éi~)^{¦¦W¬uéèµê)¶*'jWâzWl¶v趯zÚz)Üç^u©ÝûayøجºÇvÂ+a¢ëmë*¹ªÞn¶ëlM©"¨º´×(f§vƬ{¦¦W¬b¬yëayú%"§¶¡zZ_Wªº^Iéݪê-쬪ê-~V =ªÚë^®ÉÊÄázǪ¹éÜzä{+-¢Ç§uùZmÚ(Z¬*ºd{+*ºb²èqë,y×åjoÝ÷ Ø ÝºÇçåjh±éݬ0«p¢é]¢Ø^¯¬z¯y·«)yÈG²jëh×6Send ( "{Down}", 1) ; Sends {, D, o, w, n, }, as raw key strokes Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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