Results 1 to 2 of 2
  1. #1
    vibrat0r's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Posts
    61
    Reputation
    10
    Thanks
    0
    My Mood
    Bitchy

    How To Snedkeys To another program

    i am wondering how to sendkeys into another program excpte making sendkeys to every app i open??

    IN Vb8 btw

  2. #2
    Zoom's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Your going on my 24/7 DDoS hit list.
    Posts
    8,552
    Reputation
    127
    Thanks
    5,970
    My Mood
    Happy
    Maybe something like this.

    [php]
    Private Declare Function GetForegroundWindow Lib "user32" () As Int32
    Private Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Int32, ByVal IpString As String, ByVal cch As Int32) As Int32
    Private Function GetActiveWindowTitle() As String
    Dim Str As String = New String(Chr(0), 100) GetWindowText(GetForegroundWindow, Str, 100) Str = Str.Substring(0, InStr(Str, Chr(0)) - 1)
    Return Str
    End Function
    [/php]
    And add this to a timer:
    Code:
    textbox1.text = GetActiveWindowTitle()
    If textbox1.text = "Title or your program etc." then 
    sendkeys.send(.....)
    
    End if
    -Rest in peace leechers-

    Your PM box is 100% full.

Similar Threads

  1. [Solved] how do I add another tab to my program in Visual Basic 2010
    By Mr-[S]nipe in forum CrossFire Help
    Replies: 5
    Last Post: 08-30-2011, 03:00 PM
  2. [Help]How to start another program?[Solved]
    By Web-Designer in forum Visual Basic Programming
    Replies: 11
    Last Post: 09-04-2010, 11:13 PM
  3. Replies: 13
    Last Post: 12-28-2009, 01:13 AM
  4. [TUT]How to make a notepad program
    By stevethehacker in forum Visual Basic Programming
    Replies: 9
    Last Post: 11-15-2009, 07:41 PM
  5. another program for CA
    By crusader1 in forum Combat Arms Hacks & Cheats
    Replies: 11
    Last Post: 09-03-2008, 08:34 PM