Primseven Posted August 17, 2016 Share Posted August 17, 2016 Good morning everyone, I'm completely new to AutoIT, (and in programmation...) I wanted to know if we can open a file .url automatically with the recorder. For exemple what I try to do is this : Open a website -- > enter login {tab} enter password {enter} to show a scheduler from a website. But I'm completely lost. Is someone as an idea to help a stupid guy? This is what i've done. #region ---Au3Recorder generated code Start (v3.3.7.0) --- #region --- Internal functions Au3Recorder Start --- Func _Au3RecordSetup() Opt('WinWaitDelay',100) Opt('WinDetectHiddenText',1) Opt('MouseCoordMode',0) EndFunc Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc AU3RecordSetup() #endregion --- Internal functions Au3Recorder End --- Run('C:\Program Files (x86)\Google\Chrome\Application\chrome.exe') _WinWaitActivate("Nouvel onglet - Google Chrome","") Send("http://blahblahblah.com/blah/login.aspx?boardname=Tasks&viewname=Todays%20schedule&allincidents=1{ENTER}") _WinWaitActivate("WebEOC 7.8 Login - Google Chrome","") Send("svc_shoc_display{TAB}1RocksRoom{ENTER}") #endregion --- Au3Recorder generated code End --- Thanks a million for any help. Prim Link to comment Share on other sites More sharing options...
water Posted August 17, 2016 Share Posted August 17, 2016 Welcom to AutoIt and the forum! To work with URLs we do not recommend the AutoIt recorder (a tools that has been dropped in the latest version of Autoit) - because it doesn't work. There are UDFs available to do what you want to do. The IE UDF comes with AutoIt whereas the Firefox UDF needs to be downloaded from the forum. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Primseven Posted August 17, 2016 Author Share Posted August 17, 2016 Thanks you, I'm not sure, but UDF mean User defining Function? Do you know where can I found these UDF? I'm really no good at coding, that's why I wanted to use AU3recorder. If I need to install some for Firefox, that's mean I will not be able to use it on other computers without downloading it on every computer? Link to comment Share on other sites More sharing options...
water Posted August 17, 2016 Share Posted August 17, 2016 Correct: UDF = User Defined Functions The UDF for Internet Explorer comes with AutoIt, documentation and example scripts can be found in the help file. You will get most help for this UDF on the forum. The Firefox UDF needs to be downloaded from the Example Scripts Forum and is a bit more complex to use. If you want to use the IE UDF please check some of the example scripts. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Primseven Posted August 17, 2016 Author Share Posted August 17, 2016 I've made almost everything except the most important, how can I open an .lnk? I've searched everywhere, but cannot find anything that I can understand... Someone can explain? Link to comment Share on other sites More sharing options...
Primseven Posted August 25, 2016 Author Share Posted August 25, 2016 I've kind of fixed my problem, but I have another one.... This is the code I managed to do : ; Run IE Run("c:\Program Files\Internet Explorer\iexplore.exe") ; Wait for the IE become active WinWaitActive("Windows Internet Explorer","",@SW_MAXIMIZE) Send("{F11}") Send("{TAB}") Send("http://website", 1) Send("{ENTER}") WinWaitActive("WebEOC 7.8 Login") Send("login{TAB}password{ENTER}") But I can't manage to have my window open in maximize mode. So I do F11 but the problem is that IE memorize the fact the window was already in full mode so put me back in normal mode. Is someone have an idea how to get around this problem? Thanks by advance! Link to comment Share on other sites More sharing options...
Primseven Posted September 6, 2016 Author Share Posted September 6, 2016 I re up the topic. I finally found a way around to open IE in kiosk mode with the webpage I want, but I still have problem... Here's my code : ShellExecuteWait("c:\Program Files\Internet Explorer\iexplore.exe", "-k http://vshoc.who.int/vshoc/login.aspx?boardname=Tasks&viewname=Todays%20schedule&allincidents=1", "") ; Wait for the IE become active WinWaitActive("WebEOC 7.8 Login - Internet Explorer","") Send("login{TAB}password{ENTER}") But a reason I do not know, I can't make the "send" command work... Can someone help me? Also, is there a way to send the login and then the password in one only input? Thanks for your help... Prim 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