AutoHotkey Community

It is currently May 27th, 2012, 1:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: May 15th, 2009, 8:51 pm 
how do i input the windowspy program to work inside the script so that it works like the image does


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2009, 9:06 pm 
Offline

Joined: December 24th, 2008, 3:25 am
Posts: 1401
Location: :noitacoL
So now you just need to tell 'Start:' and 'Exit:' what to do, and you should be done. The GUI part looks fine.


What is the script for, a game or something?


Do you want to KNOW the location of the mouse (X and Y) or do you want to tell the little GUI where to send the mouse, to make it click at an exact X and Y? I guess what I am trying to ask is, what is the need/purpose for "cursor position" for you.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2009, 9:18 pm 
Offline

Joined: June 29th, 2007, 4:26 pm
Posts: 60
What i want is when you hold the ctrl button down it will input the x and y into the proper field on the gui and then save it then it tells the computer to double click there that many times at a certain number of seconds, here is what i have so far

Code:
Gui, Add, Groupbox, h250 w200, Options



Gui, Add, Text, cFFFFFF x60 y33, Interval (In Secs):
Gui, Add, Edit, x150 y30 w50 h20
Gui, Add, UpDown, vSeconds Range1-1000, 60


Gui, Add, Text, cFF0000 x40 y65, Press and hold the Ctrl key and
Gui, Add, Text, cFF0000 x50 y80, release at desired location.

Gui, Add, Text, cFFFF00 x53 y120, Cursor Position (In Pixels):
Gui, Add, Text, c00CC00 x100 y145, [ X,Y ]



Gui, Add, Text, cFFFFFF x40 y177, Mouse Double-Clicks:
Gui, Add, Edit, x150 y175 w50 h20
Gui, Add, UpDown, vClicks Range1-100, 1


Gui, Add, Text, cFF0000 x40 y215, Press the Escape key or the
Gui, Add, Text, cFF0000 x40 y230, Stop button to cancle the bot.


Gui, Add, Button, x20 y260 h25 w75 gExit, Exit
Gui, Add, Button, x125 y260 h25 w75 gStart, Start


Gui, Color, 000000
Gui, Show, x1140 y88 h315 w220


Return

Start:
ExitApp

Exit:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2009, 9:20 pm 
Offline

Joined: June 29th, 2007, 4:26 pm
Posts: 60
see how in this pic the x and y r numbers i did that by holding hte ctrl down in the gui thing i want that in mine

http://img42.imageshack.us/img42/3180/pci.png


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2009, 9:22 pm 
Offline

Joined: June 29th, 2007, 4:26 pm
Posts: 60
also how do you make the script receive the inputs from the edit boxes to allow them to to accually do the value that it needs


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2009, 9:23 pm 
Offline

Joined: June 29th, 2007, 4:26 pm
Posts: 60
what i mean by that is accually run the script make it work like a program that clicks every so and so seconds that many times im trying now to make it work after i get this x and y coordinate down


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2009, 9:26 pm 
Offline

Joined: June 29th, 2007, 4:26 pm
Posts: 60
and yes its for a game and im just bored and want to see if i can make one and how do you tell start and exit to do something also thing is i want the start button to turn into stop once clicked not sure how that works, this stuff is so confusing but i want to make my own bot that i have access the editing im coppying one i foudn with my own added perks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2009, 9:50 pm 
Offline

Joined: July 25th, 2006, 7:37 pm
Posts: 490
Location: Midwest, USA
Try using Gui, Submit. Look in the previous link I gave you. Gui, Submit tells the scripts to assign the values to the variables from the Gui.

Code:
Start:
  Gui, Submit
  ...Random code here...
ExitApp

Exit:
ExitApp

_________________
SilverEdge78


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2009, 9:56 pm 
Offline

Joined: June 29th, 2007, 4:26 pm
Posts: 60
ok guys i give up on this ima post another post with a diff help cause im trying to figure out how to make this next one work


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, chaosad and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group