Sending keystrokes to a windowless application (1 Viewer)

AshwinChandarana

New member
Local time
Today, 05:57
Joined
Feb 4, 2015
Messages
5
I have a windowless app running in the tray, and I wish to pass F11 key to it from a textbox's 'gotfocus' event in access.

'Sendkeys' command does not send F11 to it directly, and 'appactivate' statement is not able to address my windowless application, before 'sendkeys' command.

How can I address this windowless application in 'appactivate' statement?

or any other mean to reach F11 to the application in the tray?
 

el.alcalde

Registered User.
Local time
Yesterday, 17:27
Joined
Apr 27, 2018
Messages
14
Please search the net for some examples about the API function FindWindow

Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
 

isladogs

MVP / VIP
Local time
Today, 00:27
Joined
Jan 14, 2017
Messages
18,186
Can you please explain what the purpose of this exercise is so someone can advise you appropriately
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Yesterday, 19:27
Joined
Feb 28, 2001
Messages
27,001
Did you create this windowless app? Or is it a third-party app of some sort?

If you created it, then you need to get into it to provide an easy way to communicate with it.

If it is a third-party app, check their documentation on how to talk to it.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 08:27
Joined
May 7, 2009
Messages
19,169
You can view the ClassName of the windowless app in task manager.
Using Api to get the Handle of that class, you can use another Api to SendMessage to that window.
 

Users who are viewing this thread

Top Bottom