Find Jobs
Hire Freelancers

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

$10-30 USD

진행 중
게시됨 5년 이상 전

$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년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
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
결제 수단 확인
10월 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)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.