Jump to content
Sign in to follow this  
ConsultingJoe

Another Phone Udf - find carrier, type, city, and state

Recommended Posts

Let me know if you have any questions or comments, Thanks

; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.125
; Author:         zerocool60544 <jsammarco@gmail.com>
;
; *USES IE2*
;
; UDF Function: phone($return, $area, $pre, $post)
;       $return = Return type
;           0 = Carrier
;           1 = City
;           2 = State
;           3 = Type
;               CLEC = Competitive Local Exchange Carrier, like TCG
;               RBOC = Regional Bell Operating Company, like Pacific Bell or Bell Atlantic
;               TELCO = A long distance company, like AT&T
;               WIRELESS = A cell phone or pager company, like Nextel
;               CAP = Competitive Access Provider, like ICG
;               IND TELCO = A small local phone company, not previously part of the Bell System.
;               PCS = A Personal Communication System provider, like Pacific Bell PCS. Cell phones and data transmission.
;       $area = Area code
;           Example: 815
;       $pre = Prefix
;           Example: 603
;       $post = First number in the postfix
;           Example: 9
;
; ----------------------------------------------------------------------------
#include <IE.au3>

MsgBox(0, "", phone( 0, "815", "603", "9"))

Func phone($return, $area, $pre, $post)
    $oIE = _IECreate ("http://www.fonefinder.net", 0, 0)
    $form = _IEFormGetCollection ($oIE, 0)
    $areainput = _IEFormElementGetObjByName ($form, "npa")
    $preinput = _IEFormElementGetObjByName ($form, "nxx")
    $postinput = _IEFormElementGetObjByName ($form, "thoublock")
    $submit = _IEFormElementGetObjByName ($form, "usaquerytype")
    _IEFormElementSetValue ($areainput, $area)
    _IEFormElementSetValue ($preinput, $pre)
    _IEFormElementSetValue ($postinput, $post)
    $submit.click
    _IELoadWait ($oIE)
    $table = _IETableGetCollection ( $oIE, 0 )
    $array = _IETableWriteToArray ( $table )
    _IEQuit ($oIE)
    Select
        case $return = 0
            Return $array[4][1]
        Case $return = 1
            Return $array[2][1]
        Case $return = 2
            Return $array[3][1]
        Case $return = 3
            Return $array[5][1]
    EndSelect
EndFunc   ;==>carrier
Edited by zerocool60544

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
Share on other sites

See if I can get a tab in Fone with a gui going for it :D

Get an kinda all in one phone app going.

ok, sounds cool. I want to add this to my cell bomber in case you dont know the carrier.

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
Share on other sites

Seeing as you seem to be into phone 'fun', have you checked out phoneswarm.com before?

I went to that site. it didnt really have anything???

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

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  

×
×
  • Create New...