Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Menus with timeout
#2
in code that calls the menu
create a new subfunction
and call it before showing menu
Code:
Copy      Help
mac "sub.MenuTimeOut"
mac("Menu1");; shows the menu. change to your menu name

#sub MenuTimeOut
int w=wait(0 WC win("" "#32768"));;waits for menu window created
5 -WC w;; waits up to 5 seconds for menu window to close
err
,clo w;; if still open close menu window


Messages In This Thread
Menus with timeout - by MBaas - 07-22-2021, 07:14 AM
RE: Menus with timeout - by Kevin - 07-22-2021, 12:37 PM
RE: Menus with timeout - by MBaas - 07-22-2021, 01:07 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)