Hi, I am trying to write a windows program where i have an interface that lists options of simulated left, right and double click. i have created a new thread within the program to determine if there is static movement of cursor, if so then sends a message back to my main program and tell it to simulate whatever type of click.
The problem now is i dont really understand how to use postmessage. how do i get my main program's hwnd and put it in PostMessage ( HWND, msg, wParam, lParam)
thanks
please feel free to ask me to explain further if u dont understand this, i know i am rubbish at explaining.
ok, so what i have done now to my program is created a gobal variable HWND ehwnd this is used when creating the main window and passed into my new thread. ie my_new_thread (ehwnd);[.code] within the thread i then use [code]PostMessage (ehwnd, xxx, yyy, zzz);
yeah, actually i wanna make a program in windows app but i'm still newbie. can anyone help me? my compiler is vs 2008 express ed. i tried with the sourceforge (i forgot the web name) but it doesn't work. can anyone help me find a proper tutorial?