Sign in to follow this  
Followers 0
Pirossj4

simple script help! ><

6 posts in this topic

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

Share this post


Link to post
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

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

I just keep copying the same script and putting the new While/Wend request inside

i must have done this 10 times now

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

awww thanks, such nice people here!

Share this post


Link to post
Share on other sites

awww thanks, such nice people here!

Welcome... and

Welcome to AutoIt Forums

8)


NEWHeader1.png

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