   Question about manipulating input.
  I am a noob to windows programming. I was just wondering if its possible to change input around. for example if i press the F key could i make my program send a mousemove? leme show ya wat i got so far.#undef UNICODE#include <windows.h>const char appname[] = "cory";bool done = false;LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam){switch(iMsg){case WM_DESTROY:PostQuitMessage(0);done = true;break;case WM_CHAR:switch(LOWORD(wParam)){   case 'f':SendMessage(hwnd,WM_MOUSEMOVE,NULL,HIWORD(23)LOWORD(33));break;}break;}return DefWindowProc(hwnd,iMsg,wParam,lParam);}int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hpInstance, PSTR cmdLine, int iCmd){WNDCLASS wc;wc.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);wc.cbClsExtra = NULL;wc.cbWndExtra = NULL;wc.hCursor = LoadCursor(NULL,IDC_ARROW);wc.hIcon = LoadIcon(NULL,IDI_APPLICATION);wc.hInstance = hInstance;wc.lpfnWndProc = WndProc;wc.lpszClassName = appname;wc.lpszMenuName = NULL;wc.style = CS_OWNDC;RegisterClass(&wc);HWND hwnd = CreateWindow(appname,"window",WS_OVERLAPPEDWINDOW,CW_USEDEFAULT,   CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,   NULL,   NULL,hInstance,NULL);UpdateWindow(hwnd);ShowWindow(hwnd,iCmd);MSG msg;while(!done){if(GetMessage(&msg,NULL,0,0)){TranslateMessage(&msg);DispatchMessage(&msg);}}return 0;}well it compiles it just doesnt do what i want when the f key is pressed :'(thx for any help   
  Sending the message does not mean that the mouse has moved!Add the following lines to your code and you will see that pressing the key ‘f’ will make your window thinking that the mouse has moved although  there is no real movement. case WM_MOUSEMOVE:char s[128];sprintf(s,"%d , %d",lParam>>16,lParam&0xffff);SetWindowText(hwnd,s);break;But you can use the SetCursorPos(int x,int y) function to moves the cursor to the specified screen coordinates.[Edited by - Kambiz on June 20, 2006 10:13:45 AM];  how about manipulating keypresses example:if user presses the q key i want it to type ctrl-alt-delete.is this possible?thx,   ;  maybe a better example is if i make a program to assist in word documents and whenever you press for example the c key it types cory in the document. is this possihble?thx   ;  Check out the "SendInput" function in MSDN.  You can simulate reasonably low-level mouse or keyboard events.   