Bot help

05/24/2011 11:48 hoocrax#1
Hello all !,

I made this simple script that open broowser , do a few mouseclicks with fixed intervals etc. So I made a GUI in whic u can enter the x/y coords for each click and when u press start , another script will run which contains mouseclicks , sleeps etc. But im unable to do it, in the previous versions i just kep fixed mouseclicks for 2 resolutions.. now i want the mouseclick value SAME as the one entered in the test box by the user . Please help me :(

[Only registered and activated users can see links. Click Here To Register...]


Like,

$onex = GUICtrlCreateInput("", 216, 64, 65, 21)
$ony = GUICtrlCreateInput("", 320, 64, 65, 21)

(the values entered in those should be in the mouseclick below in place of 816 and 191).
How do i do that ?

MouseClick("left", 816,191)

Help me please :handsdown:
05/24/2011 17:38 BlackHybrid#2
I don't understand you exactly but if i do u have to use this.
PHP Code:
MouseClick("Left",GuiCtrlRead($onex),GuiCtrlRead($ony)) 
05/25/2011 03:45 hoocrax#3
WowW can this be used for send() and iniwrite and u know all commands?

EDIT : I tested it and it works like a charm :)

But i have one probelm.. if i leave those boxes empty its going to 0,0 and clicking :/

Another problem... I made just one box called coordinated
and did what u told me above and it does not work maybe bcz it doesnt accept the " , " inside the text box :(
05/25/2011 19:45 BlackHybrid#4
If you want to use it like a coord u need to use StrinSplit and set the Array for the x and y possition, because u can't put 123,123 in a input and set it with GuiCtrlRead.
05/27/2011 13:00 Ludder231#5
PHP Code:
if guictrlread($input1) = "" then   "" blank
;...
endif