i have this script for a bot that i am making... but in order to make it so that it "imitate" a 'click' other then useing "my mouse/keybord" i vas told to use this UDF... :)
but i cant seam to get it to work... :(
this is the start of the script but when i start it it dose nothing... :( any one can tell me what the problem is???
or if there is another way to do it...
(i would like it so i can have 2 bot's running at once or one bot + me playing/scripting...)
i have yet another question... :)
can anyone tell me how to get ik so when i type "10" in my GUI input it will run 10 loops and then stop?!? i have it so i can set it in the script manualy but it would be nice to get the GUI to work proberly... :)
and one last thing... ;)
can i get the GUI to "count" aswell?!? so it shows me that it hase made "x" Loops?!?
Regards SSnipeRR
but i cant seam to get it to work... :(
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <PostMessage.au3>
#Region ### START Koda GUI section ### Form=
HotKeySet("{ESC}","Terminate")
$Form1 = GUICreate("RS FM Bot", 222, 99, 192, 124)
$Label1 = GUICtrlCreateLabel("RuneScape Firemaking Bot", 48, 8, 150, 17)
$Button1 = GUICtrlCreateButton("Start", 64, 40, 89, 33, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
If $nMsg = $Button1 Then Button1()
WEnd
Func Button1()
$hWnd = WinGetHandle("RuneScape - The Number 1 Free Multiplayer Game - Mozilla Firefox")
Sleep(1000)
_PostMessage_Click($hWnd,1045,189,"Left")
Sleep(500)
_PostMessage_Send($hWnd,"{UP down}")
Sleep(2000)
_PostMessage_Send($hWnd,"{UP up}")
Sleep(500)
_PostMessage_Click($hWnd,992,186,"Left")
or if there is another way to do it...
(i would like it so i can have 2 bot's running at once or one bot + me playing/scripting...)
i have yet another question... :)
can anyone tell me how to get ik so when i type "10" in my GUI input it will run 10 loops and then stop?!? i have it so i can set it in the script manualy but it would be nice to get the GUI to work proberly... :)
and one last thing... ;)
can i get the GUI to "count" aswell?!? so it shows me that it hase made "x" Loops?!?
Regards SSnipeRR