Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"connect to" Logon/Pass Dialog Interrupting Macro
#1
Hi,

When I call up a certain webpage that initially requires a login I get a popup window that says "Connect to example.org" with Username/Password fields.

However, this will hang up the macro....i.e. my normal wait and error out statements don't work. Since this login window wll sometimes recede to background, it will prevent any new macros from running, if you don't realize that QM is still waiting on this dialog. I have tried to identify it and kill the macro if it hangs to long on this window (i.e. I don't log in) but they never work because the macro is suspended until this dialog is answered.

Any experience or solutions for this problem?

I have tried
Code:
Copy      Help
wait 5 KF;err ret
and
Code:
Copy      Help
web "example.org/results" 0x8|(3<<16) 0 "http://finalname.org; err ErrMsg(2)
and

But neither works because qm is still hung up on the dialog so it doesn't run these.

Stuart
#2
Code:
Copy      Help
;Use flag 1 with web.
web "url" 8|1|(15<<16); err ErrMsg(2)

;Or wait for 'Connect to' window and then until it is closed.
int h
web "url" 8 0 "" 0 h
int h2=wait(30 WV "Connect to")
wait 15 -WC h2; err ErrMsg(2)
web "" 1 h
mes 1
#3
After your initial post, I tried taking OUT the 1 flag and it worked perfectly. I put a wait key state in and then close the windows (both the initial and login)
I will try your new code too.
Thanks!!!
Stuart


Forum Jump:


Users browsing this thread: 1 Guest(s)