Quote Originally Posted by hamncheese View Post
ok first problem :

== i dont know which coordinate to use for the code==

Code:
<If MouseIsOverWindowRect WoW1 36 57 274 631>
to my understanding :
-the first 2 set of coordinate (in red) is the Top-Left Most region
-the second set of coordinate (in blue) is the Bottom-Right Most region
The first set is the top left corner of the region. The second set of numbers is the the dimensions of the "box" that grows from that point. IE - at 36 57, create a region that is 274*631 pixels.

1. top-leftmost region, click the position, read and use the 2 coordinate on the HKN "Last key press" window, the problem is, which coordinate ?
this is my result :
scrn position : X = 320 y = 50
win position : x = 0 y = 1
Your code uses MouseIsOverWindowRect, I'd use the win position. Win position is the position of the cursor within the confine of that specific WoW window. Scrn pos is the position of the cursor within the confines of your entire monitor.

2.bottom right-most region, same problem, this is my result :
scrn position : x = 544 y = 404
win position : x = 227 y = 341
Like I said, you aren't defining the bottom right boundary of the region. The second set of numbers is the width and height of the region.


second problem
==Hot Key and Macro==

what im trying to do :
- mouseover target on my Tank window (WoW1)
- press F1 button
- Healer (WoW2) cast healingspell to the target

this is my code
Code:
<Hotkey ScrollLockOn Oem3>
    
    <If MouseIsOverWindowRect WoW1 320 50 544 404>
        <SendLabel w2>
            <SaveMousePos>
            <Clickmouse Noclick Norestore>
                    <Key F3>
            <Restoremousepos>
        <SendLabel w2>
        <Key F3>
    <Else>
    <SendLabel w2>
        <Key F3>
* im using the scrn position, for my coordinate

I don't understand what you're trying to do. I don't see F1 anywhere in that code. Are you actually trying to target the tank with F1, then use Oem3 to send F3? And why do you have F3 sent twice when over the heal region?

If you're trying to use mouseover healing, it should all be in one action. Basically :

1. Create a macro on your healer that says /cast [@mouseover] Some Heal
2. Put that macro on F1
3. Define your healing region properly.
4. Use the below code

Code:
<Hotkey F1>
<If MouseIsOverWindowRect WoW1 *YOUR REGION DEFINITIONS HERE*>
		<SendLabel w2>
			<Clickmouse Noclick>
				<Key F1>
				<RestoreMousePos>
4. Mouse over the region on your main WoW, press F1. It should automatically heal whichever toon you have your mouse over.

Keep in mind, to make use of mouseovers, you need your unit frames to match exactly across the master and slave account. This means you need unit frames that can include your toon in the party listing and order those toons in a set position. This is because WoW segregates the active toon from the party so that "player" is always on the top of the list. So by default, your tank's order in a party would be

TANK
healer{Party1}
{Party2}
{Party3}
{Party4}

But for your healer it would be

HEALER
tank{Party1}
{Party2}
{Party3}
{Party4}

Unit frames like Pitbull or Grid usually have a means of forcing the Player into the overall party order and then organizing the party alphabetically, so the list will be the same for every toon.



You can take a look at my walkthrough for the HotKeyNet Starter script here and browse through my current script here. I go over mouseovers and regions here, here, here and probably a bunch of other places.

Copying mod settings can be found here.