FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to read a string from another app
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
How to read a string from another app
Posted: Thu Sep 18, 2025 12:36 PM

Hello everyone,

I have installed a program here that allows me to make phone calls.

There is one thing about this program that amazes me, and I would like to be able to do the same thing in one of my own programs.

For example, if I set F8 as the hotkey to dial a selected number,

then I go to any other program and select a phone number and press F8, the call starts.

I was wondering how something like this could work.

And above all, if there is a code in this group from which I could then develop something.

Currently, with a read poll using a timer of 1 seconds in the Clipboard, if I see that there is a phone number in the clipboard,

I start the call.

But it would be better with the F8 key.

Thank you.

Translated with DeepL.com (free version)

Marco Boschi
info@marcoboschi.it
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: How to read a string from another app
Posted: Thu Sep 18, 2025 01:38 PM

Did I understand correctly that the F8 hotkey becomes global and is triggered regardless of which program is currently active?

Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: How to read a string from another app
Posted: Thu Sep 18, 2025 01:56 PM
Yes,
notepad, outlook, excel david infocenter and also cmd prompt :!:
Marco Boschi
info@marcoboschi.it
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to read a string from another app
Posted: Thu Sep 18, 2025 04:17 PM

Dear Marco,

Please review FWH\source\winapi\help.c and you will see how we trap F1

I guess we can use it for other keys

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: How to read a string from another app
Posted: Thu Sep 18, 2025 04:19 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 AM
Re: How to read a string from another app
Posted: Sun Sep 21, 2025 07:01 AM

Many thanks Antonio,

 I will take a look next days.

The important feature (wich I fine very interestinf) is that the function can intercept from any other apps runing on the same pc a string.

in this case a phone number, but something else could be interesting, for instance a reference to a My Document that a customer sends to me, and I can open this document directly with my app.

Marco Boschi
info@marcoboschi.it

Continue the discussion