shelly Posted August 31, 2020 Posted August 31, 2020 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}")
Danp2 Posted August 31, 2020 Posted August 31, 2020 (edited) Autoit comes with an IE UDF. Why aren't you using these functions? Edited August 31, 2020 by Danp2 typo Latest Webdriver UDF Release Webdriver Wiki FAQs
shelly Posted August 31, 2020 Author Posted August 31, 2020 (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 September 1, 2020 by shelly
Developers Jos Posted August 31, 2020 Developers Posted August 31, 2020 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.
shelly Posted September 1, 2020 Author Posted September 1, 2020 @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 Jos Posted September 1, 2020 Developers Posted September 1, 2020 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now