Find Jobs
Hire Freelancers

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

$10-30 USD

В роботі
Опублікований over 5 years ago

$10-30 USD

Оплачується при отриманні
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 проекту: 18197850

Про проект

1 пропозиця
Дистанційний проект
Активність 5 yrs ago

Хочете заробити?

Переваги подання заявок на Freelancer

Вкажіть свій бюджет та терміни
Отримайте гроші за свою роботу
Опишіть свою пропозицію
Реєстрація та подання заявок у проекти є безкоштовними
1 фрілансер готовий виконати цю роботу за $45 USD
Аватарка користувача
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 за 1 день
5,0 (3 відгуки(-ів))
2,7
2,7

Про клієнта

Прапор SPAIN
San Sebastian, Spain
5,0
15
Спосіб оплати верифіковано
На сайті з жовт. 24, 2008

Верифікація клієнта

Дякуємо! Ми надіслали на вашу електронну пошту посилання для отримання безкоштовного кредиту.
Під час надсилання електронного листа сталася помилка. Будь ласка, спробуйте ще раз.
Зареєстрованих користувачів Загальна кількість опублікованих робіт
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Завантажуємо для перегляду
Дозвіл на визначення геолокації надано.
Ваш сеанс входу закінчився, і сеанс було закрито. Будь ласка, увійдіть знову.