Sign in to follow this  
Followers 0
NoNam3

n00b need some help

5 posts in this topic

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 :whistle:. I tryed to find something in this forum but i missed.

I tryed my best but now Ineed some help please :)

Share this post


Link to post
Share on other sites



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?

Share this post


Link to post
Share on other sites

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ÊË^[&^­è¬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++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

:whistle:


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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0