Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wait for multiple windows or controls created, enabled, etc
#1
Macro WaitWinMulti help
Code:
Copy      Help
;Waits for multiple top-level or child windows.
;At first call an AddX function to define windows to wait for. Call it for each window.
;Then call a WaitX function to wait for a condition.

;This is common to all WaitX functions:
;;;;Return 1-based index of the added window that satisfies the wait condition.
;;;;Succeed if the condition is true when called.
;;;;Use opt waitmsg and opt hidden.

;EXAMPLES

#compile "__WaitWinMulti"
WaitWinMulti x
x.AddWin("Notepad")
x.AddWin("" "" "WORDPAD")
sel x.WaitActive
,case 1 out "notepad"
,case 2 out "wordpad"


Attached Files
.qml   WaitWinMulti.qml (Size: 9.06 KB / Downloads: 1,110)
#2
hello,

according to the définition, the test should be :
x.AddWin("" "Notepad")

Thank's

Dominique
#3
Will this work in exe? i.e. does it use functions available in exe?
#4
yes
#5
Hmm I don't get it how to use this for child windows and text :?
(see attachment)
I want to make 3 cases, but since the title is the same I have to separate it by text.

Has anyone some examples for me please?

I bet it's totally simple.. :lol:


Regards
Staati


Attached Files Image(s)
   
#6
I added new function AddMsgBox.

Delete folder WaitWinMulti. Download and import WaitWinMulti.qml from the first post. Restart QM.

Example
Macro Macro1707
Code:
Copy      Help
#compile "__WaitWinMulti"
WaitWinMulti x
x.AddMsgBox("QM Message" "1")
x.AddMsgBox("QM Message" "*Two*")
sel x.WaitActive
,case 1 out 1
,case 2 out 2
#7
Is working fine.
Thanks Gintaras! Smile


Forum Jump:


Users browsing this thread: 1 Guest(s)