TuMiM Posted November 19, 2006 Share Posted November 19, 2006 I have a listview that is created using arrays. I am using the double click code from gafrost and the double click event works perfectly but I want the double click to create a new gui with a nicey formatted labels for each line of the data. For example a lable for first name and a label for last name etc. Is thre a way to do that? expandcollapse popup#include <GUIConstants.au3> #include <GuiListView.au3> Global $List Global Const $WM_NOTIFY = 0x004E Global Const $DebugIt = 1 ;ListView Events Global Const $NM_FIRST = 0 Global Const $NM_LAST = (-99) Global Const $NM_OUTOFMEMORY = ($NM_FIRST - 1) Global Const $NM_CLICK = ($NM_FIRST - 2) Global Const $NM_DBLCLK = ($NM_FIRST - 3) 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) GUICtrlSendMsg($List, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_GRIDLINES, $LVS_EX_GRIDLINES) GUICtrlSendMsg($List, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_FULLROWSELECT, $LVS_EX_FULLROWSELECT) 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|" GUIRegisterMsg($WM_NOTIFY, "WM_Notify_Events") 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 Dim $B_DESCENDING[_GUICtrlListViewGetSubItemsCount ($list)] While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $list ; sort the list by the column header clicked on _GUICtrlListViewSort($list, $B_DESCENDING, GUICtrlGetState($list)) EndSelect WEnd Func ListView_Click() ;---------------------------------------------------------------------------------------------- If $DebugIt Then ConsoleWrite (_DebugHeader ("$NM_CLICK")) ;---------------------------------------------------------------------------------------------- EndFunc ;==>ListView_Click Func ListView_DoubleClick() ;---------------------------------------------------------------------------------------------- If $DebugIt Then ConsoleWrite (_DebugHeader ("$NM_DBLCLK")) ;---------------------------------------------------------------------------------------------- MsgBox(0,"Double Clicked", _GUICtrlListViewGetItemText ($List, _GUICtrlListViewGetSelectedIndices($List))) EndFunc ;==>ListView_DoubleClick ; ; WM_NOTIFY event handler Func WM_Notify_Events($hWndGUI, $MsgID, $wParam, $lParam) #forceref $hWndGUI, $MsgID, $wParam Local $tagNMHDR, $event, $hwndFrom, $code $tagNMHDR = DllStructCreate("int;int;int", $lParam);NMHDR (hwndFrom, idFrom, code) If @error Then Return $event = DllStructGetData($tagNMHDR, 3) Select Case $wParam = $List Select Case $event = $NM_CLICK ListView_Click () Case $event = $NM_DBLCLK ListView_DoubleClick () EndSelect EndSelect $tagNMHDR = 0 $event = 0 $lParam = 0 EndFunc ;==>WM_Notify_Events Func _DebugHeader($s_text) Return _ "!===========================================================" & @LF & _ "+===========================================================" & @LF & _ "-->" & $s_text & @LF & _ "+===========================================================" & @LF EndFunc ;==>_DebugHeader Link to comment Share on other sites More sharing options...
Valuater Posted November 19, 2006 Share Posted November 19, 2006 maybe this could do "most" of what you are afterhttp://www.autoitscript.com/fileman/users/valuater/Ez-Track.zip8) Link to comment Share on other sites More sharing options...
TuMiM Posted November 19, 2006 Author Share Posted November 19, 2006 That's a nice prog but I don't want the data written to an ini or external text file that can be used. I wanted all the names and data to be kept in autoit so that it could not be easily transferred to another program. Link to comment Share on other sites More sharing options...
Valuater Posted November 19, 2006 Share Posted November 19, 2006 (edited) you could just use the Encrypt function built into autoit to make the external file as unreadable as the code within the autoit program thus encypt to a file and have your program decrypt to use the info... much easier for you to 1 write the script 2 change info in the file ( when people move/leave etc ) 3 no one else can use the info ( its coded ) 8) Edited November 19, 2006 by Valuater Link to comment Share on other sites More sharing options...
TuMiM Posted November 19, 2006 Author Share Posted November 19, 2006 i don't see a built in encrypt function in the help file Link to comment Share on other sites More sharing options...
Valuater Posted November 19, 2006 Share Posted November 19, 2006 (edited) Function Reference_StringEncrypt An RC4 based string encryption function. #include <String.au3>_StringEncrypt ( $i_E, $s_EncryptText, $s_EncryptPassword [, $i_EncryptLevel ] )Parameters $i_ Encrypt 1 to encrypt, 0 to decrypt. $s_EncryptText Text to encrypt/decrypt. $s_EncryptPassword Password to encrypt/decrypt with. $i_EncryptLevel Optional: Level to encrypt/decrypt. Default = 1 Return Value Success: The Encrypted/Decrypted string. Failure: Blank string and @error = 1 RemarksWARNING: This function has an extreme timespan if the encryption level or encrypted string are too large!Exampleexpandcollapse popup#include <guiconstants.au3> #include <string.au3> ; GUI and String stuff $WinMain = GuiCreate('Encryption tool', 400, 400) ; Creates window $EditText = GuiCtrlCreateEdit('',5,5,380,350) ; Creates main edit $InputPass = GuiCtrlCreateInput('',5,360,100,20, 0x21) ; Creates the password box with blured/centered input $InputLevel = GuiCtrlCreateInput(1, 110, 360, 50, 20, 0x2001) $UpDownLevel = GUICtrlSetLimit(GuiCtrlCreateUpDown($inputlevel),10,1) ; These two make the level input with the Up|Down ability $EncryptButton = GuiCtrlCreateButton('Encrypt', 170, 360, 105, 35) ; Encryption button $DecryptButton = GuiCtrlCreateButton('Decrypt', 285, 360, 105, 35) ; Decryption button GUICtrlCreateLabel('Password', 5, 385) GuiCtrlCreateLabel('Level',110,385) ; Simple text labels so you know what is what GuiSetState() ; Shows window Do $Msg = GuiGetMsg() If $msg = $EncryptButton Then GuiSetState(@SW_DISABLE,$WinMain) ; Stops you from changing anything $string = GuiCtrlRead($EditText) ; Saves the editbox for later GUICtrlSetData($EditText,'Please wait while the text is Encrypted/Decrypted.') ; Friendly message GuiCtrlSetData($EditText,_StringEncrypt(1,$string,GuiCtrlRead($InputPass),GuiCtrlRead($InputLevel))) ; Calls the encryption. Sets the data of editbox with the encrypted string ; The encryption starts with 1/0 to tell it to [/color] [color="#000000"]encrypt/decrypt ; The encryption then has the string that we saved for later from edit box ; It then reads the password box & Reads the level box GuiSetState(@SW_ENABLE,$WinMain) ; This turns the window back on EndIf If $msg = $DecryptButton Then GuiSetState(@SW_DISABLE,$WinMain) ; Stops you from changing anything $string = GuiCtrlRead($EditText) ; Saves the editbox for later GUICtrlSetData($EditText,'Please wait while the text is Encrypted/Decrypted.') ; Friendly message GuiCtrlSetData($EditText,_StringEncrypt(0,$string,GuiCtrlRead($InputPass),GuiCtrlRead($InputLevel))) ; Calls the encryption. Sets the data of editbox with the encrypted string ; The encryption starts with 1/0 to tell it to [/color][color="#000000"]encrypt/decrypt ; The encryption then has the string that we saved for later from edit box ; It then reads the password box & Reads the level box GuiSetState(@SW_ENABLE,$WinMain) ; This turns the window back on EndIf Until $msg = $GUI_EVENT_CLOSE ; Continue loop untill window is closed8) Edited November 19, 2006 by Valuater Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted November 19, 2006 Share Posted November 19, 2006 _stringencrypt i had already told u about this function in your last thread but u asked about having the data split from a variable and that is what i showed u Link to comment Share on other sites More sharing options...
TuMiM Posted November 19, 2006 Author Share Posted November 19, 2006 But does the stringencrypt a file or a string? And does the user need to have the uneencrypt password? I don't want to have passwords. I just want the data protected from being copied. That is why i went for the array with the data inside of the script instead of an external file. Link to comment Share on other sites More sharing options...
Valuater Posted November 19, 2006 Share Posted November 19, 2006 But does the stringencrypt a file or a string? And does the user need to have the uneencrypt password? I don't want to have passwords. I just want the data protected from being copied. That is why i went for the array with the data inside of the script instead of an external file.1it will encrypt a file or string2the password is built into your program... no one knows it8) Link to comment Share on other sites More sharing options...
TuMiM Posted November 19, 2006 Author Share Posted November 19, 2006 how would you use it for a file? Link to comment Share on other sites More sharing options...
Valuater Posted November 19, 2006 Share Posted November 19, 2006 (edited) _StringEncrypt( 0, "C:\test.txt", $password, 1) depending if you want to red/write the file from inside your script then... _StringEncrypt( 0, $File", $password, 1) 8) Edited November 19, 2006 by Valuater Link to comment Share on other sites More sharing options...
TuMiM Posted November 19, 2006 Author Share Posted November 19, 2006 (edited) I added the following to your postal express but it didn't do anything to the ini file. It was still readable $password=12345 _StringEncrypt( 1, $file_location, $password, 1) Edited November 19, 2006 by TuMiM Link to comment Share on other sites More sharing options...
TuMiM Posted November 22, 2006 Author Share Posted November 22, 2006 anyone know why the file won't encrypt? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now