Do this on a button -
[15:22] <Rowne> ssh=OnKeyPress:ss=if arg1 == "Q" then [do your stuff here] end
If that makes any sense :)
aehm, yes sure :?: na not really
too bad that my script knowledge can be boiled down to about two lines (the famous "Hello World" example :? )
In fact that is what is keeping me from replacing Flexbar with Visor, as i have to face it for me it is easier to setup Flexbar then Visor (the commands are more intuitive for me, atm)
ah well, will try around later this week, as im off on a business trip now anyway.
/vz set f=VisorActionButton?
/vz set evt=PLAYER_REGEN_DISABLED
/vz set evt=PLAYER_REGEN_ENABLED
/vz set ssh=OnKeyDown#ss=PlayerFrame:Show()
/vz set ssh=OnKeyUp#ss=PlayerFrame:Hide()
/vz set ssh=OnEvent#ss=if event=='PLAYER_REGEN_DISABLED' then PlayerFrame:Show else PlayerFrame:Hide() end
Where VisorActionButton? is a button of your choosing. Set the keybinding in the bindings menu then whenever you press that button's binding, it'll show the player frame for as long as you hold the key. When you release the key the PlayerFrame will hide. Let me know if you want it as a toggle. It'll also show when you go into combat and hide when you leave combat.