Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Timer and exe
#1
Macro Timer v1
Code:
Copy      Help
tim 2 Show_Time 1

Function Show_Time
Code:
Copy      Help
str s.timeformat("{TT}")

OsdHide
OnScreenDisplay s -1 -1 -1 "Georgia" 12 0xFF0000 1|2|4 "" 0xFFFFFF

Not working when I make an .exe. Any help?

Regards.
#2
Maybe exe process exits too soon.

Code:
Copy      Help
tim 2 Show_Time 1
wait 7 ;;will be 3 timer events

Also, instead of timer, call OnScreenDisplay in a loop. If cannot do it in macro, use separate thread (mac). Then also use osdid with OnScreenDisplay. Remove OsdHide. Don't make synchronous.


Forum Jump:


Users browsing this thread: 1 Guest(s)