Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
Ad icon
GOOGLE AI PRO - 18 Month - Rs.500.00
Sanathbh
Updated:
A moment ago
📸 SIGMA 85mm F1.4 DG HSM | Art — Nikon Mount
romeshnonis
Updated:
Yesterday at 3:56 PM
Ad icon
Singapore V2Ray VPN for Tunneling
hu KANNA
Updated:
Monday at 9:03 PM
Plan your Crypto & Forex entries before you take the trade
romeshnonis
Updated:
Monday at 3:20 AM
RHCSA, RHCE, AWS, Docker, Kubernetes Training
Sanjeewani95
Updated:
Sep 8, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
Programming in C/C++
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="Enigma_1" data-source="post: 7848549" data-attributes="member: 78173"><p>menna simple code ekak. Win32 Api use wena. meka simple messenger program ekak. meka run karama notepad eka open wela automatically message ekak type wenwa</p><p></p><p>[CODE]</p><p>#include <windows.h></p><p>const char* message = "hello people this is a one stupid message";</p><p></p><p>HWND hnotepad=0,hedit=0;</p><p>int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,PSTR szCmdLine, int iCmdShow)</p><p>{</p><p> </p><p> ShellExecute(NULL,"open","notepad.exe",NULL,NULL,SW_SHOW);</p><p> Sleep(100); // As far as I know this is because the ShellExecute() is slow &</p><p> // we have to wait some time for the notepad to be fully created by the OS</p><p> hnotepad = FindWindow("Notepad",NULL); // getting the handle of the notepad</p><p> if(hnotepad)</p><p> {</p><p> hedit = FindWindowEx(hnotepad,0,"edit",NULL); // getting handle of the textbox </p><p> }</p><p></p><p> if(hedit)</p><p> {</p><p> while(*message !=NULL)</p><p> {</p><p> SendMessage(hedit,WM_CHAR,*message,(int)*message); // sending the WM_CHAR message </p><p> Sleep(200); // Increase this value and the typing speed will be decreases</p><p> message++;</p><p> }</p><p> }</p><p></p><p> return 0;</p><p>}</p><p>[/CODE]<img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /><img src="/styles/default/xenforo/smilies/default/rofl.gif" class="smilie" loading="lazy" alt=":rofl:" title="ROFL :rofl:" data-shortname=":rofl:" /></p></blockquote><p></p>
[QUOTE="Enigma_1, post: 7848549, member: 78173"] menna simple code ekak. Win32 Api use wena. meka simple messenger program ekak. meka run karama notepad eka open wela automatically message ekak type wenwa [CODE] #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; } [/CODE]:rofl::rofl::rofl::rofl::rofl::rofl: [/QUOTE]
Insert quotes…
Verification
Hath warak paha keeyada? (hatha wadikireema paha)
Post reply
Top
Bottom