Jump to content
Sign in to follow this  
Homer90001

Help a Noob :)

Recommended Posts

Homer90001

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 :lmao:

heres the code...

hotkeyset("{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 :ph34r:

Edited 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

Share this post


Link to post
Share on other sites
cppman

actually... it works for me. Are you trying to press a button or what? A little more info would help :lmao: Are you trying to send the keys to an edit control or something...

Edited by CHRIS95219

Share this post


Link to post
Share on other sites
Homer90001

actually... it works for me. Are you trying to press a button or what? A little more info would help :ph34r: 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....:lmao:

Edited 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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.