Sending Keys menu

User Tag List

Thread: Sending Keys

Results 1 to 6 of 6
  1. #1
    EmiloZ's Avatar Flying Piggy Back
    CoreCoins Purchaser
    Reputation
    538
    Join Date
    Jun 2007
    Posts
    1,393
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sending Keys

    Hello, I need help sending the text from TextBox1 into another programs, how i does it?

    - EmiloZ
    Why fill up a signature?

    Sending Keys
  2. #2
    Viter's Avatar Elite User
    Reputation
    410
    Join Date
    Aug 2007
    Posts
    2,153
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I guess you have to save it in a text file?
    Then make the other program open the txt file?



  3. #3
    EmiloZ's Avatar Flying Piggy Back
    CoreCoins Purchaser
    Reputation
    538
    Join Date
    Jun 2007
    Posts
    1,393
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I mean like send the text from textbox1.text into wow chat
    Why fill up a signature?

  4. #4
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The simplest way is SendKeys, but the WoW window would have to be active.

    I suggest you look @ http://www.mmowned.com/forums/vb/170...ys-window.html - Just 1 post below you to send keys efficiently. Look specifically at Apoc's posts.


  5. #5
    OMGPanic!'s Avatar Member
    Reputation
    8
    Join Date
    Oct 2008
    Posts
    71
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Asuming your on vb here is some code i dug up, youll want to substitute ypur own data in though obviously, have a mess with it see if you can get it working, thats how i learnt c++ and java.

    Code:
    ' API declares
    Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
    Private Declare Function SetForegroundWindow Lib "user32" Alias "SetForegroundWindow" (ByVal hwnd As Integer) As Integer
    
    ' send keys to selected app
    'reusable sendkeys sub
    
    Sub SendKeysToApplication(ByVal appTitle As String, ByVal keys As String)
    ' Find the other application.
    Dim hWnd As Integer = FindWindow(Nothing, appTitle)
    ' Exit if not found.
    If hWnd <= 0 Then
    MessageBox.Show("Application not found", "Error", _
    MessageBoxButtons.OK, MessageBoxIcon.Error)
    Exit Sub
    End If
    ' Make it the active application.
    SetForegroundWindow(hWnd)
    ' Send the keys and wait.
    SendKeys.SendWait(keys)
    End Sub
    
    SendKeysToApplication("Word" , "{alt} {f4}")

  6. #6
    EmiloZ's Avatar Flying Piggy Back
    CoreCoins Purchaser
    Reputation
    538
    Join Date
    Jun 2007
    Posts
    1,393
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks ! <3 +Rep
    Why fill up a signature?

Similar Threads

  1. c# Send key to Gw2 to move characters
    By Ancitique in forum Guild Wars 2
    Replies: 2
    Last Post: 12-28-2018, 01:58 AM
  2. Sending Keys in C# to GW2
    By RazorDreamz in forum GW2 Bots and Programs
    Replies: 8
    Last Post: 09-09-2012, 04:47 PM
  3. Send keys to Aion in C#
    By debos in forum Programming
    Replies: 2
    Last Post: 11-19-2009, 09:56 AM
  4. [Question] Send Keys to Window
    By TuFF in forum Programming
    Replies: 4
    Last Post: 10-09-2008, 05:55 PM
  5. Freebie method for sending keys to multiple WoW windows
    By tomit12 in forum World of Warcraft Guides
    Replies: 6
    Last Post: 03-03-2008, 10:49 AM
All times are GMT -5. The time now is 02:56 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search