|
hi.. uhmm i saw ur post in the Onscreen keyboard to be used by applications. I have a winform application and im tryin to call the onscreen keyboard but without the menu. how do u do it? I cant understant the code you posted with the -> and stuff. could u make the code clear or somehow readable? thnx
ej
|
|
|
|
|
oh its c++ lol... thats why i dont have a clue. hope u have a c# format
|
|
|
|
|
I want to send keys to remote desktop logon window, but it does not response, no characters is sent.
The application is launch at "Start->Programs->Accessories->Communications->Remote Desktop Connection", which is a Terminal Service Client. It will popup a logon window for you to input password..., the code is below
>Sleep(2000); // delay for you to SET FOCUS on the application
>keybd_event( 0x30, 0, 0, 0); // key '0'
>keybd_event( 0x30, 0, KEYEVENTF_KEYUP, 0);
Why? Thanks.
|
|
|
|
|
Is there any way to show on the keys of the Onscreen Keyboard
characters belonging to the Czech or Polish languages (I
mean those two-byte encoded letters with strange
accents on them, for example) and of course send them to the
window which has the input focus ?
My purpose is to use the PC hardware keyboard (English layout)
for "normal letters" and the Onscreen Keyboard for "strange"
(accented) ones ...
Thank you in advance for your help.
Duranti Loris.
|
|
|
|
|
Hi all,
Instead of creting the buttons if i drag and drog the buttons and make them ownerdraw on the dialog box and and try to sendthe messages to the background applications the sequence in which the keystroke generate shold be WM_KEYDOWN ->WM_CHAR->WM_KEYUP but its coming as WM_KEYDOWN->WM_KEYUP-> WM_CHAR for me for the following code can any one help me
void MyDialog::GenerateKeyStroke(UINT nVirtualKeyCode)
{
CMainWindow *pView= (CMainWindow*)GetParent();
LPARAM lParam;
lParam = MapVirtualKey(nVirtualKeyCode, 0) ;
//scan code are from 16-23 in lparam
lParam <<= 16;
//since repeat count is one
lParam++;
pView->PostMessage(WM_KEYDOWN , nVirtualKeyCode , lParam ) ;
lParam |= 0xC0000000;
Sleep(0);
pView->PostMessage(WM_KEYUP , nVirtualKeyCode , lParam ) ;
}
and I shold use only PostMessage can any one help adn if press Alt key System keyevents should generate for me what should i do for that
|
|
|
|
|
Hi all,
Instead of creting the buttons if i drag and drog the buttons and make them ownerdraw on the dialog box and and try to sendthe messages to the background applications the sequence in which the keystroke generate shold be WM_KEYDOWN ->WM_CHAR->WM_KEYUP but its coming as WM_KEYDOWN->WM_KEYUP-> WM_CHAR for me for the following code can any one help me
void MyDialog::GenerateKeyStroke(UINT nVirtualKeyCode)
{
CMainWindow *pView= (CMainWindow*)GetParent();
LPARAM lParam;
lParam = MapVirtualKey(nVirtualKeyCode, 0) ;
//scan code are from 16-23 in lparam
lParam <<= 16;
//since repeat count is one
lParam++;
pView->PostMessage(WM_KEYDOWN , nVirtualKeyCode , lParam ) ;
lParam |= 0xC0000000;
Sleep(0);
pView->PostMessage(WM_KEYUP , nVirtualKeyCode , lParam ) ;
}
and I shold use only PostMessage can any one help adn if press Alt key System keyevents should generate for me what should i do for that
|
|
|
|
|
i am trying to compile the source code in visual c++ 6.0 but it has given me four errors please help
|
|
|
|
|
If you get error's like "'argument' : conversion from 'int' to 'char', possible loss of data"
then go to the project settings and uncheck the checkbox that say 'warning as errors'.
or try to solve them
|
|
|
|
|
could anyone please teach me how do i go about in comopiling the virtual keyboard. as i tried to compile it gave 4 errors while trying to link the executable file.
thanks
|
|
|
|
|
i got the same problem..
OnscreenKeyboard.obj : error LNK2001: unresolved external symbol "public: __thiscall COnscreenKeyboardDlg::COnscreenKeyboardDlg(class CWnd *)" (??0COnscreenKeyboardDlg@@QAE@PAVCWnd@@@Z)
OnscreenKeyboard.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CSystemTray::~CSystemTray(void)" (??1CSystemTray@@UAE@XZ)
msvcrtd.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
Debug/OnscreenKeyboard.exe : fatal error LNK1120: 3 unresolved externals
|
|
|
|
|
In Visual Studio you set the following setting within the project. The compile should succeed after this.
"Use MFC in a Static Library"
|
|
|
|
|
what program did u use to compile this onscreen keyboard??
|
|
|
|
|
|
hi there, thanks for replying me. i would appreciate if u could answer another of my enquiry. regarding the onscreen keyboard.. how do u approach the allocating of memory resource like how do u link the typing of each letter to the notepad, and how does the clicking of the mouse on a particular letter link it to the correct letter that is to be shown .. and which part of the code is to create the whole keyboard.
thanks if u could help mi here
regards
|
|
|
|
|
;PI don't use code on-screen keyboard because code have debug I can't to edit code
da
|
|
|
|
|
The text appear very slowly when sending to MSN messenger text box.
n e ideas ?
|
|
|
|
|
did you get any help with this as i also have this problem, have uninstalled it messenger cleared temp file and cleared all cache.
And still i have the problem any ideas?
sunnyaaabbb@hotmail.com
|
|
|
|
|
Applying the patch from Dirk Moshage (Focus Problem and Flashing ), it works fine. However, I test on the key "Esc", then I got a error assert. Then I look up the source code, and compare with Edit control focus. It is only ESC missing in COnscreenKeyboardDlg::SendKey(KEYDEF * keydef).
Changes in OnscreenKeyboardDlg.cpp:
...<br />
case DOWN:
vk = VK_DOWN;<br />
break;<br />
case ESC:
vk = VK_ESCAPE;<br />
break;<br />
case PUP:
vk = VK_PRIOR;<br />
break;<br />
...<br />
That's all.
Although it is trivial, hope could help someone.
|
|
|
|
|
|
Yeah, I'm new to all of this, but can I change the colors, and if so, how?
Kali-ma
|
|
|
|
|
Hy everybody,
does anybody know, how can I create the AltGr Key on the Onscreen Keyboard?
AltGr is the same like Ctrl+Alt.
Thanx
|
|
|
|
|
Hi,
I've the same problem. I want to write the characters @ and # and I need de (altGr) Key. Some one have solve the problem?
thank you
Gemm
|
|
|
|
|
Hello, I've solved the focus problem. The solution is to catch the WM_MOUSEACTIVATE message and return MA_NOACTIVATE.
Changes in OnscreenKeyboardDlg.cpp:
BEGIN_MESSAGE_MAP(COnscreenKeyboardDlg, CDialog)<br />
...<br />
ON_WM_MOUSEACTIVATE()<br />
END_MESSAGE_MAP()
int COnscreenKeyboardDlg::OnMouseActivate( CWnd* pDesktopWnd, UINT nHitTest, UINT message )<br />
{<br />
return MA_NOACTIVATE;<br />
}
Changes in OnscreenKeyboardDlg.h:
...<br />
afx_msg int OnMouseActivate( CWnd* pDesktopWnd, UINT nHitTest, UINT message );<br />
...<br />
That's all.
|
|
|
|
|
You are a great guy
i wanna thanks to you
|
|
|
|
|
Hi,Im trying to do something similar.I want to design an onscreen keyboard based on a mobile phone keyboard.The first thing I want to over come is when i click a button relating to a letter how do i get it to appear in the editor i have open at the same time?Im programming it in Java and have no knowledge of C++.
|
|
|
|