AutoHotkey Community

It is currently May 26th, 2012, 1:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Double Mouse
PostPosted: November 22nd, 2008, 12:08 pm 
Offline

Joined: September 6th, 2008, 3:11 pm
Posts: 84
Is there a way to make 2 mouse cursors on the screen, ?
For instance one does what hot key tell it too, and the other is at my mouse command !


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2008, 1:32 pm 
If a mouse is clicking, why not use ControlClick in parallel to your standard click? Check the AHK manual to get enlighted. Good luck 8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2008, 1:52 pm 
Offline

Joined: September 6th, 2008, 3:11 pm
Posts: 84
BoBo² wrote:
If a mouse is clicking, why not use ControlClick in parallel to your standard click? Check the AHK manual to get enlighted. Good luck 8)

Let me get this straigth... ControlClick can "emulate" mouse clicks on an inactive window that is in the background while i am free to work with my mouse on the active window ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2008, 2:51 pm 
Offline

Joined: September 6th, 2008, 3:11 pm
Posts: 84
Basicaly what i want to do is send mouse click to different coordoates of a window without activating it, while i can use my mouse normaly. Is this even possible ?


ControlClick

--------------------------------------------------------------------------------

Sends a mouse button or mouse wheel event to a control.

What am i suppose to understand "to a control" ?
What if the window has no controls, whatever are those suppose to mean, and i just want to click some coordonates of that window without activating the said window and without intrerupting my mouse movements, if those mouse movements occur in the same frame of time as the clicks !


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 22nd, 2008, 10:30 pm 
Offline

Joined: November 19th, 2008, 12:06 am
Posts: 101
if you want it to click on an inactive window you can use control click


Code:
ControlClick, x100 y150, Title of Window


you can get the x and y coordinates with window spy. and obviously you get the title of the window from the bar at the top.

and yes, you can use the mouse to click other things while it sendign the clicks to the inactive window.

hope this helps


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2008, 1:02 am 
Offline

Joined: September 6th, 2008, 3:11 pm
Posts: 84
soccer18soccer18 wrote:
if you want it to click on an inactive window you can use control click


Code:
ControlClick, x100 y150, Title of Window


you can get the x and y coordinates with window spy. and obviously you get the title of the window from the bar at the top.

and yes, you can use the mouse to click other things while it sendign the clicks to the inactive window.

hope this helps

Those X and Y coords are always relative to the windows or they are relative to the whole screen and i need to make them relative to the said window?
The title of window, is it the TITLE or the AHK class ? which are different in some apps !


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2008, 2:36 am 
Offline

Joined: November 19th, 2008, 12:06 am
Posts: 101
Bytales wrote:
soccer18soccer18 wrote:
if you want it to click on an inactive window you can use control click


Code:
ControlClick, x100 y150, Title of Window


you can get the x and y coordinates with window spy. and obviously you get the title of the window from the bar at the top.

and yes, you can use the mouse to click other things while it sendign the clicks to the inactive window.

hope this helps

Those X and Y coords are always relative to the windows or they are relative to the whole screen and i need to make them relative to the said window?
The title of window, is it the TITLE or the AHK class ? which are different in some apps !


ok this is what you want:

this is the windows spy thing:
>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Post a reply - Windows Internet Explorer
ahk_class IEFrame

>>>>>>>>>>>>( Mouse Position )<<<<<<<<<<<<<
On Screen: 472, 295 (less often used)
In Active Window: 476, 269

you want to look the things i bolded up there.

the first thing under Window Title & Class is the window title.
the second thing under Mouse Position us the mouse position in the active window, which is what you want. the first one (476) is the x and the second (269) is the y. so if you wanted it to click at the 476, 269 coordinates on the Post a reply - Windows Internet Explorer (the ahk website) this is what the code look like.

Code:
controlclick, x476 y269, Post a reply - Windows Internet Explorer


does that help?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2008, 3:49 am 
Offline

Joined: September 6th, 2008, 3:11 pm
Posts: 84
Yap, it works with a normal window, such as mozzila firefox, however, it does not work with a windowed game. Bad luck i guess ....


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2008, 4:43 am 
Offline

Joined: November 19th, 2008, 12:06 am
Posts: 101
what do you mean by a windowed game?
do you mean like an online game? or another computer game? because it should still work with any window.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2008, 4:54 am 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
i know from other topics that maplestory doesn't work with most ahk commands


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2008, 7:07 am 
Is it possible to display two mouse cursors on the screen? :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2008, 11:48 am 
Offline

Joined: September 6th, 2008, 3:11 pm
Posts: 84
soccer18soccer18 wrote:
what do you mean by a windowed game?
do you mean like an online game? or another computer game? because it should still work with any window.

Yah, an online game..... :D :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 23rd, 2008, 5:50 pm 
Offline

Joined: November 19th, 2008, 12:06 am
Posts: 101
well then it should still work. get the wintitle from window spy and do what i said before.

post if u figure it out


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cerberus, Exabot [Bot], patgenn123, poserpro, Yahoo [Bot] and 23 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