Jump to content

Click "ok" on a new, not visible window


arryo
 Share

Recommended Posts

Hi,

My new Script automatically Subscribes an User on Youtube. It runs with a hidden window. But there is a problem...

What can I do when THIS happens?

--> http://img7.imageshack.us/img7/8408/ahhz.jpg

NOTE: It will NOT be the active window when it comes up.

(the main window behind it is here visible)

Edited by arryo
Link to comment
Share on other sites

If you use the window info tool, you can obtain the window title and the visible text fo the control. Activate the window and do a control Send. Since it is a message box, you won't need a control ID

WinActivate("Windows Internet Explorer","OK")
ControlClick("Windows Internet Explorer","OK","","Primary")
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...