• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Disabling menu hotkeys

Status
Not open for further replies.
There are a few avenues that might work.

I have seen someone on the Hive made a system that prevents saving a game. It worked by quickly closing the dialog screen related to saving a game. It may work on the menu screen as well. Unfortunately, I cannot find this system anymore on a google search. Perhaps another member knows. If I remember right it was made by TriggerHappy.


Alternatively, you might try to use UI functions to turn off visibility for the menu frame. I don't know if this would prevent initiating the dialog screen alltogether, but it could be interesting to find out.
Looking through Default Names for BlzGetFrameByName the "EscMenuMainPanel" might be the correct frame to turn off.

I haven't yet seen anyone using this method succesfully though.

Upon pressing the button you wish to redirect to the menu, you could then temporarily enable the menu dialog again, and then force a F10 button press.
 
I'm unable to test it now, but if I remember correctly I managed to break the default menu buttons by registering a frame event to them with native BlzTriggerRegisterFrameEvent takes trigger whichTrigger, framehandle frame, frameeventtype eventId returns event
Ill try it out. Thanks for the idea!
 
Status
Not open for further replies.
Back
Top