sendkeys to another application in background (1 Viewer)

eshai

Registered User.
Local time
Today, 21:00
Joined
Jul 14, 2015
Messages
193
hi
my db have to take a snapshot with windows 10 camera app
the hotkey for that is "space"
my problem that i don't want to bring the camera app to foreground
the camera app is running in the background in full screen and access have a main form in maximize

Code:
sendkeys " "
does not work
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 02:00
Joined
May 7, 2009
Messages
19,242
you will be needing an API call to Setfocus on the camera app windows before you can use the Sendkeys.
 

eshai

Registered User.
Local time
Today, 21:00
Joined
Jul 14, 2015
Messages
193
you will be needing an API call to Setfocus on the camera app windows before you can use the Sendkeys.

that well bring the camera app to foreground ammm not solved
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 02:00
Joined
May 7, 2009
Messages
19,242
it may have the Focus , but doesn't mean it will be As Top window?
something like grab the camera window handle, use Sendmessage to invoke it.
 

Users who are viewing this thread

Top Bottom