Andreypitiku23 Posted November 17, 2015 Posted November 17, 2015 Hello,I really need your help, i'm new to Autoit and i don't have a lot of experience. I want to make a script that will auto-login in a webpage, and try that login every 3 minutes until it will login. I have a script that place the username and password on that website, but i don't know how to make it loop every 3 minutes and how to stop it when it's logged on website.My auto-login script:ShellExecute("iexplore.exe", "http://exemple.com") Sleep(2000) Send('username') Send('{TAB}') Send('password') Send('{ENTER}')please help meBest Regards,Andrei
Andreypitiku23 Posted November 17, 2015 Author Posted November 17, 2015 i made a script that when starts will loop every 3 minutes. Now i have a different problem, this script will open a lot of websites and will not be good for my PC performance.How can i edit this script to stop when it logins, and close the website every attempt.thank you,Andrei
Andreypitiku23 Posted November 17, 2015 Author Posted November 17, 2015 my new script: HotKeySet("{F9}", "ExitProg"); HotKeySet("{F10}", "StartProg"); While 1 Sleep (100) WEnd Func StartProg() While 1 ShellExecute("iexplore.exe", "http://exemple.htm") Sleep(2000) Send('username') Send('{TAB}') Send('password') Send('{ENTER}') WEnd EndFunc Func ExitProg() Exit 0; EndFunc
water Posted November 17, 2015 Posted November 17, 2015 Welcome to AutoIt and the forum!Can you please tell us why you need to login multiple times? If userid and password are correct you should be able to login at first try, correct? 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
Andreypitiku23 Posted November 17, 2015 Author Posted November 17, 2015 i need this script for my work, i want to login multiple times, because in this website are a limited number of sessions. So if the session nocswitchingis taken my script would login until i have a new session. The script from above makes that happen, but i want to close the webpage if is not succesfull.
Moderators Melba23 Posted November 17, 2015 Moderators Posted November 17, 2015 Andreypitiku23,I am not at all convinced by that explanation. Please tell us the name of this website that your work requires you to access "multiple times" but only has "a limited number of sessions" - PM me the URL if you do not wish to post it in open forum.Until then this thread is on hold.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
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