Jump to content

lastmember

Members
  • Posts

    13
  • Joined

  • Last visited

lastmember's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi ! Is possible to hide a Column/Row for printing?
  2. #include $file = FileOpen(@TempDir & "\test.txt", 0) $chars = FileRead($file) $array = StringRegExp($chars,"(.*)\:(.*)", 4) $iMaxLen = 0 For $i = 0 To UBound($array) - 1 $temp = $array[$i] ;~ _ArrayDisplay($temp) If StringLen($temp[1]) > $iMaxLen Then $iMaxLen = StringLen($temp[1]) Next $iMaxLen+=1 ; add the trailing space For $i = 0 To UBound($array) - 1 $temp = $array[$i] While StringLen($temp[1]) < $iMaxLen $temp[1] &= "." WEnd ConsoleWrite($temp[1] & $temp[2]) Next FileClose($file) YES IT IS OK ! merci beaucoup !
  3. thanks for promptly but I want to read from a text file and save it in another file, how to do that?
  4. : To be after the longest name [font=courier new,courier,monospace]john : 1234569 ana : 55366696 Johanson : 2536[/font]
  5. I am a beginner, you can post an example?
  6. Hello! I have a text file containing FOLLOWING john: 1234569 ana: 55366696 Johanson: 2536 and I want to open it and make it look like this with - $file = FileOpen(@TempDir & "test.txt", 0): (file will have more lines) john : 1234569 ana : 55366696 Johanson : 2536 how can I do that with AUTOIT? Thanks in advance!
  7. Hello! I want to count the items checked and do not know how I can help someone Thanks in advance! #include #include $Debug_LV = False ; Check ClassName being passed to ListView functions, set to True and use a handle to another control to see it work _Main() Func _Main() Local $hListView GUICreate("ListView Get Item Checked State", 400, 300) $hListView = GUICtrlCreateListView("", 2, 2, 394, 256) _GUICtrlListView_SetExtendedListViewStyle($hListView, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_CHECKBOXES)) $Label = GUICtrlCreateLabel("0",7,260,100,14) GUISetState() ; Add columns _GUICtrlListView_AddColumn($hListView, "Column 1", 100) ; Add items _GUICtrlListView_AddItem($hListView, "Row 1: Col 1", 0) _GUICtrlListView_AddItem($hListView, "Row 2: Col 1", 1) _GUICtrlListView_AddItem($hListView, "Row 3: Col 1", 2) ; Check item 2 _GUICtrlListView_SetItemChecked($hListView, 1) _GUICtrlListView_SetItemChecked($hListView, 0) GUICtrlSetData($label, _GUICtrlListView_GetItemChecked($hListView, -1)) ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>_Main
  8. yes it is explained in the help, thanks
  9. yes it works ... I need to document to understand what is written: $sIniFill &= "|" Thanks again for the prompt and you had patience with me!
  10. Now I have another question I have the following: #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("test", 288, 307, 202, 164) $List1 = GUICtrlCreateList("", 5, 4, 273, 227) $Button1 = GUICtrlCreateButton("test", 7, 236, 268, 33) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $Button1 read() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func read() $iniread = IniReadSection(@ScriptDir & "test.ini", "section1") If @error Then MsgBox(4096, "", "no have ini file!") Else For $i = 1 To $iniread[0][0] GUICtrlSetData($list1,$iniread[$i][1]) Next endif EndFunc in test.ini section1, we next: key1=test key2=test key3=test1 key4=test2 but I do not upload $ List1 than test test1 test2 where am I wrong to not load all 4 keys not repeat those loading than once thanks
  11. yeess!! works well thank you very much !
  12. hello There are beginner and want to know how can amount to several numbers that are in a listbox example: 2 5 3 How do I sum (10) in a label ? thanks in advance
×
×
  • Create New...