Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using a New Thread Possible, or Better Way!
#1
My macros main function is to use if image exists, then click - else if other image exists, click somewhere else. My question is, what is the best way to have the macro always waiting for an image to pop up? Would it be possible to have another thread running, which only searches for the images in case it pops up? Or use wait but always having it rep? Not too sure about this one.
#2
example
Macro Macro2482
Code:
Copy      Help
int w=win("Firefox" "MozillaWindowClass")
rep
,if(scan("image:h685202D5" w 0 1|16))
,,lef
,,break
,else if(scan("image:h24EA3E52" w 0 1|16))
,,lef
,,break
,0.5
With many images would consume much CPU. It is possible to create a faster multi-wait function, although not easy.


Forum Jump:


Users browsing this thread: 1 Guest(s)