faustf Posted September 23, 2019 Share Posted September 23, 2019 hi guys when i try to create a macro for register a mail in site mail.com , the macro work filled a inputbox but when arrive at end and click ok tell me i must filled all inputbox like not read how is possible _? expandcollapse popup#include <AutoItConstants.au3> #include <ButtonConstants.au3> #include <ComboConstants.au3> #include <Date.au3> #include <Debug.au3> #include <EditConstants.au3> #include <Excel.au3> #include <File.au3> #include <FTPEx.au3> #include <GUIConstants.au3> #include <GUIConstantsEx.au3> #include <GuiComboBoxEx.au3> #include <GuiStatusBar.au3> #include <GuiListView.au3> #include <GuiToolbar.au3> #include <GUIImageList.au3> #include <GuiEdit.au3> #include <GuiIPAddress.au3> #include <GDIPlus.au3> #include <GuiMenu.au3> #include <GuiScrollBars.au3> #include <GuiTreeView.au3> #include <IE.au3> #include <InetConstants.au3> #include <Misc.au3> #include <MsgBoxConstants.au3> #include <StaticConstants.au3> #include <TabConstants.au3> #include <ToolbarConstants.au3> #include <String.au3> #include <WindowsConstants.au3> #include <WinAPIRes.au3> #include <WinAPIShellEx.au3> #include <WinAPIFiles.au3> #include <WinAPI.au3> #include <SQLite.au3> #include <SQLite.dll.au3> #include <MsgBoxConstants.au3> #include <WinAPIFiles.au3> #include <File.au3> #include <IE.au3> #include <GuiListView.au3> Global $sSITIWEB_Read = "https://signup.mail.com/#.1258-header-signup2-1" Global $s1Name = "Casimiro" Global $s2Name = "Traversagno" Global $sGender = "male" Global $sDay_Born = "18" Global $sMonth_Born = "08" Global $sYear_Born = "1963" Global $sCountry = "italy" Global $sDesire_Email = "casimiroTraversagno1963" Global $sPassword = "xxxxxxx" Global $s2Mail = "casimiro@nnnnnn.com" Global $sSeacret_Q = "" _Robot_Mail_Com($sSITIWEB_Read, $s1Name, $s2Name, $sGender, $sDay_Born, $sMonth_Born, $sYear_Born, $sCountry, $sDesire_Email, $sPassword, $s2Mail, $sSeacret_Q) Func _Robot_Mail_Com($sSITIWEB_Read, $s1Name, $s2Name, $sGender, $sDay_Born, $sMonth_Born, $sYear_Born, $sCountry, $sDesire_Email, $sPassword, $s2Mail, $sSeacret_Q) Local $iGTimeToCeck = "1", $iGTimeOut = "1" ; mail desiderata Global $oIE = _IECreate($sSITIWEB_Read, 0, 1, 1, 1) ; <--- 0011 invisible explorer <--- 0111 visible explorer _IELoadWait($oIE, $iGTimeToCeck, $iGTimeOut) Local $oBtns = $oIE.document.GetElementsByTagName("Input") For $oBtn In $oBtns $classname = String($oBtn.classname()) ;ConsoleWrite($classname & @CRLF) If $classname = "pos-form-element pos-text-input email-alias-input__alias-input ng-untouched ng-pristine ng-invalid" Then _IEAction($oBtn, "click") _IEFormElementSetValue($oBtn, $sDesire_Email) EndIf Next ; maschio Local $oBtns = $oIE.document.GetElementsByTagName("i") For $oBtn In $oBtns $classname = String($oBtn.classname()) ;ConsoleWrite($classname & @CRLF) If $classname = "pos-input-radio__border" Then _IEAction($oBtn, "click") ;_IEFormElementSetValue($oBtn, $sDesire_Email) EndIf Next ;nome e cognome Local $oBtns = $oIE.document.GetElementsByTagName("Input") $iCtrl = 0 For $oBtn In $oBtns $classname = String($oBtn.classname()) ;ConsoleWrite($classname & @CRLF) ;MsgBox (0,'',$iCtrl) ;nome If $classname = "ng-untouched ng-pristine ng-invalid" And $iCtrl = 3 Then _IEAction($oBtn, "click") _IEFormElementSetValue($oBtn, $s1Name) EndIf ;cognome If $classname = "ng-untouched ng-pristine ng-invalid" And $iCtrl = 4 Then _IEAction($oBtn, "click") _IEFormElementSetValue($oBtn, $s2Name) EndIf $iCtrl += 1 ;mese nascita If $classname = "pos-dob pos-dob--mm" And $iCtrl = 3 Then _IEAction($oBtn, "click") _IEFormElementSetValue($oBtn, $sMonth_Born) EndIf ;giorno nascita If $classname = "pos-dob pos-dob--dd" And $iCtrl = 3 Then _IEAction($oBtn, "click") _IEFormElementSetValue($oBtn, $sDay_Born) EndIf ;anno nascita If $classname = "pos-dob pos-dob--dd" And $iCtrl = 3 Then _IEAction($oBtn, "click") _IEFormElementSetValue($oBtn, $sYear_Born) EndIf Next Local $oBtns = $oIE.document.GetElementsByTagName("select") For $oBtn In $oBtns $classname = String($oBtn.calssname()) ConsoleWrite($classname & @CRLF) If $classname = "pos-form-element pos-text-input ng-pristine ng-valid ng-touched" Then _IEAction($oBtn, "click") _IEFormElementSetValue($oBtn, $sCountry) EndIf Next EndFunc ;==>_Robot_Mail_Com Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 23, 2019 Moderators Share Posted September 23, 2019 faustf, Why are you looking to automate account creation for a free email provider? And anyway as I read it, you are breaking their TOS: Quote 8.6. You agree and warrant that you shall not [...] use scripts, robots, web crawlers, or similar type of programs or applications; What do you have to say to that? M23 P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out. 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...
faustf Posted September 23, 2019 Author Share Posted September 23, 2019 hi Because i have customer , they want pass to mail.com server provider , and this task, i must do it , don't want write like a monkey name surname .... , because is they are 100 ( maybe ), i prefer click 100 time for chapca and click button ok i not saw this 8.6. You agree and warrant that you shall not [...] use scripts, robots, web crawlers, or similar type of programs or applications; ofcorse i don't want create nothing malicious (or give at other people gray-code for create it) i will find another solution if they will assume is not politically correct . dont wanna create problem thankz Link to comment Share on other sites More sharing options...
Developers Jos Posted September 23, 2019 Developers Share Posted September 23, 2019 Well this one clearly fits the "what about using your brains for a change" category as you should know that forms with a CAPTCHA obviously do not want the process to be automated.... Right? 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...
faustf Posted September 23, 2019 Author Share Posted September 23, 2019 i dont wanna create a flame , i just explain all my reason because i don't want insert 100 customers , all site in the world have captcha ,and @jos if i am not wake up for understund capcha = not robot , you not read good 1 hour ago, Melba23 said: P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out. Link to comment Share on other sites More sharing options...
Developers Jos Posted September 23, 2019 Developers Share Posted September 23, 2019 3 hours ago, faustf said: and @jos if i am not wake up for understund capcha = not robot , you not read good I have no clue what that really means. Care to try again so I understand before I reply? 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...
faustf Posted September 24, 2019 Author Share Posted September 24, 2019 @jos you are a Moderator ? Link to comment Share on other sites More sharing options...
alienclone Posted September 24, 2019 Share Posted September 24, 2019 2 hours ago, faustf said: @jos you are a Moderator ? https://www.autoitscript.com/forum/staff/ If @error Then MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!") EndIf "Yeah yeah yeah patience, how long will that take?" -Ed Gruberman REAL search results | SciTE4AutoIt3 Editor Full Version Link to comment Share on other sites More sharing options...
faustf Posted September 24, 2019 Author Share Posted September 24, 2019 @alienclone usally i look under the icon https://ibb.co/hyzdgFj Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 24, 2019 Moderators Share Posted September 24, 2019 faustf, Eight years a member of this forum and you have still not yet worked out who is a Moderator here? Anyway, as the mail.com site clearly does not want anyone to automate its registration process - thread locked. 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...
Developers Jos Posted September 24, 2019 Developers Share Posted September 24, 2019 12 hours ago, faustf said: @jos you are a Moderator ? Did you seriously forget what happened a year ago? I haven't as you have been the first and only person I have given a postban of 1 month for lack of effort after ample warning. Also am totally lost how that question even came up in your brains but on the other hand does explain a lot. 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