Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mandatory Pause after positive Message Box Response
#3
Hi Gintaras,

Thanks for the suggestion about menu. I implemented it like this:

Code:
Copy      Help
mac "sample menu"
mou+ 0 15

;sample menu
;Do action? :mac "DoAction_Function
;Don't do action :mac "DontDoAction_Function"


I added the "mou+ 0 15" so that it sets the "default" focus to the first option so that all the user has to do is hit "return".
This is fast and doesn't require the 2sec mandatory pause to return focus to the application from the message box default/focus.

It's not as elegant as the message box, however. The message box has the Title, icons, and look of a professional windows program (the application I am scripting shortcuts in, to be specific). Plus the effect on screen is small i.e. 2 little lines as opposed to a dialog box, etc.

Anyway, just wondering if there was anyway around this or to "dress up" a menu list a little bit.

I thought about making a dialog instead of Message Box but I think they would act similar if they had a "default" key set up. Am I right?

Thanks for your input.

Stuart

ps. Maybe I will try putting an OnscreenDisplay with opaque background to surround the menu items to kind of make a mimic of a message box....


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)