Log in

View Full Version : Need some help with Hotkeynet and right clicking regions.



Boss
10-31-2009, 01:20 PM
Hey all I have Hotkeynet set up to right click regions and have my healing cast from them, but my mouse is acting weird. What it dose will center back to the middle of the mains screen some times. This happens when clicking on mains screen or even alts screen. Here is a vid of what im talking about when clicking on the mains screen you will see the cursor jump every once in a while to the middle.
http://www.youtube.com/watch?v=R3XP2JDqnIw
Here is my script:

//================================================== ==============
// SAMPLE SCRIPT FOR FOUR WOW'S ON ONE PC
//
// Instructions: Copy this entire script (all the blue writing
// on gray background including comments). Save it in a file.
// Load it into HotkeyNet.
//
// Toggle the scroll lock key to turn hotkeys off and on. (You
// can change this if you want, just like you can change
// everything else with HotkeyNet.)
//
// Requires HotkeyNet build 148 or higher.
//
// For more info, go to www.hotkeynet.com
//================================================== ==============

//-----------------------------------------------------------
// PRESS CTRL R TO RENAME WOW'S IF YOU LAUNCH THEM MANUALLY.
//-----------------------------------------------------------
<Hotkey ScrollLockOn Ctrl R>
<SendPC local>
<RenameWin "World of Warcraft" WoW1>
<RenameWin "World of Warcraft" WoW2>
<RenameWin "World of Warcraft" WoW3>
<RenameWin "World of Warcraft" WoW4>
<RenameWin "World of Warcraft" WoW5>

//Subroutine to Potion Windows for 5 boxing

<Command ResizeAndPosition>
<SendPC Local>
<SendWin %1%>
<SetWinSize 1680 1050>
<SetWinPos 0 0>
<SendWinM %2%>
<SetWinSize 840 525>
<SetWinPos 1680 0>
<SendWinM %3%>
<SetWinSize 840 525>
<SetWinPos 1680 525>
<SendWinM %4%>
<SetWinSize 840 525>
<SetWinPos 2520 0>
<SendWinM %5%>
<SetWinSize 840 525>
<SetWinPos 2520 525>


//-----------------------------------------------------------
// SUBROUTINE TO LAUNCH AND RENAME A COPY OF WOW.
//-----------------------------------------------------------

<Command LaunchAndRename>
<SendPC %1%>
<Run %2%>
<RenameTargetWin %3%>
<RemoveWinFrame>

//-----------------------------------------------------------
// HOTKEY TO LAUNCH AND RENAME YOUR WOW WINDOWS
//-----------------------------------------------------------

<Hotkey ScrollLockOn Alt Ctrl L>
<LaunchAndRename Local "d:\WoW5\WoW.exe"WoW5>
<LaunchAndRename Local "d:\WoW4\WoW.exe"WoW4>
<LaunchAndRename Local "d:\WoW3\WoW.exe"WoW3>
<LaunchAndRename Local "d:\WoW2\WoW.exe"WoW2>
<LaunchAndRename Local "d:\WoW1\WoW.exe"WoW1>

<ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>

//-----------------------------------------------------------
// DEFINE MAIL LABELS FOR SENDING KEY STROKES.
//-----------------------------------------------------------

<Label w1 Local SendWinM WoW1>
<Label w2 Local SendWinM WoW2>
<Label w3 Local SendWinM WoW3>
<Label w4 Local SendWinM WoW4>
<Label w5 Local SendWinM WoW5>


//Window Switching

<Hotkey F8>
<ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>
<SendLabel w1, w2, w3, w4, w5>
<Key F8>

<Hotkey F9>
<ResizeAndPosition WoW2 WoW1 WoW3 WoW4 WoW5>
<SendLabel w1, w2, w3, w4, w5>
<Key F9>

<Hotkey F10>
<ResizeAndPosition WoW3 WoW2 WoW1 WoW4 WoW5>
<SendLabel w1, w2, w3, w4, w5>
<Key F10>

<Hotkey F11>
<ResizeAndPosition WoW4 WoW2 WoW3 WoW1 WoW5>
<SendLabel w1, w2, w3, w4, w5>
<Key F11>

<Hotkey F12>
<ResizeAndPosition WoW5 WoW2 WoW3 WoW4 WoW1>
<SendLabel w1, w2, w3, w4, w5>
<Key F12>

//Click Healing

<Template If>
<If MouseIsOverWindowRect %1% %2%>
<SendLabel %3%>
<Key %4%>
<EndTemplate>
<Template Else>
<If MouseIsOverWindowRect %1% %2%>
<SendLabel %3%>
<Key %4%>
<EndTemplate>

<Hotkey ScrollLockOn RButton>
<ApplyTemplate If "WoW5""291 820 48 21""w3""alt Numpad1">
<ApplyTemplate Else "WoW5""339 820 48 21""w3""Lshift Numpad1">
<ApplyTemplate Else "WoW5""387 820 48 21""w3""ctrl Numpad1">
<ApplyTemplate Else "WoW5""435 820 48 21""w3""Numpad1">

