phild22 Posted February 10, 2015 Share Posted February 10, 2015 #include <IE.au3> Call ("Submit") Func Submit() Global $oIE = _IECreate ("http://www.hgtv.com/design/hgtv-dream-home/sweepstakes/enter") Local $email = _IEGetObjById ($oIE,"login_form") Local $login_form = _IEGetObjById ($oIE,"login_form") Local $button = _IEGetObjByName ($oIE,"btn btn_login") _IEFormElementSetValue ($login_form,"o1@me.com") _IEAction ($button,"click") EndFunc what am I doing wrong? Link to comment Share on other sites More sharing options...
water Posted February 10, 2015 Share Posted February 10, 2015 Welcome to AutoIt and the forum! Why do you want to automate the login? It's a security measure. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Spider001 Posted February 10, 2015 Share Posted February 10, 2015 game ? http://en.wikipedia.org/wiki/Sweepstakes Link to comment Share on other sites More sharing options...
water Posted February 10, 2015 Share Posted February 10, 2015 Lets see what the Mods think. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
SadBunny Posted February 10, 2015 Share Posted February 10, 2015 Seems to be a contest of sorts to win a Dream Home. Don't know if it's a game, but attempts to automate logging in to a contest site to actually win real stuff doesn't sound a whole lot better IMHO Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 10, 2015 Moderators Share Posted February 10, 2015 Hi phild22, please provide the link to the sweepstakes rules, eula, or tos. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
phild22 Posted February 11, 2015 Author Share Posted February 11, 2015 (edited) Welcome to AutoIt and the forum! Why do you want to automate the login? It's a security measure. because it would be useful, there's no advantage other then saving time, you can only enter twice a day. so what is wrong with the code? Edited February 11, 2015 by phild22 Link to comment Share on other sites More sharing options...
phild22 Posted February 11, 2015 Author Share Posted February 11, 2015 Hi phild22, please provide the link to the sweepstakes rules, eula, or tos. it's in the link....please provide corrections to my code Link to comment Share on other sites More sharing options...
water Posted February 11, 2015 Share Posted February 11, 2015 The rules can be found here. I think the script would violate the following section: "Mechanically reproduced or hand-stamped entries or mailing labels or entries generated by script, macro or other automated or mechanical means and entries by any means which subvert the entry process will not be accepted" My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 11, 2015 Moderators Share Posted February 11, 2015 phild22,Looking at those rules, it is clear that automating the site is not permitted - thread closed. And in future, if a Mod askes you to provide more information I would strongly suggest that you do rather more that tell us to search for ourselves. 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 Link to comment Share on other sites More sharing options...
Recommended Posts