if statement with a window that might pop up in a web site
What code or function could I use for a window in a web browser that might pop up? It's driving me crazy, because it makes my code unstable. Sometimes it pops up, other times it doesn't. I think I need somehting like:
If (a window opens up)
then show the window and press enter
I don't know what to do.
This is the code for the window:
CurrentWindow = WFndWndC("Help information", "#32770", FINDWINDOWFLAGS_IF, Timeout)
WSetWndPosSiz(CurrentWindow, 206, 149, 387, 274)
Can I stick this in an "if statement". I'm not very familiar with VT, but I am familiar with programming. Thanks.