Re:question on winwait
"valery_vi" <[email protected]>
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
>how can i write a command with a same title but different text...
>let's say... i want to install something...
>
>the title is Setup A Software...
>the text is Welcome! Click OK to continue
>after click OK
>the title is still same Setup A Software...
>but the text is change to Are you sure? Yes or No
You can use the same func but with new variable text
For example:
func WinHandler()
Select
Case WinExists('Setup A Software','Welcome!') = 1
;Action for Welcome! window
...
Case WinExists('Setup A Software','Are you sure?') = 1
;Action for Are you sure? window
...
Case Else
;Action for other cases
...
EndSelect
endfunc
Valery