Give a Focus to a window of other program

Can you use PtForwardWindowTaskEvent(): forward a window event, given a
process ID ?
here the event is Ph_WM_FOCUS.

or

Let your A’s display screen in console 0 and your B’s in console 1,
then
switch them using PtConsoleSwitch( Console number ).


Regards


WeiBing Tong

Aquila Mining Systems Ltd.
1450 City Councillors, Suite 330
Montreal, QC
Canada H3A 2E6
Tel: (514) 874-9917 ext 239
Fax: (514) 874-4005
Email: wbtong@aquilamsl.com

Hi WeiBing,

I have spoken to the developer and you could use

PtForwardWindowEvent() has the advantage that it can be called from an
app that doesn’t own the window – the owner of the window doesn’t need
to cooperate or even realize why it’s getting focus. But the other app
still needs to know the window’s rid from somewhere, and he’ll need to
have either some communication mechanism or some code to traverse the
region hierarchy and find the right rid.

The same would go for PtForwareWindowTaskEvent but again you would need
to find the process id for that window.

Hope this helps
Regards
Brenda

WeiBing Tong <wbtong@aquilamsl.com> wrote:

Can you use PtForwardWindowTaskEvent(): forward a window event, given a
process ID ?
here the event is Ph_WM_FOCUS.

or

Let your A’s display screen in console 0 and your B’s in console 1,
then
switch them using PtConsoleSwitch( Console number ).



Regards


WeiBing Tong

Aquila Mining Systems Ltd.
1450 City Councillors, Suite 330
Montreal, QC
Canada H3A 2E6
Tel: (514) 874-9917 ext 239
Fax: (514) 874-4005
Email: > wbtong@aquilamsl.com