Question

I'm trying to comprehend a bit of Lua to write a simple WoW addon which would in simple terms disable only the alt+tab functionality of windows when you've entered the world.

More specifically, there are 3 modifier keys in WoW: shift, control and alt, and I find myself sometimes using the alt modifier to do an action however during that intentional spam I also try to do a target switch which is done using the tab key (the simple way would of course be to change the button for the target switch, however I do not have any other available options that would end as a performance improvement).

The idea is that from the WoW API I get an event that fires when the player enters the world (that's not somebody should actually care about however to put it simply it's an event called PLAYER_ENTERING_WORLD which triggers every time you zone in with a loading screen if somebody here has played WoW). My main problem is: is there an actual way using Lua code to disable the alt-tab key combination while keeping the functionality of alt as a modifier key in WoW and tab as a regular "taret switch" key in WoW?

If more info is needed I'd try to provide it, however I'm hoping it's as simple as "Event happens (you entered the world)... well let's execute the code end of story".

Thanks for any possible answers, looking forward to them.

No correct solution

OTHER TIPS

As far as I can tell, windows makes it intentionally hard to disable (basically, you have to RegisterHotKey()). Since I don't think the Lua API of World of Warcraft allows you to programmatically rebind hotkeys due to its built-in restrictions, what you are asking for might not be possible in that particular Lua environment.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top