Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
On-screen display not working in executable
#1
When I run the script from within QM it works fine and the on-screen text is properly displayed. However, when compiled to an executable the on-screen display section is not showing at all, inserting extra wait time doesn't seem to matter (the rest of the script works btw).


Code:
Copy      Help
act
0.5
key Cc
_s.getsel(); _s.setfile("$Documents$\data.txt" -1 -1 1)
2
OnScreenDisplay "Text saved" 2

If I use a regular Message Box it will probably work but then the user will have to press the OK button every time. I believe there is a timeout function for Message Boxes, but I cannot find it anymore.....
#2
Use OnScreenDisplay flag 2. Or wait several seconds after calling OnScreenDisplay.
#3
Waiting several seconds after calling OnScreenDisplay seems to work. Thanks! 
#4
to use a  self closing message box instead of on screen display read here

http://www.quickmacros.com/help/Functions/IDP_MES.html
#5
Thanks Kevin, the timeout function works great. Message box is a better visible solution in this case.


Forum Jump:


Users browsing this thread: 1 Guest(s)