Jump to content

macro registration mail


faustf
 Share

Recommended Posts

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 _?

#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

  • Moderators

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.

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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

  • Developers

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

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

  • Developers
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

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

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Developers
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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...