Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Next Key
#9
shutdown is asynchronous. QM thread for a while is not in main message loop, and does not process Ctrl+V. Use something else instead of shutdown. For example, global variable.

Code:
Copy      Help
mac "TS_Sound"
int+ g_stop_ts_sound
int vk=wait(5 KF); err g_stop_ts_sound=1; ret
g_stop_ts_sound=1
sel vk
,case 'E': outp "Crystal Enterprise"
,case 'L': outp "ClearOutput"
,case 'R': outp "Crystal Reports"
,case else: end

Function TS_Sound
Code:
Copy      Help
int+ g_stop_ts_sound=0
str s="??Ü??ß??Ü??"
str ss
int i
rep
,for i 0 s.len
,,OnScreenDisplay(ss.get(s i 1) 0.2 0 0 "Wingdings 2" 58 0x1101b2 0 "TS")
,,0.15
,,if(g_stop_ts_sound) ret


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)