Code:
Global $Paused
HotKeySet("{F6}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
$Msg = MsgBox(64, "CraZy Forge Snip Bot", "The Snip bot is now open and operational. This MsgBox closes in 10 seconds. Take a sniper weapon (example Rail Gun), load the gun with a left click and go with the weapon at an enemy. The gun shoots from now alone.", 10)
if $msg = 1 then
ShellExecute("http://mrmoritz06.jimdo.com")
ShellExecute("http://www.elitepvpers.com/forum/s4-league-hacks-bots-cheats-exploits/2751954-release-crazy-forge-snip-bot.html")
EndIf
While 1
$POS = MouseGetPos()
$RESULT = PixelSearch($POS[0] - 150, $POS[1] - 150, $POS[0] + 150, $POS[1], 0xFF0000, 46)
If Not @error Then
MouseUp("Left")
Sleep(100)
Else
EndIf
sleep(500)
WEnd
Func TogglePause()
$Paused = Not $Paused
While $Paused
Sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc
Func Terminate()
Exit 0
EndFunc