Sign in to follow this  
Followers 0
AutoItNoobie

Need Help With Script For Spamming F-keys

2 posts in this topic

#1 ·  Posted (edited)

I'm a total Autoit noob :( I've read a lot of the examples in the help file, but I have a problem that I can't solve myself.

Someone in this forum posted a way to spam F-keys in a game called Flyff.. maybe some of you know it. I tried to make his script work, but I can't get it working :) .

The script works fine in a normal document, but it doesn't work ingame.

; Press Esc to terminate script, Pause/Break to "pause"

Global $Paused, $t = 0
HotKeySet("{F10}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("{F11}", "ShowMe")  


While 1
    If $t =1 Then
        for $i = 1 to 5
        send("{F5}")
        sleep( 2000)
        next
        send("{F1}")
        sleep( 1000)
        send("{F1}")
        sleep( 2000)
    EndIf
WEnd
;;;;;;;;

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate()
    Exit 0
EndFunc

Func ShowMe()
    If $t = 1 then
        $t = 0
        Return
    EndIf
    
    If $t = 0 then
        $t = 1
        Return
    EndIf
  
EndFunc

Maybe someone could help me out here.

Could it have anything to do with the protection that flyff uses? Gameguard?

Thanks,

EDIT:

I Tried this really simple script:

HotKeySet ("+{Esc}","End")

MsgBox (0,"","Press Shift esc to end")

While 1
    Send ("789")
    Sleep (7000)
WEnd

Func End()
    Exit
EndFunc

But even this doesn't work in flyff, but does work in a normal document.

Edited by AutoItNoobie

Share this post


Link to post
Share on other sites



Maybe someone could help me out here.

Could it have anything to do with the protection that flyff uses? Gameguard?

Many of the more advanced game protections now-a-days block the ability to progmatically send keys or get pixel colors from their games. They hook into the API calls and insert a JMP at the begining of each call so while the game is running you can not use these functions.


AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc)

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