Jump to content

Recommended Posts

Posted

hi, im very new to this scritping business, i need a script that has a keystroke and loops, ive tryed and failed many times :o any help would be helpful :geek:

Posted

1

Welcome to the Forums

2

to learn alot quickly see this

http://www.autoitscript.com/forum/index.php?showtopic=21048#

3

a small script that does what you asked ( unknown what you want to send )

; 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("{b}")
        Send("{r}")
        Sleep(100)
    WEnd
    ToolTip("")
EndFunc  ;==>TogglePause

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

8)

NEWHeader1.png

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
  • Recently Browsing   0 members

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