the <if>,<Else If>,<else> can have as many <elseif>s as you like, but you can'T nest <if>s inside of <if>s.
the <if>,<Else If>,<else> can have as many <elseif>s as you like, but you can'T nest <if>s inside of <if>s.
OLIPCS - ordinary life is pretty complex stuff
----------------------------------------------------------------
Ok, if this works, I'll post about it here. Sorry for thinking you didn't have this functionality, but it looks like it works how I envisioned it...to a degree.
Absolutely not your fault! The program has dozens or even hundreds of features that hardly anyone knows about. That's the problem with a script-driven program. The features are invisible unless you plow through the documentation. Hardly anyone is going to spend hours reading all that stuff.Originally Posted by Wolpak
Sure it will be long but you have to write a definition for each button somewhere, so why not in a hotkey definition? It's just syntax. Like Olipcs said there's no length limit.Originally Posted by olipcs',index.php?page=Thread&postID=183448#post18 3448]well for the situation you described I would try the following:
[code]
<Hotkey LButton>
<If MouseIsOverWindowRect Pally 200 200 100 100>
<SendLabel shaman>
<Key 6>
<Else If MouseIsOverWindowRect Pally 200 300 100 100>
<SendLabel shaman>
<Key 7>
<Else>
<ClickMouse>
[/code][/quote]
Thanks for correcting my mistake! :)
Wolpak, you should always listen to Olipcs because unlike me, he actually uses the program. I onlly code the thing. :)
[quote='Wolpak
�Author of HotkeyNet and Mojo
I am going to see if I can find any script that will output the cordinates of my mouse on a press since I have no idea what they are onscreen. Unless you want to tell me first.
HotkeyNet shows you the coordinates in its upper right window each time you click .... but only if you've loaded a script that has at least one hotkey with a mouse button in its trigger.
It does this for efficiency reasons -- it only loads a mouse hook when absolutely necessary, to avoid slowing your PC even a tiny bit.
You can load this hotkey if you need to:
That will never get triggered (unless you have three hands, because that's how many you need to press that combination of buttons), but it will cause HotkeyNet to load a mouse driver.Code:<Hotkey LCtrl RAlt RButton> <ToggleWin X Y>
�Author of HotkeyNet and Mojo
Trying to figure this out. Not sure what coordinates the parameters are looking for, the window or the screen. Either way, it seems like it has hijacked my mouse to not do anything at all if the conditions are not met.
If you write <If MouseIsOverWindowRect ...> like we showed you, it uses window coordinates. If you want to use screen coordinates, you would write <If MouseIsOverScreenRect ...>.Not sure what coordinates the parameters are looking for, the window or the screen.
That's why Olipcs corrected my example. You need to add a final "Else" for that case. But I just tested and here's the best way to write it. This should go at the end:Either way, it seems like it has hijacked my mouse to not do anything at all if the conditions are not met.
Code:<Else> <SendFocusWin> <ClickMouse NoMove %Trigger%>
�Author of HotkeyNet and Mojo
I am not sure that the coordinates are being populated properly. It might have something to do with the focus window though. However, it highjacks the mouse on all left clicks. I cannot left click any other screen or even anything on my screen. For some reason it triggers for everything.
Also, is there a way to bracket in the individual keys. I have no idea what the program is looking for in terms of completed functions.
<Hotkey Home>
<SendLabel warlock>
<Keydown up>
When it reads the first line, is it looking for two more lines? One a SendLabel and the other a Key stroke?
It would generate error messages if that were the case.Originally Posted by 'wolpak',index.php?page=Thread&postID=183484#post1 83484
To reduce your frustration level, I very strongly recommend that you test this with some other trigger until you get it working. I would test with this trigger:However, it highjacks the mouse on all left clicks.
That way your test hotkey won't get triggered unless you hold down a shift key and press right button.Code:<Hotkey Shift RButton>
�Author of HotkeyNet and Mojo
Connect With Us