Send key sequences to active window from Delphi 7 app
$30-100 USD
已完成
已发布超过 19 年前
$30-100 USD
货到付款
Provide a way to send the following key sequences to the active window: [Ctrl] 0 [Ctrl] + [Ctrl] - To be perfectly clear, I need the sequence where the CONTROL key is held down, the zero key is pressed, and then CONTROL is released. Then same for ctrl+plus and ctrl+minus. Prerequisite: The active window would be an application other than your program, and it would have been made active with code like this: procedure MakeWindowActive(whandle: hWnd); begin if IsIconic(whandle) then ShowWindow(whandle,SW_RESTORE) else BringWindowToTop(whandle); end; Your solution could have a radio group with 3 choices corresponding to the 3 key sequences, or any other type of interface which lets the user select the key sequence and transmit it. You may submit an EXE without source to prove that you have a complete solution. Unless you have another program handy, I recommend that you test your solution with Firefox ([login to view URL]) as the active window. That way you should see something occur when your keys are sent through (font size of web page should change). You can find Firefox's window handle like this: var hWnd: THandle; begin hWnd := FindWindow('MozillaWindowClass', nil); If you have questions, please ask before bidding.
## Deliverables
Full source in Borland Delphi 7.
## Platform
Win XP Pro, Win 2000, Win 2003