<ApplyTemplate If "WoW5""599 820 48 21""w3""alt Numpad2">
<ApplyTemplate Else "WoW5""647 820 48 21""w3""Lshift Numpad2">
<ApplyTemplate Else "WoW5""695 820 48 21""w3""ctrl Numpad2">
<ApplyTemplate Else "WoW5""743 820 48 21""w3""Numpad2">

<ApplyTemplate If "WoW5""907 820 48 21""w3""alt Numpad3">
<ApplyTemplate Else "WoW5""955 820 48 21""w3""Lshift Numpad3">
<ApplyTemplate Else "WoW5""1003 820 48 21""w3""ctrl Numpad3">
<ApplyTemplate Else "WoW5""1051 820 48 21""w3""Numpad3">

<ApplyTemplate If "WoW5""1218 820 48 21""w3""alt Numpad4">
<ApplyTemplate Else "WoW5""1266 820 48 21""w3""Lshift Numpad4">
<ApplyTemplate Else "WoW5""1314 820 48 21""w3""ctrl Numpad4">
<ApplyTemplate Else "WoW5""1362 820 48 21""w3""Numpad4">


<Else>
<SendFocusWin>
<ClickMouse Down %Trigger%>
<HotkeyUp RButton>
<SendFocusWin>
<ClickMouse Up %Trigger%>

//Ctrl keys
<KeyList numbers 1-9>

<Hotkey LCtrl numbers>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>

<Hotkey LAlt numbers>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>

//-----------------------------------------------------------
// DEFINE HOTKEYS FOR ALL KEY COMBINATIONS THAT WILL GET
// SENT TO BOTH WOWS. ADD MORE KEY COMBO'S IF YOU WANT.
//-----------------------------------------------------------
<Hotkey ScrollLockOn A-Z, 0-9, Plus, Minus, F1-F7, Numpad1-Numpad9, Space>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>

//-----------------------------------------------------------
// DEFINE MOVEMENT KEYS THAT WILL GET SENT TO BOTH WOW'S.
// ADD MORE KEYS IF YOU WANT.
//-----------------------------------------------------------
<MovementHotkey ScrollLockOn up, down, left, right>
<SendLabel w1, w2, w3, w4, w5>
<Key %Trigger%>

//-----------------------------------------------------------
// BROADCAST MOUSE CLICKS. HOLD DOWN OEM3 (ON U.S. KEYBOARDS,
// THAT'S THE SQUIGGLE KEY IN UPPPER LEFT CORNER) WHEN YOU
// WANT TO BROADCAST.
//-----------------------------------------------------------
<UseKeyAsModifier Oem3>

<Hotkey ScrollLockOn Oem3 LButton, MButton, RButton, Button4, Button5>
<SendLabel w1, w2, w3, w4, w5>
<ClickMouse %TriggerMainKey%>
Thanks for any insight on this its not a big deal right now but if I start to pvp I can see it being one.

Freddie
10-31-2009, 01:49 PM
Deleted because I just watched your video and realized that I misunderstood your description.

mikekim
10-31-2009, 01:53 PM
one thing not related to your question.. you might want to move your space bar definition from hotkey to movement key, this will help you when you start flying

Freddie
10-31-2009, 02:19 PM
You might be able to fix this by adding "NoMove" to the ClickMouse command in <HotkeyUp RButton>.

But what I really recommend is that you replace all the region stuff in your script with new code that uses buttons.

Regions were never meant to be the "real" way of doing this kind of thing in HotkeyNet. They were only temporary because I hadn't added buttons yet.

Buttons were added to HotkeyNet recently. They are easier to use, they look better, they have a lot of interesting options, and they work better.

Buttons are very powerful. You can have panels of buttons, translucent buttons, buttons on transparent backgrounds, buttons that trigger hotkeys, buttons that trigger commands, all kinds of things. You can supply a picture for a button or you can make the button look like a regular operating system button or you can tell HotkeyNet, "make it a certain color." Unlike regions, buttons change appearance when you click them so you know they got clicked.

Buttons are easier to use than regions.

I haven't written a page of instructions for buttons yet but there are pages that describe each individual button command. (There are about 15 new commands for buttons and panels). You can get an idea by reading the reference pages for <CreateButton> and <CreatePanel>.

http://hotkeynet.com/ref/createbutton.html

http://hotkeynet.com/ref/createpanel.html (http://hotkeynet.com/ref/createpanel.html)

Boss
10-31-2009, 05:26 PM
Ok thanks Freddie I will look in to them. Yeah when I made the script there was no buttons on HKN. Will do mikekim

Freddie
10-31-2009, 05:38 PM
I just started adding buttons about three weeks ago. They aren't finished yet but there's enough stuff in the program now to use them.

By the way, at the moment you can only left click them. If you want to right click (or click them with shift/alt/ctrl/etc.) let me know and I'll add that right away. Those things are on the list of things to do.