narendra Posted October 17, 2018 Share Posted October 17, 2018 if suppose, i have create login script in 3 script script 1)open brower (URL) script 2) fill user id and password srcript 3) press login button i made three script.but, when run seperately new window open at instance. i want to work on same window. example :***** when i run script 1 login page will open *****when i run script 2 fill userid and password on same window ***** when i run script 3 press login button on same window. Link to comment Share on other sites More sharing options...
Developers Jos Posted October 17, 2018 Developers Share Posted October 17, 2018 Moved to the appropriate forum. Moderation Team 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 More sharing options...
Developers Jos Posted October 17, 2018 Developers Share Posted October 17, 2018 Your question is not realy very clear. Please describe your question in a more exact manor and post the scripts you currently use so we can better understand what you are after. JOs 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 More sharing options...
narendra Posted October 17, 2018 Author Share Posted October 17, 2018 first script (1.au3): open(login page) #include <IE.au3> $url = "http://www.vectorindia.org/login.html" $oIE = _IECreate($url) _IELoadWait($url) WinActivate($oIE) second script:(2.au3) #include<1.au3> $url = "http://www.vectorindia.org/login.html" $oIE = _IECreate($url) _IELoadWait($url) WinActivate($oIE) Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB} userid {TAB} password") Send("{TAB} userid {TAB} password") third script:(3.au3) #include<2.au3> ControlClick("Login - VectorIndia - Internet Explorer","Login", "", "left",1,445,412) i want to run this 3 script on single window which is open by first script.(when i try to run these script every time new window is opening) Link to comment Share on other sites More sharing options...
Developers Jos Posted October 17, 2018 Developers Share Posted October 17, 2018 (edited) OK, so you really have this one script when I manually simulate what AutoIt3 does for you at execution time: ;>>--- 3 -------------- ;#include<2.au3> ;>>--- 2 -------------- ;#include<1.au3> ;>>--- 1 -------------- #include <IE.au3> $url = "http://www.vectorindia.org/login.html" $oIE = _IECreate($url) _IELoadWait($url) WinActivate($oIE) ;<<--- 1 -------------- $url = "http://www.vectorindia.org/login.html" $oIE = _IECreate($url) _IELoadWait($url) WinActivate($oIE) Send("{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB}{TAB} userid {TAB} password") Send("{TAB} userid {TAB} password") ;<<--- 2 -------------- ControlClick("Login - VectorIndia - Internet Explorer","Login", "", "left",1,445,412) ;<<--- 3 -------------- Questions: Why are you doing a _IELoadWait() 2 times ? Why are you using the Send() commands n stead if the appropriate _IE function to fill those fields? Why are you using ControlClick, you should use the _IE function to click a button? Jos Edited October 17, 2018 by Jos 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 More sharing options...
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