Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 19:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Bot help

Discussion on Bot help within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
hoocrax's Avatar
 
elite*gold: 62
Join Date: Jan 2011
Posts: 1,242
Received Thanks: 1,531
Bot help

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




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
hoocrax is offline  
Old 05/24/2011, 17:38   #2
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
I don't understand you exactly but if i do u have to use this.
PHP Code:
MouseClick("Left",GuiCtrlRead($onex),GuiCtrlRead($ony)) 
BlackHybrid is offline  
Old 05/25/2011, 03:45   #3
 
hoocrax's Avatar
 
elite*gold: 62
Join Date: Jan 2011
Posts: 1,242
Received Thanks: 1,531
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
hoocrax is offline  
Old 05/25/2011, 19:45   #4
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
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.
BlackHybrid is offline  
Old 05/27/2011, 13:00   #5
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
PHP Code:
if guictrlread($input1) = "" then   "" blank
;...
endif 
Ludder231 is offline  
Reply




All times are GMT +2. The time now is 19:50.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.