Welcome! Log In Create A New Profile

Advanced

[WD] Change active application?

Posted by infos 
[WD] Change active application?
May 18, 2022 10:47AM
Hi

One non-classic question
When I have two applications open with two different connections, I want to change the application of my choice at the click of a button.
Do you have any idea how to do this without changing the connection?

The Alt + Tab option is not suitable for me, I want to change the display of the application in a controlled way

[infosonline.net]



Edited 1 time(s). Last edit at 05/18/2022 10:49AM by infos.
Re: [WD] Change active application?
May 20, 2022 01:40PM
Change the focus of the application?

[infosonline.net]
pao
Re: [WD] Change active application?
May 20, 2022 06:01PM
did you try with SysSetFocus?
[doc.windev.com]

Regards

Paulo Oliveira
Re: [WD] Change active application?
May 20, 2022 06:39PM
Hello Paulo

I tried this code but didn't get the result I was looking for.
I will try a few more combinations again

[infosonline.net]
Re: [WD] Change active application?
May 20, 2022 10:07PM
Whatever I type here ResHandle gives me back Null.
What do I have to type in SysWinHandle ("????????")?

ResHandle is system int = SysWinHandle("Microsoft Word - Ventes.DOC")
ResFocus is system int = SysSetFocus(ResHandle)

[infosonline.net]
Re: [WD] Change active application?
May 21, 2022 02:04PM
Hello,

You will have to enter the Title of the Main Windows of your application.

--
Yogi Yang
Re: [WD] Change active application?
May 21, 2022 03:14PM
THANK YOU YOGI

Yes, that's it
This works great, here we may have helped someone else

Thanks again to Paolo

[infosonline.net]
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: