AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Double Mouse

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Bytales



Joined: 06 Sep 2008
Posts: 84

PostPosted: Sat Nov 22, 2008 11:08 am    Post subject: Double Mouse Reply with quote

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 !
Back to top
View user's profile Send private message
BoBo²
Guest





PostPosted: Sat Nov 22, 2008 12:32 pm    Post subject: Reply with quote

If a mouse is clicking, why not use ControlClick in parallel to your standard click? Check the AHK manual to get enlighted. Good luck Cool
Back to top
Bytales



Joined: 06 Sep 2008
Posts: 84

PostPosted: Sat Nov 22, 2008 12:52 pm    Post subject: Reply with quote

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 Cool

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 ?
Back to top
View user's profile Send private message
Bytales



Joined: 06 Sep 2008
Posts: 84

PostPosted: Sat Nov 22, 2008 1:51 pm    Post subject: Reply with quote

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 !
Back to top
View user's profile Send private message
soccer18soccer18



Joined: 18 Nov 2008
Posts: 101

PostPosted: Sat Nov 22, 2008 9:30 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Bytales



Joined: 06 Sep 2008
Posts: 84

PostPosted: Sun Nov 23, 2008 12:02 am    Post subject: Reply with quote

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 !
Back to top
View user's profile Send private message
soccer18soccer18



Joined: 18 Nov 2008
Posts: 101

PostPosted: Sun Nov 23, 2008 1:36 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
Bytales



Joined: 06 Sep 2008
Posts: 84

PostPosted: Sun Nov 23, 2008 2:49 am    Post subject: Reply with quote

Yap, it works with a normal window, such as mozzila firefox, however, it does not work with a windowed game. Bad luck i guess ....
Back to top
View user's profile Send private message
soccer18soccer18



Joined: 18 Nov 2008
Posts: 101

PostPosted: Sun Nov 23, 2008 3:43 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Frankie



Joined: 02 Nov 2008
Posts: 2850

PostPosted: Sun Nov 23, 2008 3:54 am    Post subject: Reply with quote

i know from other topics that maplestory doesn't work with most ahk commands
Back to top
View user's profile Send private message
G19
Guest





PostPosted: Sun Nov 23, 2008 6:07 am    Post subject: Reply with quote

Is it possible to display two mouse cursors on the screen? Smile
Back to top
Bytales



Joined: 06 Sep 2008
Posts: 84

PostPosted: Sun Nov 23, 2008 10:48 am    Post subject: Reply with quote

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..... Very Happy Very Happy
Back to top
View user's profile Send private message
soccer18soccer18



Joined: 18 Nov 2008
Posts: 101

PostPosted: Sun Nov 23, 2008 4:50 pm    Post subject: Reply with quote

well then it should still work. get the wintitle from window spy and do what i said before.

post if u figure it out
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group