Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Time Limit
#4
Function EndThisThreadAfter
Code:
Copy      Help
;/
function ^timeS

;Schedules to end this thread after timeS seconds.
;If it is the first thread in .exe, then .exe process also will end.

;EXAMPLE
;EndThisThreadAfter 3
;mes "macro"


QMTHREAD qt; GetQmThreadInfo 0 qt
mac "sub.ET" "" timeS qt.threadhandle


#sub ET
function ^timeS ht
wait timeS
EndThread "" ht


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)