Jump to content

Siple Button Presser


Recommended Posts

I was wondering i know this wouldnt be to hard for you guys but how would i get a thing to just start off by pressing f6 five times with like a 2 second delay in between each press then have it press f1 and wait for a certain amount of seconds and then press f1 again delay for 2 seconds then loop back to the begging to press f6 all i want to do is make it so that i dont have to sit at the comp all day to level up a skill in flyff so if you could help me that would be great and how do i make it into a .exe so that you can start it up have a button that says start and above the button it tells you where to put the skill and the sit function i tryed to make a GUI but i got confused so if you could make a simple script that would be great

Link to comment
Share on other sites

then this

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

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("F2", "ShowMe")  

;;;; Body of program would go here;;;;
While 1
    Sleep(100)
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()
   while 1
for $i = 1 to 5
send("{F6}")
sleep( 2000)
next
send("{F1]")
sleep( "a certain amount of seconds")
send("{F1}")
sleep( 2000)
wend
EndFunc

use other hotkeys as you wish

8)

done on-the-fly *not tested*

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

it had an error... this is better

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

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


While 1
    If $t =1 Then
        for $i = 1 to 5
        send("{F6}")
        sleep( 2000)
        next
        send("{F1]")
        sleep( "a certain amount of seconds")
        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

do you have the autoit file... then you can create the exe

8)

NEWHeader1.png

Link to comment
Share on other sites

trial and error... here in this forum... but most of all

the help files have example scripts that practically write the damn script for you...

HOW ABOUT THIS

all that you see in the above script was from HELP combined with UP_NORTH 's script.... true (only minor changes)\

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

just tryed it at my friends house started it up it went to the system tray then started up the game and waited but nothing happened

<{POST_SNAPBACK}>

have to .......

press "F2" to start

press "Pause" to pause

press "ESC" to exit

press "F2" again to stop sending to the game

8)

NEWHeader1.png

Link to comment
Share on other sites

yeah thanks i got it to work and today i made an auto login well i took part of acouple scripts from people then edited them all to work still gets stuck at the character selection screen cuz sumtimes the guy is sitting down but yeah it works now im going to make an auto attacker and finding pixel and pixels shaded are hard but for the health bot can i just use this

; Wait until something changes in the region 0,0 to 50,50

; Get initial checksum

$checksum = PixelChecksum(0,0, 50,50)

; Wait for the region to change, the region is checked every 100ms to reduce CPU load

While $checksum = PixelChecksum(0,0, 50, 50)

Sleep(100)

WEnd

MsgBox(0, "", "Something in the region has changed!")

and make it so it check the top left area so taht when something on it changes it press f8 or also use it for the auto attacker like say its searches once sumthing changes it moves the mouse there double clicks then sleeps for x number of seconds then press f2 to pick up items then starts searching again??

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...