WM_USER+50 (wparam=1000) NOT working

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Pawel
Junior Member
Junior Member
Posts: 82
Joined: 2018-12-18, 11:54 UTC
Location: Poland
Contact:

WM_USER+50 (wparam=1000) NOT working

Post by *Pawel »

Hi,
My name is Pawel.
Total Commander 9.0 beta 1 added support for many WM_USER+50 messages.
I am using the latest build 9.21a and it seems that the most important does not work :(

TC author wrote:
08.06.16 Added: Send WM_USER+50 with wparam set to 1000 to get active panel: 1=left, 2=right (32/64)

I am testing this and I always get 2 (right Panel active) as a result of simple SendMessage() call (delphi pseudo-code).

Code: Select all

Result := SendMessage(TC_HANDLE, WM_USER + 50, 1000, 0);
ShowMessage('Result: ' + Inttostr(Result));
What am I doing wrong? Is this work for you?

Ps: I am trying to get selected files from active TC Panel.
-Pawel
User avatar
Ovg
Power Member
Power Member
Posts: 756
Joined: 2014-01-06, 16:26 UTC

Re: WM_USER+50 (wparam=1000) NOT working

Post by *Ovg »

For me working fine (AHK scripts)

Code: Select all

SendMessage, 0x432, 1000, 0,, ahk_class TTOTAL_CMD    ; Get the active Panel: 1 - Left, 2- Right
ActivePanel := ErrorLevel
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 11.01 x64, Windows 7 SP1 x64
Pawel
Junior Member
Junior Member
Posts: 82
Joined: 2018-12-18, 11:54 UTC
Location: Poland
Contact:

Re: WM_USER+50 (wparam=1000) NOT working

Post by *Pawel »

Ovg wrote: 2018-12-18, 18:40 UTC For me working fine (AHK scripts)
Thank you for confirmation. I double checked my code and I found I made a mistake!
(I sent cm_FocusRight before checking Left or Right Panel - it was always Right! :P)

Code is working fine. C. Ghisler made it great! :)
This WM_USER + X messages are very helpful.

Ps: This topic can be closed (or even better removed).

-Pawel
Post Reply