Daoc Mouse movement script?

Using HotkeyNet with Dark Age of Camelot.

Daoc Mouse movement script?

Postby fidiald on Fri Sep 19, 2008 8:13 pm

i'm playing daoc on freeshards and on the server i am playing they have buffbots (NPC's) that all you need to do is Rclick them and they will buff you up. i was curious since i play 5 toons in a PvE group if there is a way to get them to move mouse to target and rclick.
fidiald
 
Posts: 11
Joined: Tue Sep 16, 2008 12:32 am

Re: Daoc Mouse movement script?

Postby gmachine88 on Sat Sep 20, 2008 6:54 am

It would be something like:
Code: Select all
<Hotkey F6>
   <SendWin WinName>
      <MoveMouse X Y Screen>       // Change X Y for Real values
      <Wait 500>
      <ClickMouse RButton Both Screen NoMove NoRestore>


May need tweaking a little bit, but thats the basics.
"Insert funny, witty one liner here"
gmachine88
 
Posts: 107
Joined: Sun Jul 06, 2008 12:31 am
Location: England

Re: Daoc Mouse movement script?

Postby HotkeyNet on Sat Sep 20, 2008 7:38 am

It's easy to make the mouse click the same spot in all five windows, but it's a little tricky to move the toons so the NPC is in the same place in all five windows. I would try doing it this way:

1. Make the toons assist whichever one has the NPC targeted.
2. Make the toons face the NPC.
3. Use ClickMouse to make all five right click.

I'll show the code for just 3. (I'll show just two windows). If you need help with 1 and 2, ask again.

Code: Select all
<UseKeyAsModifier Oem3>

<Hotkey Oem3 RButton>
   <SendPC Local>
      <SendWinMF DAOC1>
      <ClickMouse RButton>
   <SendPC 1.2.3.4>
      <SendWinMF DAOC2>
      <ClickMouse RButton>
-- Freddie
HotkeyNet
Site Admin
 
Posts: 5683
Joined: Fri Mar 28, 2008 8:36 pm

Re: Daoc Mouse movement script?

Postby HotkeyNet on Sat Sep 20, 2008 8:09 am

gmachine88 wrote:It would be something like:
Code: Select all
<Hotkey F6>
   <SendWin WinName>
      <MoveMouse X Y Screen>       // Change X Y for Real values
      <Wait 500>
      <ClickMouse RButton Both Screen NoMove NoRestore>


May need tweaking a little bit, but thats the basics.

(GM is writing a tutorial for HotkeyNet, so I'll go into detail here, because he needs to know.)

1. MoveMouse is built into ClickMouse, so it's not necessary to write both. What you've done here is disable the MoveMouse-portion of ClickMouse by specifying NoMove and NoRestore, then added the disabled features back in by writing MoveMouse explicitly. This might be useful for debugging but it's not a good idea for real hotkeys.

2. ClickMouse has a built-in delay between the initial movement and the click. This can be set on the Settings Panel. It's not necessary to write <Wait> here.

3. ClickMouse (by default) automatically positions the cursor relative to the application window. This is usually a great help in games. But this definition disables that by specifying Screen. This is almost never the right choice for games, except (maybe) if you're playing in full screen mode. Screen is useful mainly for clicking objects that are in fixed places on the screen, like desktop objects.

4. This definition further disables ClickMouse's automatic cursor-positioning by specifying fixed X and Y coordinates.

5. Fidiald's got five copies of DAOC. Most likely some of them are in the background, so he doesn't want to flip screens with SendWin. Background DAOC windows require SendWinMF.

Putting that all together, the definition could be written in this much simpler way:

Code: Select all
<Hotkey F6>
   <SendWinMF WinName>
      <ClickMouse RButton>
-- Freddie
HotkeyNet
Site Admin
 
Posts: 5683
Joined: Fri Mar 28, 2008 8:36 pm

Re: Daoc Mouse movement script?

Postby brink668 on Tue Nov 04, 2008 1:22 pm

I know this is an old thread and all but for this piece of code:

Code: Select all
<Hotkey F6>
   <SendWinMF WinName>
      <ClickMouse RButton>



If your using the Right Mouse Button why do you called the HotKey F6

Wouldn't it be just RButton?
brink668
 
Posts: 9
Joined: Mon Nov 03, 2008 5:21 pm

Re: Daoc Mouse movement script?

Postby HotkeyNet on Tue Nov 04, 2008 1:43 pm

The first line isn't the name. The first line is the trigger. The trigger is the key you press with your finger.

That definition means, "When I press F6 with my finger I want HotkeNet to click the right button in a certain window."

Hotkeys are like triggers and bullets. First you define the trigger (the keys you press with your finger). Then you define the bullet (the action that HotkeyNet performs).

If you want the trigger and bullet to match, you can write the same key combination in both places. But HotkeyNet doesn't limit you. They don't have to match if you don't want them to.
-- Freddie
HotkeyNet
Site Admin
 
Posts: 5683
Joined: Fri Mar 28, 2008 8:36 pm

Re: Daoc Mouse movement script?

Postby brink668 on Tue Nov 04, 2008 2:04 pm

i c! so you dont conflicts while performing actions!
brink668
 
Posts: 9
Joined: Mon Nov 03, 2008 5:21 pm


Return to Dark Age of Camelot

Who is online

Users browsing this forum: No registered users and 1 guest

cron