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

  • SEARCH
  • Home
  • 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 8244295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:48:11+00:00 2026-06-07T21:48:11+00:00

I trying to send in my application RIGHT ALT + C . I tried

  • 0

I trying to send in my application RIGHT ALT + C.

I tried do it following:

PostMessage(hWindow, WM_KEYDOWN, (IntPtr)0x0043, (IntPtr)0x0012);
Delay(1000);
PostMessage(hWindow, WM_KEYUP, (IntPtr)0x0043, (IntPtr)0x0012);

and

PostMessage(hWindow, WM_KEYDOWN, (IntPtr)0x0043, (IntPtr)0x0001);
Delay(1000);
PostMessage(hWindow, WM_KEYUP, (IntPtr)0x0043, (IntPtr)0x0001);

but it doesn’t correctly. How should I used it?

  • 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-06-07T21:48:12+00:00Added an answer on June 7, 2026 at 9:48 pm

    Yes, it’s possible using PostMessage. I used program Spy++ (it’s inside Visual Studio or you can download it http://mdb-blog.blogspot.com/2010/11/microsoft-spy-or-spyxx-for-download.html) I runed notepad.exe and Spy++, and used Function FindWindow to handle this notepad. Then I used Spy->LogMessages, in Tab Messages I cleared all and stay checkbox Keyboard and in output I checked Raw Message Parameters.

    Then in notepad i pressed alt+1 and I noted values from Window Messages. I known now, where use WM_KEYDOWN, WM_KEYUP, WM_SYSKEYUP etc. and value lParam, wParam.

    My function:

        public void PressKeyWithAlt(uint key, uint lParamDown, uint lParamUp)
        {
            PostMessage(hWindow, WM_KEYDOWN, VK_CONTROL, 0x001D0001);
            PostMessage(hWindow, WM_KEYDOWN, VK_MENU, 0x21380001);
            PostMessage(hWindow, WM_KEYDOWN, key, lParamDown);
            Delay(1000);
            PostMessage(hWindow, WM_KEYUP, key, lParamUp);
            PostMessage(hWindow, WM_SYSKEYUP, VK_CONTROL, 0xE01D0001);
            PostMessage(hWindow, WM_KEYUP, VK_MENU, 0xC1380001);
        }
    

    and for example for alt+1

    PressKeyWithAlt(VK_1, 0x20020001, 0xE0020001);
    

    Thank you for all help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently trying to send some data from and Android application to a
I'm trying to send an email through the Facebook API. I've added the application
I'm trying to have a console application to send a XML file to a
I'm trying to use the RegisteredWindowMessage API function to send text from one application
I`m trying to send e-mail via c# and use the following code: public static
I am using the following gem in my rails application: http://github.com/fnando/post_commit I am trying
I'm trying to make an EXTJS application to send email with an attachment. So
I'm trying to adress the following issue: I have a server side .net application
I am trying to make an Application, that is posible to send SMS, and
I am trying to create a multi threaded PHP application right now. I have

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.