Jump to content

simple script help! ><


Pirossj4
 Share

Recommended Posts

hi, i'm new to auto it and this kind of thing but i was hoping for some help.

basicly i need to make a autoIT that does the following

presses enter

types : *Kite* rise

a seven secound delay

enter

types *Kite* iloveyou

a seven secound delay

then it repeats forever.

thanks for any help ! :o

Link to comment
Share on other sites

; Press Esc to terminate script, F9 to "run/pause"


Global $Paused
HotKeySet("{F9}", "TogglePause")
HotKeySet("{ESC}", "Terminate")


;;;; Body of program would go here;;;;
While 1
    Sleep(100)
WEnd
;;;;;;;;

Func TogglePause()
    $Paused = Not $Paused
    While $Paused
        ToolTip('Script is "Running"', 0, 0)
        Send("{ENTER}")
        Send("*Kite* rise", 1)
        Sleep(7000)
        Send("{ENTER}")
        Send("*Kite* I Love You", 1)
        Sleep(7000)
    WEnd
    ToolTip("")
EndFunc  ;==>TogglePause

Func Terminate()
    Exit 0
EndFunc  ;==>Terminate

to learn how to do stuff yourself

http://www.autoitscript.com/forum/index.ph...opic=21048&hl=#

8)

NEWHeader1.png

Link to comment
Share on other sites

I had to a few less lines but o-well

HotKeySet("{ESC}","_Terminate")

While 1
 Send("{Enter}*Kite* rise")
 Sleep ( 7000 )
 Send("{Enter}*Kite* iloveyou")
 Sleep ( 7000 )
WEnd

Func _Terminate()
 Exit
EndFunc

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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...