How to read a string from another app

Post Reply
User avatar
MarcoBoschi
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

How to read a string from another app

Post by MarcoBoschi »

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
[email protected]
Natter
Posts: 1402
Joined: Mon May 14, 2007 9:49 am

Re: How to read a string from another app

Post by Natter »

Did I understand correctly that the F8 hotkey becomes global and is triggered regardless of which program is currently active?
User avatar
MarcoBoschi
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

Re: How to read a string from another app

Post by MarcoBoschi »

Yes,
notepad, outlook, excel david infocenter and also cmd prompt :!:
Marco Boschi
[email protected]
User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How to read a string from another app

Post by Antonio Linares »

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
User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How to read a string from another app

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
MarcoBoschi
Posts: 1091
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy
Contact:

Re: How to read a string from another app

Post by MarcoBoschi »

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
[email protected]
Post Reply