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>