Code: Select all
;Query position:
LB_GETCURSEL := 0x188
SendMessage %LB_GETCURSEL%, 0, 0, TMyListBox1, ahk_class TTOTAL_CMD
nPosition := ErrorLevel
;Set position:
SendMessage 0x19e, %nPosition%, 0, TMyListBox1, ahk_class TTOTAL_CMD
Very useful! Enjoy.