AutoHotkey messages for query and set position in TC

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

AutoHotkey messages for query and set position in TC

Post by *SanskritFritz »

In another thread I had to find out the messages to send to TC, which queries and sets the cursor position in TC:

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
For finding out which one is the active panel, see in the original script in the thread above.
Very useful! Enjoy.
I switched to Linux, bye and thanks for all the fish!
Post Reply