Jump to content

Have to handle pop-up when screen is not active


 Share

Recommended Posts

Here is the below code for handling pop-up when window is  inactive ..but I don't know how to change sleep and when i run this script it runs sometimes and sometimes it stops .

ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{SPACE}")

ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{DOWN}")

ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{ENTER}")

--- these 3 lines never worked while TAB lines works sometimes but not in accurate way

I am new too AutoIt .. help me out why this script behaves in strange way

ControlFocus("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog", "", "Internet Explorer_Server1","1")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog", "", "Internet Explorer_Server1","the request is send")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{SPACE}")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{DOWN}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
Sleep(3000)
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{TAB}")
ControlSend("Policy Decisions -- Webpage Dialog","","Internet Explorer_Server1","{ENTER}")
 

Link to comment
Share on other sites

  • Developers
1 hour ago, shelly said:

As I already mention I am new to AutoIT..

yes... and?  That doesn't releave you form doing some of the research and work. ;) 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers
1 hour ago, shelly said:

I hope instead of getting rude... try to give suggestion for which this platform is formed.

Suggestion ....sure.... as I told you ...  try to invest some time to read up on things and try something before posting.
Then when you have an issue you post here with the code that isn't working.
This has nothing to do with rudeness but rather politeness/respect from your side for this forum and it's members. ;) 

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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

×
×
  • Create New...