Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i want to shutoff 1 function need some help
#9
Can use SetProp/GetProp.

spe -1
int w1
w1=win("Notepad")
out w1
SetProp(w1 "running" 1)
rep
if(!GetProp(w1 "running")) end
key "55"
wait 3

To stop from other function or toolbar, use

SetProp(hwnd "running" 0)

Here hwnd is Notepad handle. To get toolbar owner window handle in a toolbar or in a function called from a toolbar, use

int hwnd=GetWindow(TriggerWindow GW_OWNER)

For example, toolbar button code can be

Stop Func :SetProp(GetWindow(TriggerWindow GW_OWNER) "running" 0)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)