Find Jobs
Hire Freelancers

C++, send keystroke to background window without focusing it

$10-30 USD

Në vazhdim
Postuar over 5 years ago

$10-30 USD

Paguhet në dorëzim
I'm building a complex software. This software works as a dll inside another random third party softwares. Usually the third party software catches the VK_SPACE key from the dll's window, when the lastest has the focus. However my *.dll supports multiple windows which aren't inside the main window. It means when one of such secondary windows are focused, the third party software doesn't detect the VK_SPACE. So, I want to emulate the VK_SPACE in the main window when it's pressed on one of the secondaries ones without moving the keyboard focus. As data I only have the HWND of all the dll windows (including the main one). I tried to use PostMessage, SendMessage to the HWND of the main window without sucess. However, changing temporally the focus to the main window, using SendInput or keybd_event, and then returning the focus, DOES work. But I do not want to move the focus, right? So, your job is quite simple. You need to to the same job that keybd_event does to send the VK_SPACE to another window which is not focused. A function like this: void sendSpacebar(HWND target) { //.... do your stuff.... // .... Func(HWND, VK_SPACE, paramx, paramy); } Your job is just that function. NOTE: Using third party libraries are NOT allowed, just std, or basics like windows.h
ID e Projektit: 18197850

Rreth projektit

1 propozim
Projekt në distancë
Aktive 5 yrs ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
1 Profesionisti ofron mesatarisht $45 USD për këtë punë
Avatari i Përdoruesit
Thanks for share the project. I can provide to you a exe example before to choose me. If you approves we can disccuss the final goal.
$45 USD në 1 ditë
5,0 (3 përshtypje)
2,7
2,7

Rreth klientit

Flamuri i SPAIN
San Sebastian, Spain
5,0
15
Mënyra e pagesës u verifikua
Anëtar që nga tet 24, 2008

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.