Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wait for window
#1
Hello there!

I have a function that extracts some information from a certain period of time to a certain period of time. It extracts a information from a window that is created at that time and always have a diferent ending, example:

https://xxxx.xxxx.com.br/arsys/servlet/ ... 4221719464

But on the end of that URL, the numbers are never the because they depend on the information that it contains. So I want to tell my function to wait for that window no matter what that number is, and the code I have goes like this:

int w=wait(0 WC win("https://xxxx.xxxxxxxx.com.br/arsys/servlet/ReportServlet/1364221719464 - Windows Internet Explorer provided by NSN 1.0" "IEFrame"))

How do I do that?

Thanks for your time!
#2
Use part of window name, or wildcard characters with flag 1, or regular expression with flag 0x200. Example:
int w=wait(0 WC win("https://xxxx.xxxxxxxx.com.br/arsys/servlet/ReportServlet/* - Windows Internet Explorer provided by NSN 1.0" "IEFrame" "" 1))
#3
Thanks once again!

Greetings Big Grin
Pedro


Forum Jump:


Users browsing this thread: 1 Guest(s)