Jump to content

Recommended Posts

Posted

I am trying to write a gui which is basically a non editable address book. This means I do not want someone to be able to copy and paste all of the address like if they were kept in an ini or text file. I can't figure out which command to use to do this. Can someone help me out?

Posted

well you can use guictrlsetstate and do $GUI_DISABLE and when you do write them to a file you can use one of the multiple stringencryption UDF's in the scripts and scraps or check out the _StringEncrypt in the helpfile

Posted

You'll either have to hard code the information into the script or find another way to store the information, maybe encrypted, to keep it from being readable.

Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Posted

Hi Alternatively have it "FileInstall" the ini or Text file everytime you open your program, overwritting the previous file.

Valery have written a very nice one but he is on the "AutoIt List" forum

Rgds

Gerry

Posted

Or assign the entire book with a variable. Then use a distinguishable character to split up each entry, for example Name,Address,Phone|Name,Address,Phone. With a simple StringSplit, you can easily split it up into 2 seperate, and then do another stringsplit and get each seperated into their own array.

Posted

Or assign the entire book with a variable. Then use a distinguishable character to split up each entry, for example Name,Address,Phone|Name,Address,Phone. With a simple StringSplit, you can easily split it up into 2 seperate, and then do another stringsplit and get each seperated into their own array.

Can you give me an example of this? codewise? Thanks

Posted

Take a look here ;)

#include <GUIConstants.au3>
Global $var
$GUI = GUICreate("AForm1", 333, 335, 217, 115)
$List = GUICtrlCreateListView("Address|Phone|Name|Email", 0, 0, 329, 331)
GUISetState(@SW_SHOW)
GUICtrlSetState($List,$GUI_DISABLE)
Global $AddressBook = "SE 12345 Lane,123-456-789,John Doe,blank@yahoo.com|NE 54321 Road,098-765-4321, Jane Doe,blast@yahoo.com|" & _
"Farwest Corner,432-234-2345,Kat Hat,Email@yahoo.com|FarEast Corner,432-234-2355,KaB Hat,Email234324@yahoo.com"

$array1 = StringSplit($AddressBook,"|")
For $i = 1 to UBound($array1) - 1
    $array2 = StringSplit($array1[$i],",")
    For $j = 1 to UBound($array2) - 1
        $var = $var & $array2[$j] & "|"
    Next
    GUICtrlCreateListViewItem($var,$List)
    $var = ""
Next
While 1
    $msg = GUigetmsg()
    If $msg = $GUI_EVENT_CLOSE Then Exit
WEnd
Posted

Would there be a limit to how many names i can add to the list? I have 42 now and if i add more it tells me "unterminated string in file"

Posted

I have this

$List = GUICtrlCreateListView("M Title|F Title|Last Name|Wife Name|Husband Name|Address|City|State|Zip|Phone|E-mail", 0, 0, 329, 331)

I can add 42, and then if i try to add one more it gives me that error. Also weird is if it add test,test,test,test,test,test,test,test,test,test,test,test to the end it doesn't even list it.

Posted

Im on at school so this could work it might not cuz im on a mac and cant test it out.

#include <GUIConstants.au3>
Global $var
$GUI = GUICreate("AForm1", 333, 335, 217, 115)
$List = GUICtrlCreateListView("M Title|F Title|Last Name|Wife Name|Husband Name|Address|City|State|Zip|Phone|E-mail", 0, 0, 329, 331)
GUISetState(@SW_SHOW)
GUICtrlSetState($List,$GUI_DISABLE)
Global $AddressBook = "M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com"
$array1 = StringSplit($AddressBook,"|")
For $i = 1 to UBound($array1) - 1
    $array2 = StringSplit($array1[$i],",")
    For $j = 1 to UBound($array2) - 1
        $var = $var & $array2[$j] & "|"
    Next
    GUICtrlCreateListViewItem($var,$List)
    $var = ""
Next
While 1
    $msg = GUigetmsg()
    If $msg = $GUI_EVENT_CLOSE Then Exit
WEnd
Posted

Yes, it works but that is the same code I have. The problem is what happens after you go over 42 records you get the unterminated string error. Try this and you'll see

#include <GUIConstants.au3>
Global $var
$GUI = GUICreate("AForm1", 333, 335, 217, 115)
$List = GUICtrlCreateListView("M Title|F Title|Last Name|Wife Name|Husband Name|Address|City|State|Zip|Phone|E-mail", 0, 0, 329, 331)
GUISetState(@SW_SHOW)
GUICtrlSetState($List,$GUI_DISABLE)
Global $AddressBook = "M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com"
$array1 = StringSplit($AddressBook,"|")
For $i = 1 to UBound($array1) - 1
    $array2 = StringSplit($array1[$i],",")
    For $j = 1 to UBound($array2) - 1
        $var = $var & $array2[$j] & "|"
    Next
    GUICtrlCreateListViewItem($var,$List)
    $var = ""
Next
While 1
    $msg = GUigetmsg()
    If $msg = $GUI_EVENT_CLOSE Then Exit
WEnd
Posted (edited)

Maximum string length is 2147483647 characters (but keep in mind that no line in an AutoIt script can exceed 4095 characters.)

so u got to cut down on the character amount in them

CODE

#include <GUIConstants.au3>

Global $var

$GUI = GUICreate("AForm1", 333, 335, 217, 115)

$List = GUICtrlCreateListView("M Title|F Title|Last Name|Wife Name|Husband Name|Address|City|State|Zip|Phone|E-mail", 0, 0, 329, 331)

GUISetState(@SW_SHOW)

Global $AddressBook[4]

$AddressBook[1] = "M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|" & _

"M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|" & _

"M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|" & _

"M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|" & _

"M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|"

$AddressBook[2] = "M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|" & _

"M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|" & _

"M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|" & _

"M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|" & _

"M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|"

$AddressBook[3] = "M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|" & _

"M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|" & _

"M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|" & _

"M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|" & _

"M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|" & _

"M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|M Title(test),F Title(test),Doe,Jane,John,2345 SE norbury road,sacramento,cali,94855,567-564-4566,eblah@yahoo.com|" & _

"M Title(test1),F Title(test1),Didd,Frane,JoEn,65675 SE Norwthes road,sandiego,minnestoa,56564,345-345-3455,ejfjf@yahoo.com|M Title(test2),F Title(test2),Do22e,Ja22ne,Jo22hn,232245 S22E nor22bury ro22ad,sac22ramento,c22ali,92224855,52267-56224-422566,eblah222222@yahoo.com|"

For $a = 1 to UBound($AddressBook) - 1

$array1 = StringSplit($AddressBook[$a],"|")

For $i = 1 to UBound($array1) - 1

$array2 = StringSplit($array1[$i],",")

For $j = 1 to UBound($array2) - 1

$var = $var & $array2[$j] & "|"

Next

GUICtrlCreateListViewItem($var,$List)

$var = ""

Next

Next

While 1

$msg = GUigetmsg()

If $msg = $GUI_EVENT_CLOSE Then Exit

WEnd

Edited by thatsgreat2345

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
×
×
  • Create New...