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 8735643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:06:34+00:00 2026-06-13T10:06:34+00:00

A possible duplicate: Directly sending keystrokes to another process via hooking I would like

  • 0

A possible duplicate: Directly sending keystrokes to another process via hooking

I would like to apologize if the tone in my question is a bit bad. I am stuck right know.
Okay, I am working to make a program that would transfer data from a WPF application to both a VB 6 application and a web page. Depending on the configuration it will call a procedure to post data. I already finished the VB 6 side but having a big issue with the web page since:

  • The procedure MUST work on all known browsers.
  • I am not allowed to send the data as a web request.
  • I don’t have control for the web site to be used.
  • I also am not allowed to use any third party software

I already tried the following:

  • Sendmessage with keyup and keydown for tab and character keys
  • Sendmessage with postmessage for the string to be sent
  • Postmessage version of the above
  • MSHTML for sending data as HTMLdocument
  • SendKeys (though not yet explored it heavily)

Here is the code for the sendmessage (closest to all of my tries)

   IntPtr window = User32_Methods.FindWindow(null, "Test Site");
        if(window!=IntPtr.Zero)
        {
            MessageBox.Show("asdasd");
            User32_Methods.SendMessage(window, Send_Message_Constants.WM_LBUTTONDOWN, IntPtr.Zero, IntPtr.Zero);
            User32_Methods.SendMessage(window, Send_Message_Constants.WM_LBUTTONUP, IntPtr.Zero, IntPtr.Zero);
            for (int count = 0; count < 15;count++)
            {
                User32_Methods.PostMessage(window, Send_Message_Constants.WM_KEYDOWN, (IntPtr) Send_Message_Constants.VK_TAB, IntPtr.Zero);
                User32_Methods.PostMessage(window, Send_Message_Constants.WM_KEYUP, (IntPtr)Send_Message_Constants.VK_TAB, IntPtr.Zero);
                foreach(char a in "adasdasdasd")
                {
                    User32_Methods.PostMessage(window, Send_Message_Constants.WM_KEYDOWN, (IntPtr)Send_Message_Constants.VK_A, IntPtr.Zero);
                    User32_Methods.PostMessage(window, Send_Message_Constants.WM_KEYUP, (IntPtr)Send_Message_Constants.VK_A, IntPtr.Zero);
                }
            }
        }

I would like to ask you guys at stack since you solved most of the questions that I am having an issue here.

  • 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-13T10:06:35+00:00Added an answer on June 13, 2026 at 10:06 am

    I know this might not be the way to go, however I am seeing that you are gonna try to use send keys, so maybe you can add some .js fo you own, with your logic and just execute it. Since send keys will be like a way to input the data to the forms/click a button/ or something else, the js routine might help you….

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

Sidebar

Related Questions

Possible Duplicate: How can I get a reference to a node directly after it
Possible Duplicate: declare property as object? in java you can create an object directly
Possible Duplicate: Any way to access array directly after method call? In C# and
Possible Duplicate: WHY an Anonymous class in Java can't implement multiple interfaces directly? Simply
Possible Duplicate: JavaScript Pass Variables Through Reference How can you do something like this
Possible Duplicate: Calling closure assigned to object property directly Why this is not possible
Possible Duplicate: Attaching Eventhandler with New Handler vs Directly assigning it I noticed there
Possible Duplicate: How to rewrite URL without refresh, like GitHub.com Hi all, I have
Possible Duplicate: Interpreting return value of function directly as an array Is there a
Possible Duplicate: Calling closure assigned to object property directly If I have a class

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.