Jump to content

Recommended Posts

Posted

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}")
 

Posted (edited)

As I already mention I am new to AutoIT.. so thanku for ur suggestion ... trying to do it with IE too but haven't got the answer which I was looking.

Edited by shelly
Posted

@Jos I already did that after the suggestion of @Danp2 but still has not got my solution . I just reply to @Danp2 that's nothing for you to get rude to anyone . So next time,  I hope instead of getting rude... try to give suggestion for which this platform is formed.  ;)

  • Developers
Posted
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.
  :)

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
×
×
  • Create New...