Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created June 28, 2022 18:34
Show Gist options
  • Save JoeGlines/d720323290400734af8df4beafcfd489 to your computer and use it in GitHub Desktop.
Save JoeGlines/d720323290400734af8df4beafcfd489 to your computer and use it in GitHub Desktop.
;*******************************************************
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY
; Right now you can get a coupon code here: https://the-Automator.com/Learn
;********************GrepWin Listview***********************************
;~ ; Get the row of first selected item in listviewi
ControlGet,Var,List,Selected,SysListView321,ahk_exe ahk_exe grepWin-1.9.1_portable.exe
ControlGet,Var,List,Count,SysListView321,ahk_exe ahk_exe grepWin-1.9.1_portable.exe
MsgBox % var
;********************Getting specific columns / rows***********************************
ControlGet, SelectedItems, List, Selected, SysListView321, ahk_exe grepWin-1.9.1_portable.exe
Loop, Parse, SelectedItems, `n ; Rows are delimited by linefeeds (`n).
{
RowNumber := A_Index
Loop, Parse, A_LoopField, %A_Tab% ; Fields (columns) in each row are delimited by tabs (A_Tab).
MsgBox Row #%RowNumber% Col #%A_Index% is %A_LoopField%.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment