I'm trying to map Alt to my middle mouse button but only in World of warcraft.
I'm using openbox as WM and downloaded xdotool, i tried modifying my rc.xml as follow :
<mousebind action="Press" button="Middle"> <action name="If"> <title type="exact">World of Warcraft</title> <focused>yes</focused> <then> <command>xdotool key alt</command> </then> </action> </mousebind>
This didn't work so i'm looking for some help.
Last edited by fANZY (2014-05-14 15:14:20)
title could be one of WM_NAME or WM_CLASS so should
| grep -iE 'name|class'
Last edited by HiImTye (2014-05-14 10:54:31)
Also, you should try isolating each one of the conditions: does it work (on all windows) when you remove the title condition? Does it work on W.o.W. when you remove the focused condition?
Ok so "World of Warcraft" is the actual name of the window.
I tried removing the conditions and used it on other windows it didn't work either so i tryed simulating a rightclick instead of alt and it worked. I, then, tried with the condition <title> and it worked on wow aswell. then i tried with a letter instead of right click and it worked aswell, but it only work if i dont press another key at the same time which is disapointing since its WoW and you have to juggle with arround 35 keybind (we'll see that later). Then i tried again with alt and with alt it still doesnt work for some reason.
Ok so i've found another solution to simulate Alt with my mouse middle button. Im using evrouter instead of xdotool. it Work very nicely i'm just missing the app specific feature.
Any idead ? Basically i want this feature to be enabled when i'm on WoW and disabled othewise so for instance if i alt tab i dont want my middle button to act as Alt
I could use a script to start evrouter with wow and stop it when i alt tab or close wow but id like a cleaner solution.
Last edited by fANZY (2014-05-14 15:17:08)