SHARE
TWEET

Untitled

a guest Dec 6th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5. Gui,Add,ListView,w300 h400 x305 y0 vListView Checked hwndHLV , File Name|type|hoho|test
  6. LV_Insert(1,"+check","col1 text")
  7. LV_Insert(2,"+check","row2 col1 text")
  8. LV_Insert(3,"+check","row3 col1 text")
  9. LV_ModifyCol()
  10. Gui,Show
  11. global array := []
  12.  
  13.  
  14.  
  15.  
  16. i := 1
  17. RowNumber := 0
  18.  
  19.  
  20.     RowNumber := LV_GetNext(RowNumber,"C")  ; Resume the search at the row after that found by the previous iteration.
  21.  
  22.     LV_GetText(Text1, RowNumber,1)
  23.     LV_GetText(Text2, RowNumber,2)
  24.     LV_GetText(Text3, RowNumber,3)
  25.     LV_GetText(Text4, RowNumber,4)
  26.     RowNumber := 1
  27.     loop,3
  28.     {
  29.         RowNumber := LV_GetNext(RowNumber,"C")
  30.         LV_GetText(col__nr1,RowNumber,1)
  31.         array[1,1] := col__nr1
  32.         i++
  33.     }
  34.  
  35. ;}
  36.  
  37. for index in array
  38.     msgbox % array[index][1] " " array[index][2] " " array[index][3] " " array[index][4] "`n"
  39.  
  40.  
  41. return
  42.  
  43. GuiClose:
  44. ExitApp
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top