Hey guys... This is a new thread for programming in C/ C++ Pls post ur questions and examples here........






















Last edited:











machan podi podi softweres hadanna puluwan softwere ekak ehema nedda
game ehema devolop karanna puluwan ekak
Ubama podi seach parak dala balapankomachan mewa kohomada use karanne kiyala kiyanawada banz
mama asai me gena igena ganna podi podi softweres create karanna balanna
danna kenek innawa nam kiyala denna
#include <windows.h>
const char* message = "hello people this is a one stupid message";
HWND hnotepad=0,hedit=0;
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,PSTR szCmdLine, int iCmdShow)
{
ShellExecute(NULL,"open","notepad.exe",NULL,NULL,SW_SHOW);
Sleep(100); // As far as I know this is because the ShellExecute() is slow &
// we have to wait some time for the notepad to be fully created by the OS
hnotepad = FindWindow("Notepad",NULL); // getting the handle of the notepad
if(hnotepad)
{
hedit = FindWindowEx(hnotepad,0,"edit",NULL); // getting handle of the textbox
}
if(hedit)
{
while(*message !=NULL)
{
SendMessage(hedit,WM_CHAR,*message,(int)*message); // sending the WM_CHAR message
Sleep(200); // Increase this value and the typing speed will be decreases
message++;
}
}
return 0;
}






. Eth eka kohomada karanne kiyana eka oyagollo kiyanna. mokada mama me forum ekata aluth.