Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog/Timer Help
#1
Ok idk why this code isnt working for me, but its not. Correct me if im wrong but function'str hDlg should allow me to call anything for the dialog when its open,yes? I've used this code before in a previous macro but now its not working?? Please help.. thanks

Function Timer
Code:
Copy      Help
function'str hDlg

int NumberOfReps Seconds Minutes Hours
str SetTime

spe 1
rep
,SetTime = ""
,Seconds = NumberOfReps%60
,Minutes = NumberOfReps/60%60
,Hours = NumberOfReps/3600
,SetTime.formata("%02i H : %02i M : %02i S" Hours Minutes Seconds)
,SetTime.setwintext(id(4 hDlg))
,1
,NumberOfReps+1
#2
Maybe you call it in a wrong way. For example, it cannot be called from a dialog function, because the dialog will hang. Look for examples with SetTimer.
#3
ok thanks.. maybe thats what i did wrong; first time i tried it in a timer.
#4
Should work if you insert

opt waitmsg 1

somewhere in third line. But better with SetTimer.


Forum Jump:


Users browsing this thread: 1 Guest(s)