mike2003 Posted June 17, 2021 Posted June 17, 2021 How can you select the desired line in the script? By default, nothing is highlighted after creation, but I need at least the first line to be.
Nine Posted June 17, 2021 Posted June 17, 2021 (edited) Look help file for : Quote _GUICtrlListBox_SetSel ( $hWnd [, $iIndex = -1 [, $iSelect = -1]] ) Ex : _GUICtrlListBox_SetSel ($hWnd, 0) Edited June 17, 2021 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Solution Luke94 Posted June 17, 2021 Solution Posted June 17, 2021 (edited) _GUICtrlListBox_SetSel doesn't work for me but _GUICtrlListBox_SetCurSel does. _GUICtrlListBox_SetCurSel($List1, 0) ... To select the first item. Make sure you use it after the list has been populated. Edited June 17, 2021 by Luke94
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