Results 1 to 4 of 4
  1. #1
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired

    [OpenSource][Release]Working Autotyper

    Well I quickly wrote up this app as fast as I could, I tried to make it very basic, but it gets complicated and hard to understand at some points.

    [IMG]https://i659.photobucke*****m/albums/uu314/Roflolmao/autotyper.jpg[/IMG]

    Download is below, of course.

    I compiled it in VS2010, so if you want the source it's right here:

    [PHP]Public Class Form1
    #Region "Declarations"
    Private Const VK_RETURN As Byte = &HD
    Private Const KEYEVENTF_KEYUP As Byte = &H2
    Private Declare Function VkKeyScan Lib "user32" Alias "VkKeyScanA" (ByVal yourchar As Char) As Integer
    Private Declare Function keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Integer, ByVal dwExtraInfo As Integer) As Boolean
    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Int32) As Int16
    Dim str() As Char
    #End Region
    #Region "Sending the Keys"
    Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
    Dim i As Integer = 0
    Do Until i = str.Count 'performs an action until all the characters are covered
    keybd_event(VkKeyScan(str(i)), 0, 0, 0) 'keydowns the specified character
    keybd_event(VkKeyScan(str(i)), 0, KEYEVENTF_KEYUP, 0) 'keyups the specified character
    i = i + 1
    Loop
    keybd_event(VK_RETURN, 0, 0, 0) 'Keydowns enter key
    keybd_event(VK_RETURN, 0, KEYEVENTF_KEYUP, 0) 'Keyups enter key
    End Sub
    #End Region
    #Region "Hotkeys"
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    If GetAsyncKeyState(Keys.F7) Then 'If F7 is pushed
    Button1_Click(sender, e) 'Calls button1_click event that starts the timer
    End If
    If GetAsyncKeyState(Keys.F8) Then 'IF F8 is pushed
    Timer2.Stop() 'Stops the timer that sends the keys
    End If
    End Sub
    #End Region
    #Region "Button Clicks"
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    If TextBox1.Text = "" Or TextBox1.Text = " " Then 'if there's no text
    MsgBox("ERROR: No text to send", MsgBoxStyle.Critical)
    Else
    TextBox1.Text = TextBox1.Text.ToLower 'converts text to lowercase
    str = TextBox1.Text.ToCharArray 'converts Textbox1 to a char array, to be sent
    Timer2.Start() 'starts timer that sends keys
    End If
    End Sub
    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    Timer2.Stop()
    End Sub
    #End Region
    #Region "Credits and usage"
    'Credits go Mainly to Lolland(Me) @ MPGH.net, with some ideas/help from NextGen1.
    'Blubb1337, Xscapism, J-Deezy, and NextGen1 are awesome.
    '
    'If you wish to use this source for a release, please give me credits. Much time
    'was spent on this project, and I'd appreciate recognition for it.
    'Modification towards the project is welcome and encouraged.
    '
    'Have fun!
    ' _____ _____ _____ _____ _____ _____ _____
    '| | _ | __| | | | | | __|_ _|
    '| | | | __| | | | _ | | | | __| | |
    '|_|_|_|__| |_____|__|__| |_| |_|___|_____| |_|
    #End Region

    End Class
    [/PHP]

    To be honest, I'd expect some improvements on this code if you were to release such a thing, but I wouldn't be surprised if I saw some exact duplicates without any credits.

  2. The Following User Says Thank You to Lolland For This Useful Post:

    zouzou.141 (05-04-2012)

  3. #2
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Yay I'm awesome!

    Haha this looks pretty decent lolland, should help out quite a few people around.

    1 very VERY minor little bit I'd fix

    [php]
    i = i + 1
    [/php]

    [php]
    i += 1
    [/php]

    cuts back the code a tiny bit, it's no biggie

    Nice release

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  4. The Following User Says Thank You to Jason For This Useful Post:

    Lolland (08-15-2010)

  5. #3
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    I tried to make it really easy to understand, so I had the i = i+1 tidbit in there.

    Thanks

  6. #4
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Good Job.

  7. The Following User Says Thank You to Hassan For This Useful Post:

    Lolland (08-15-2010)

Similar Threads

  1. [Release] Working UCE! (For those who can't get MHS working)
    By Debugger in forum Combat Arms Hacks & Cheats
    Replies: 20
    Last Post: 08-01-2008, 06:18 AM
  2. [RELEASE] Working Addeys
    By quin123 in forum WarRock - International Hacks
    Replies: 40
    Last Post: 07-05-2007, 03:07 PM
  3. [RELEASE] Working Bypass (30 min)
    By xxpagxx in forum WarRock - International Hacks
    Replies: 26
    Last Post: 05-23-2007, 10:27 AM
  4. [RELEASE] Working Speedhack
    By quin123 in forum WarRock - International Hacks
    Replies: 18
    Last Post: 11-01-2006, 05:27 PM
  5. [RELEASE] Working AimBot
    By quin123 in forum WarRock - International Hacks
    Replies: 28
    Last Post: 10-22-2006, 10:07 PM