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
Colombo
Dahua POE Switch 8 Ports (DH-PFS3010-8ET-65)
hashaz2012
Updated:
Today at 11:56 AM
Ad icon
Singapore V2Ray VPN for Tunneling
hu KANNA
Updated:
Friday at 10:01 AM
Dating Website & Online Chat Room
hotvideo
Updated:
Thursday at 9:25 PM
DJI Mini 4 Pro Drone Combo Plus
Hawaka
Updated:
Thursday at 12:21 PM
Ad icon
USA Linux OpenVZ VPS අඩු මිලකට
Nadun26
Updated:
Wednesday at 6:46 PM
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
Hathara warak wissa keeyada? (Hathara wadi karanna 20)
Post reply
Top
Bottom