Homer90001 Posted October 5, 2006 Share Posted October 5, 2006 (edited) Hello. I am pretty new to Autoit, and i have written a script. It works the way i want it to, but the application that i am trying to use this on dosent seem to accpet the keys. The app is flyff, if your wondering. this isnt meant to be a bot, just a time-saver heres the code... expandcollapse popuphotkeyset("{End}", "Attack") hotkeyset("{Delete}", "Close") hotkeyset("{Insert}", "Loot") $Attack = 0 $loot = 0 while 1 sleep(100) wend Func Attack() do send("c") sleep(750) $Attack = $Attack +1 Until $Attack = 15 $Attack = $Attack - 15 Beep(900, 500) endfunc Func Loot() Do send("{F3}") sleep(1000) $Loot = $Loot + 1 Until $Loot = 5 $Loot = $Loot - 5 Beep(100, 500) EndFunc func Close() exit 0 EndFunc What it does, as you can see, is sends the "c" key 15 times before beeping to tell me its done if i press "end" and sends the f3 key 5 times then beeps. I was wondering what i need to do to make the app accept the keys. Thanks Edited October 5, 2006 by Homer90001 "A man who has never gone to school may steal from a freight car; but if he has a university education, he may steal the whole railroad." - Theodore Roosevelt Link to comment Share on other sites More sharing options...
cppman Posted October 5, 2006 Share Posted October 5, 2006 (edited) actually... it works for me. Are you trying to press a button or what? A little more info would help Are you trying to send the keys to an edit control or something... Edited October 5, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
Homer90001 Posted October 5, 2006 Author Share Posted October 5, 2006 (edited) actually... it works for me. Are you trying to press a button or what? A little more info would help Are you trying to send the keys to an edit control or something...It works in notepad and other aplications, i know. But it dosent work in the program i wrote it for flyff. What i want it to do, is send "c" 10 times (the attack button for me) before beeping( to show its done).I think it is the nprotect game guard thing preventing my script from sending keys.... Edited October 5, 2006 by Homer90001 "A man who has never gone to school may steal from a freight car; but if he has a university education, he may steal the whole railroad." - Theodore Roosevelt 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