Jump to content

need help with simple script :D


Hawker
 Share

Recommended Posts

um...help plz <_<

; Press Home to terminate script, ] to "pause"

Global $Paused

HotKeySet("{]}", "TogglePause")

HotKeySet("{Home}", "Terminate")

HotKeySet("{F12}", "ShowMessage") ;Shift-Alt-d

;;;; 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(home)

Exit 0

EndFunc

Func ShowMessage(F12)

MsgBox(4096,"","This is a message.")

EndFunc

; Double click at the current mouse pos

MouseClick("right")

MouseClick("right")

Sleep(1000) ;one second

$i = 0

While $i <= 10

MsgBox(0, "Value of $i is:", $i)

$i = $i + 1

WEnd

Edited by Hawker
Link to comment
Share on other sites

Global $Paused=0
HotKeySet("{]}", "TogglePause")
HotKeySet("{Home}", "Terminate")
HotKeySet("{F12}", "ShowMessage") ;Shift-Alt-d
HotKeySet("{F11}", "_Click")

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

Func TogglePause()
$Paused = NOT $Paused
EndFunc

Func Terminate()
Exit 0
EndFunc

Func ShowMessage()
MsgBox(4096,"","This is a message.")

EndFunc
; Double click at the current mouse pos


Func _Click()
    While Not $Paused
    MouseClick("right")
    MouseClick("right")
    Sleep(1000) ;five seconds
    WEnd
EndFunc
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...