View Full Version : Program to simulate mouseclicks in same designated area on multiple windows?
ilikemages
01-22-2008, 12:25 AM
Yea.. any ideas? i dont care if there is a few ms lag.
thinus
01-22-2008, 12:33 AM
AHK should be able to do it. They have extensive forums and documentation you can read up on.
ilikemages
01-22-2008, 12:37 AM
AHK should be able to do it. They have extensive forums and documentation you can read up on.
research sucks, but thx alot... i'll look into it
thinus
01-22-2008, 12:48 AM
AHK should be able to do it. They have extensive forums and documentation you can read up on.
research sucks, but thx alot... i'll look into it
http://www.autohotkey.com/docs/commands/MouseClickDrag.htm
I was feeling generous. And after answering many mouse related questions today I was curious.
EDIT: You can probably set up AHK hotkeys to turn your alts 90 degrees or close to it using mouseclickdrag. Not sure about doing the whole right mouse down, move mouse, release button thing.
ilikemages
01-22-2008, 01:06 AM
AHK should be able to do it. They have extensive forums and documentation you can read up on.
research sucks, but thx alot... i'll look into it
http://www.autohotkey.com/docs/commands/MouseClickDrag.htm
I was feeling generous. And after answering many mouse related questions today I was curious.
EDIT: You can probably set up AHK hotkeys to turn your alts 90 degrees or close to it using mouseclickdrag. Not sure about doing the whole right mouse down, move mouse, release button thing.
Well, with using that it would be impossible to actually click the same area depending on what the area the main window clicks because it seems all areas are pre-determined.
Lost Ninja
01-22-2008, 06:36 AM
I have used AHK with this for auto loading of Ore in EVE (from ship to can). It'd be fine if you set all your windows in a predefined spot, recorded where you wanted each click to go and mapped that to a button. Technically you could drive the game with it. However for each window to take mouse input it needs to be in the foreground, so you'd lose control of main+others while the alt is being worked on. I think what gets most people is they want a dynamic click so that the position is read from the main screen and written to the alts, it'd be just as much use (and a lot easier) to have predefined click points driven from keybinds. Whether or not that hits the EULA I couldn't say.
skarlot
01-22-2008, 08:18 AM
I'm doing this.. beta this week probs.
ilikemages
01-22-2008, 01:40 PM
I have used AHK with this for auto loading of Ore in EVE (from ship to can). It'd be fine if you set all your windows in a predefined spot, recorded where you wanted each click to go and mapped that to a button. Technically you could drive the game with it. However for each window to take mouse input it needs to be in the foreground, so you'd lose control of main+others while the alt is being worked on. I think what gets most people is they want a dynamic click so that the position is read from the main screen and written to the alts, it'd be just as much use (and a lot easier) to have predefined click points driven from keybinds. Whether or not that hits the EULA I couldn't say.
So basically i could make a grid of the screen and make click points for said area covered by said AOE spell?
how would you go about binding this with AHK? If you could give an example of how you do it via keypress it would be very much appreciated.
Lost Ninja
01-23-2008, 05:02 AM
Sadly I didn't bind it to a key, as I knw my cycle times so I just set it to wait 60s...
WinWait, EVE,
IfWinNotActive, EVE, , WinActivate, EVE,
WinWaitActive, EVE,
Loop 30
{
SendEvent {Click 80, 908, down}{click 86, 729, up}
Sleep 60000
}
This was a while back so some parts of that may no longer be current I have no idea.
As for grid idea, you could but I think all you really need is 1 set where everyone clicks roughly 10 yards in front (gather mode); 1 where everyone clicks on themselves (AoE mode); and 1 where you click all around you. Which you use would depend on where the mobs are... If you're really clever you could even add approximate points onto the screen where things will land so you can see whats happening... (Using LUA and eePanels2)
ilikemages
01-23-2008, 09:38 AM
Sadly I didn't bind it to a key, as I knw my cycle times so I just set it to wait 60s...
WinWait, EVE,
IfWinNotActive, EVE, , WinActivate, EVE,
WinWaitActive, EVE,
Loop 30
{
SendEvent {Click 80, 908, down}{click 86, 729, up}
Sleep 60000
}
This was a while back so some parts of that may no longer be current I have no idea.
As for grid idea, you could but I think all you really need is 1 set where everyone clicks roughly 10 yards in front (gather mode); 1 where everyone clicks on themselves (AoE mode); and 1 where you click all around you. Which you use would depend on where the mobs are... If you're really clever you could even add approximate points onto the screen where things will land so you can see whats happening... (Using LUA and eePanels2)
why does it seem like AHK is just autoit? lol
Djarid
01-24-2008, 03:12 AM
it is a subset of autoit... it doesn't have the ability to hook into memory and react to changes at that level or Blizzard would blacklist it.
Freddie
01-28-2008, 08:53 AM
The most recent build of HotkeyNet allows you to simulate mouseclicks in multiple windows. You can control the location of the clicks in various ways:
-- specify coordinates
-- duplicate the mouse's location relative to the foreground window in the other windows;
-- scale the mouse's location relative to the foreground window in the other windows, adjusted for the ratio of window sizes;
-- dupe or scale the mouse's location relative to the screen resolutions (HKN can be used on multiple pc's, so the screen resolutions can differ);
-- click at the mouse's current position;
-- etc.
The syntax looks like this:
<MouseClick Button Target Mode Restore>
With four parameters, there are a lot of ways to use this function, but each parameter has a default so the function can be very easy to use. If you simply write:
<MouseClick>
You get a left-click in the targeted window at a location in the new window which is the same as the current position in the foreground window, scaled for the difference in window sizes, if any. That sounds more complicated than it really is. I think this default is what most people will naturally want to do most of the time.
You can also control whether the clicks are delivered through SendInput or messages, whether the targeted window is brought to the foreground, etc.
More info about MouseClick here ('http://www.hotkeynet.com/ref/mouseclick.html')
Download HotkeyNet 48 here ('http://www.hotkeynet.com/p/download.html')
This feature is brand new and hasn't been tested very much, so expect some bugs. Comments about the design of the syntax and suggestions for changes are always welcome.
ilikemages
01-29-2008, 09:27 PM
The most recent build of HotkeyNet allows you to simulate mouseclicks in multiple windows. You can control the location of the clicks in various ways:
-- specify coordinates
-- duplicate the mouse's location relative to the foreground window in the other windows;
-- scale the mouse's location relative to the foreground window in the other windows, adjusted for the ratio of window sizes;
-- dupe or scale the mouse's location relative to the screen resolutions (HKN can be used on multiple pc's, so the screen resolutions can differ);
-- click at the mouse's current position;
-- etc.
The syntax looks like this:
<MouseClick Button Target Mode Restore>
With four parameters, there are a lot of ways to use this function, but each parameter has a default so the function can be very easy to use. If you simply write:
<MouseClick>
You get a left-click in the targeted window at a location in the new window which is the same as the current position in the foreground window, scaled for the difference in window sizes, if any. That sounds more complicated than it really is. I think this default is what most people will naturally want to do most of the time.
You can also control whether the clicks are delivered through SendInput or messages, whether the targeted window is brought to the foreground, etc.
More info about MouseClick here ('http://www.hotkeynet.com/ref/mouseclick.html')
Download HotkeyNet 48 here ('http://www.hotkeynet.com/p/download.html')
This feature is brand new and hasn't been tested very much, so expect some bugs. Comments about the design of the syntax and suggestions for changes are always welcome.
kool, thx... i'll see what i can do with it once i get to pvping.
vBulletin® v4.2.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.