Sign in to follow this  
Followers 0
LukeJrs

Duplicate entries.

4 posts in this topic

The project i'm working on is focusing getting customer information by phone number on their account so it's scan number by number+1.

Example

John have an account with Ginzo they can pull his account information with his cellphone.

John cell phone is 2398000000 on his account he have 4 line they are, 2398000001,2398000321,2398000004 now the script know how many line he have will save it on a txt file. Unfortunely many duplicate i'm getting such as will go to 2398000001 then will save all 4 line again then will search 2398000002, then 2398000003, once it reach 2398000004 will open john account and will save all 4 line account on txt file.

It's there anyway like make a temp file that know which cellphone number already search and not to research same phone number?

Func start()
$number = InputBox("Feature Finder", "Enter the 10 digit", "Type here", " M10")
if $number <= 1000000000 Then
    start()
    EndIf
$soIE1 = _IECreate("http://Ginzo.west.cust.com", 0, 0) ;OPEN BROWNSER URL
    For $i1 = 0 To 9999;LOOPING STRING TO REPEAT UNTIL NUMBER REACH ???-???-9999
$sURL1 = "http://Ginzo.west.cust.com/type=searchBy&mtn=" & $number 
_IENavigate($soIE1, $sURL1);START NAVIGATING
$sText = _IEDocReadHTML($soIE1);READ FROM HTML CODE ON WEBSITE
$mtn = _StringBetween($sText, 'teleMtn.mtn = "', '";');Mobile Numbers
    For $i = 0 To UBound($mtn) - 1; maybe $i = 1 if you needn't the count.
$mtn1 = StringReplace($mtn[$i], "-", "")
Next
$number += 1
Next
EndFunc

Share this post


Link to post
Share on other sites



The project i'm working on is focusing getting customer information by phone number on their account so it's scan number by number+1.

Example

John have an account with Ginzo they can pull his account information with his cellphone.

John cell phone is 2398000000 on his account he have 4 line they are, 2398000001,2398000321,2398000004 now the script know how many line he have will save it on a txt file. Unfortunely many duplicate i'm getting such as will go to 2398000001 then will save all 4 line again then will search 2398000002, then 2398000003, once it reach 2398000004 will open john account and will save all 4 line account on txt file.

It's there anyway like make a temp file that know which cellphone number already search and not to research same phone number?

Func start()
$number = InputBox("Feature Finder", "Enter the 10 digit", "Type here", " M10")
if $number <= 1000000000 Then
    start()
    EndIf
$soIE1 = _IECreate("http://Ginzo.west.cust.com", 0, 0);OPEN BROWNSER URL
    For $i1 = 0 To 9999;LOOPING STRING TO REPEAT UNTIL NUMBER REACH ???-???-9999
$sURL1 = "http://Ginzo.west.cust.com/type=searchBy&mtn=" & $number 
_IENavigate($soIE1, $sURL1);START NAVIGATING
$sText = _IEDocReadHTML($soIE1);READ FROM HTML CODE ON WEBSITE
$mtn = _StringBetween($sText, 'teleMtn.mtn = "', '";');Mobile Numbers
    For $i = 0 To UBound($mtn) - 1; maybe $i = 1 if you needn't the count.
$mtn1 = StringReplace($mtn[$i], "-", "")
Next
$number += 1
Next
EndFunc
I don't understand what you trying to do there, but the strat of your function would be better if yu didn't make it recursive IMO

Func start()
    Do
        $number = InputBox("Feature Finder", "Enter the 10 digit", "Type here", " M10")
    Until $number > 1000000000
    
    $soIE1 = _IECreate("http://Ginzo.west.cust.com", 0, 0);OPEN BROWNSER URL
    For $i1 = 0 To 9999;LOOPING STRING TO REPEAT UNTIL NUMBER REACH ???-???-9999
        $sURL1 = "http://Ginzo.west.cust.com/type=searchBy&mtn=" & $number
        _IENavigate($soIE1, $sURL1);START NAVIGATING
        $sText = _IEDocReadHTML($soIE1);READ FROM HTML CODE ON WEBSITE
        $mtn = _StringBetween($sText, 'teleMtn.mtn = "', '";');Mobile Numbers
        For $i = 0 To UBound($mtn) - 1; maybe $i = 1 if you needn't the count.
            $mtn1 = StringReplace($mtn[$i], "-", "");<-----what's this for??
        Next
        $number += 1
    Next
EndFunc  ;==>start

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

I'm not totally sure what you are trying to do, but with that many entries it would be much easier to use a database. The builtin SQLite functions would work fine.

Share this post


Link to post
Share on other sites

I don't understand what you trying to do there, but the strat of your function would be better if yu didn't make it recursive IMO

Func start()
    Do
        $number = InputBox("Feature Finder", "Enter the 10 digit", "Type here", " M10")
    Until $number > 1000000000
    
    $soIE1 = _IECreate("http://Ginzo.west.cust.com", 0, 0);OPEN BROWNSER URL
    For $i1 = 0 To 9999;LOOPING STRING TO REPEAT UNTIL NUMBER REACH ???-???-9999
        $sURL1 = "http://Ginzo.west.cust.com/type=searchBy&mtn=" & $number
        _IENavigate($soIE1, $sURL1);START NAVIGATING
        $sText = _IEDocReadHTML($soIE1);READ FROM HTML CODE ON WEBSITE
        $mtn = _StringBetween($sText, 'teleMtn.mtn = "', '";');Mobile Numbers
        For $i = 0 To UBound($mtn) - 1; maybe $i = 1 if you needn't the count.
            $mtn1 = StringReplace($mtn[$i], "-", "");<-----what's this for??
        Next
        $number += 1
    Next
EndFunc ;==>start
when it read the doc html it find 239-800-0009 will make it to 2398000009 from
$mtn1 = StringReplace($mtn[$i], "-", "");<-----what's this for??

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0