Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7533733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:48:35+00:00 2026-05-30T05:48:35+00:00

I have the code; HWND MShwnd = FindWindowA(MapleStoryClass, NULL); PostMessage(MShwnd, WM_KEYDOWN, 0x09, MapVirtualKeyA(0x09, 0)

  • 0

I have the code;

HWND MShwnd = FindWindowA("MapleStoryClass", NULL);
        PostMessage(MShwnd, WM_KEYDOWN, 0x09, MapVirtualKeyA(0x09, 0) << 16);

which works just fine. Before hand, I copied to the clipboard a text.

What I want to know is how can I use postmessage and paste the text.

I searched everywhere and do not understand.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:48:37+00:00Added an answer on May 30, 2026 at 5:48 am

    This is a C# code convert it or make a c# dll with my code:
    (You need to add reference Microsoft.VisualBasic)

    public string GetClipboardText()
    {
        Microsoft.VisualBasic.Devices.Computer c = new Microsoft.VisualBasic.Devices.Computer();
        return c.Clipboard.GetText();
    }
    
    public void SetClipboardText(string stext)
    {
        Microsoft.VisualBasic.Devices.Computer c = new Microsoft.VisualBasic.Devices.Computer();
        c.Clipboard.SetText(stext);
    }
    

    Update C++ code :

    System::String^ GetClipboardText()
    {
        Microsoft::VisualBasic::Devices::Computer^ c = gcnew Microsoft::VisualBasic::Devices::Computer();
        return c->Clipboard->GetText();
    }
    
    void SetClipboardText(System::String^ stext)
    {
        Microsoft::VisualBasic::Devices::Computer^ c = gcnew Microsoft::VisualBasic::Devices::Computer();
        c->Clipboard->SetText(stext);
    }
    

    Update 2

    I suppose that you need native code, so you didn’t use my code up there that didn’t require a handle, plus if you acheive HWND MShwnd = FindWindowA("MapleStoryClass", NULL); so you have a handle… Any way i suggest one last method is the following:

    keybd_event(0x11, 0, 0, 0); // press ctrl
    keybd_event(0x56, 0, 0, 0); // press v
    keybd_event(0x56, 0, 2, 0); // release v
    keybd_event(0x11, 0, 2, 0); // release ctrl
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have code that looks like the following, which works fine for displaying the
I have the following code which works fine in notepad but not in WORD!!
I have this huge VB project which i just got from some one. i
I have a simple MFC program which displays the progressbar..I used the below code
I have these two lines in my code: TCHAR String[400] = {0}; SendMessageW(hwnd, WM_GETTEXT,sizeof(String),
I have the current code: Public Declare Function FindWindow Lib user32.dll Alias FindWindowA (ByVal
I'm trying to use opengl in C#. I have following code which fails with
I am in vb6, behing a button i have put this code: hwnd is
I have got a crash at calling function Clearrendertargetview(). Below is the code: HWND
This is the code I have: HWND WebformCreate(HWND hParent, UINT id) { return CreateWindowEx(0,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.