FINDWND 59650

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
User avatar
jimspoon
Bronze Member
Bronze Member
Posts: 151
Joined: 2002 Aug 22, 00:02

FINDWND 59650

Post by jimspoon »

It appears I succeed in finding the left and right pane tab bars, and cycle between them, with the following:

Code: Select all

FINDCLASS WTL_DNTabCtrl
MESSAGE $0
# hw2094A class=WTL_DNTabCtrl, ID=59650
FINDCLASS WTL_DNTabCtrl
MESSAGE $0
# hw91250 class=WTL_DNTabCtrl, ID=59651
FINDCLASS WTL_DNTabCtrl
MESSAGE $0
# hw2094A class=WTL_DNTabCtrl, ID=59650
FINDCLASS WTL_DNTabCtrl
MESSAGE $0
# hw91250 class=WTL_DNTabCtrl, ID=59651
I noticed that the ID numbers remain the same even if I exit and restart xplorer2. So I tried the following:

Code: Select all

FINDWND 59650
MESSAGE $0
FINDWND 59651
MESSAGE $0
FINDWND 59650
MESSAGE $0
FINDWND 59651
MESSAGE $0
But FINDWND did not accept that ID number as a parameter:

Code: Select all

Macro stopped execution with error 3
Line: 1
Last argument: 59650
I thought this might work because the Macros support page says about FINDWND:
Find a window by name on it or next to it (if labelled). Searching for part of the name is ok if you are sure that it will uniquely match the window. Also finds by window numeric identifier.
Maybe this refers to the handle number and not the "ID" number?
User avatar
nikos
Site Admin
Site Admin
Posts: 15794
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: FINDWND 59650

Post by nikos »

finding windows by ID number looks like it only works for controls in dialog boxes, sorry!
User avatar
jimspoon
Bronze Member
Bronze Member
Posts: 151
Joined: 2002 Aug 22, 00:02

Re: FINDWND 59650

Post by jimspoon »

Good to know, thanks!
Post Reply