okay well since your here now and your wonderfull help i hope you wouldnt mind awnser another question at the same time :P
but heres my script
This script is to where a msg pops up with instructions, you minimize it and then press the hotkey CTRL+ALT+Z,(Idont have that part in yet becuase i dont know how to make it)
PHP Code:
HotKeySet("^!x", "QuitProg")
Func QuitProg()
Exit
EndFunc
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$ToxicFogLvler = GUICreate("ToxicFogLvler", 415, 170, -1, -1)
GUISetBkColor(0xC0C0C0)
$Label1 = GUICtrlCreateLabel("This bot was created to level your ninja's Toxic Fog skill", 0, 0, 333, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("Created By Joshsta", 240, 64, 143, 24)
GUICtrlSetFont(-1, 12, 400, 8, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("To exit this bot simply hit CTRL+ALT+X", 0, 16, 270, 20)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
$Label4 = GUICtrlCreateLabel("Instructions:", 0, 48, 73, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label5 = GUICtrlCreateLabel("Sit = F3", 0, 64, 40, 17)
$Label6 = GUICtrlCreateLabel("Have your toxic fog SKILL selected", 0, 80, 171, 17)
$Label7 = GUICtrlCreateLabel("To start bot hit CTRL+ALT+Z", 0, 32, 169, 17)
GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
$Label8 = GUICtrlCreateLabel("Make sure to minimize this window before starting!", 24, 128, 347, 20)
GUICtrlSetFont(-1, 10, 800, 4, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $ToxicFogLvler
EndSwitch
WEnd
and heres a simple question i have, its the same script just instead its worked with a button instead of a hotkey to start it..
PHP Code:
HotKeySet("^!x", "QuitProg")
Func QuitProg()
Exit
EndFunc
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\josh\desktop\botmakingshit\toxicfogbotcreatedbyjoshsta.kxf
$ToxicFogBot = GUICreate("ToxicFogBot", 349, 151, -1, -1)
GUISetBkColor(0xC8C8C8)
$Button1 = GUICtrlCreateButton("Start", 120, 48, 105, 57)
$Label1 = GUICtrlCreateLabel("Created By Joshsta", 219, 128, 121, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("The bot will start when you click Start..", 0, 0, 186, 17)
$Label3 = GUICtrlCreateLabel("To exit the bot simply hit CTRT+ALT+X", 0, 16, 188, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
EndSwitch
WEnd
While 1
MouseClick("left" , 578, 388, 2, 1)
Sleep(1200)
MouseClick("right" , 635, 457, 1, 1)
Sleep(1200)
MouseClick("left" , 697, 387, 2, 1)
Send("{F3}")
Sleep(6000)
WEnd
the problem with this bot is that when i click the button nothing happends, the "Window(gui)" that pops up dosnt go away when i click on $Button1 AkA Start...i dont know how to make it move onto the next part of the script thnx 4 ure help