Results 1 to 3 of 3

Thread: First time creating a remote app. (Sending keystrokes from game controller app)

  1. #1
    PMac is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    Feb 2012
    Posts
    11
    Reputation
    65

    Question First time creating a remote app. (Sending keystrokes from game controller app)

    I'm not very advanced in .NET, but it's the one language I have any experience in (I used to program a bit in qBasic as a kid)

    What I'm trying to do is build an app that will work as a game controller that will run on my Windows 10 tablet (Non-RT), or basically any other computer/notebook running Windows.

    I'm fine with building the GUI, and fairly confident I can get the buttons to send keystrokes, but where I'm lost is how to get this app to send those keystrokes to the remote machine running the game I'd like to control.

    I'm assuming the best way to do this would be with a client server app setup, have the server running on the machine the game is on, and the client running on my tablet.

    So my question is, what's the best way for me to send a keystroke from an app on one computer (activated by pressing a button), to the currently open window on another computer?


    I've exhausted all the answers and question combinations I could type in to google, and figured someone here should be able to help me figure it out!



    Thanks in advance,

    Patrick

  2. #2
    jmcilhinney's Avatar
    jmcilhinney is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.0
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    13,798
    Reputation
    1704
    You wouldn't be sending a keystroke. You would most like send a single Char or zero or more characters in a String. The server would then convert that to the appropriate keystrokes and, presumably, call SendKeys.Send. I suppose you could actually create the argument for SendKeys.Send on your client and pass that to the server, which would then just pass it directly to a Send call.

  3. #3
    PMac is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    Feb 2012
    Posts
    11
    Reputation
    65
    Since this is my first time building a remote app, would something like this be a good start? (I've never made a client/server app before). I know this example i linked is for C#, but i was thinking it may also be usable within VB.NET

    Or am I going about this wrong? Sorry for all the "stupid" questions, but I'm very new to this, and was unable to find anything specific to my needs on Google.

    I'll be extremely grateful to anyone that can give me the right "push" to get me going

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •