Al salamo Aleekom And hi.... Thank you for reading my topic ------------------------------------------------ HOW to call windows as a keyboard or mouse? i mean i need to do a simple program simulate the option of keyboard's keys and also mouse's options..... can i!
Would you mind explaining a bit more. Are you planning to create something like Windows OnScreen Keyboard.
Hi --- I do not understand "Windows OnScreen Keyboard". i want to do a program to do like these option Alt+f2 , Ctrl+r , Enter , Insert , Num Lock , Esc, Tab, (the start button) etc.... i need to call windows service to do these like what keyboard do with it and also mouse: right click, middle, the movement , etc.... if you can put me on the way, I appreciate that
Maybe windows hooks is what you want to use http://msdn.microsoft.com/en-us/library/ms632589(VS.85).aspx
You can send messages to applications with SendMessage, and WM_CHAR for characters and other keystrokes. WM_KEYUP and WM_KEYDOWN might also be useful. You can also send mouse messages; have a look through all the messages that start with WM_ for inspiration. Don't know why you think you need to send a Start button message though. Sounds like you are up to no good, or have a badly designed application. The start menu is there for the user's benefit, not yours. Besides, how do you know how the user has their start menu configured? If you want the Start menu so you can find Notepad for example, just start notepad.exe via a function in the WinExec family.