Results 1 to 4 of 4
  1. #1
    R3DDOT's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    C://Windows/system32
    Posts
    347
    Reputation
    38
    Thanks
    2,366
    My Mood
    Cheerful

    How to make Virtual Keystrokes!

    Hi guys, today I bring you a tutorial on how to make Virtual Keystrokes!

    Many people don't actually know how to use this / or how to make it properly.
    So, this is actually pretty basicly, or so I believe. Basic knowledge of VB should be enough.

    • First, let's create a new project(if you have one already, skip this step, obv.);




    • Second, Add Reference to the Dll(Attachments), named "InputSimulator.dll";




    • Third, import the WindowsInput Namespace using WindowsInput;


    Code:
    Imports WindowsInput


    • Fourth and last, Use the commands! In this case, since we want to add Virtual Keystrokes use this command:


    "HELLO WORLD"
    Code:
    InputSimulator.SimulateKeyDown(VirtualKeyCode.SHIFT)
    InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_E)
    InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_L)
    InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_L)
    InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_O)
    InputSimulator.SimulateKeyPress(VirtualKeyCode.SPACE)
    InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_W)
    InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_O)
    InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_R)
    InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_L)
    InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_D)
    InputSimulator.SimulateKeyPress(VirtualKeyCode.VK_1)
    InputSimulator.SimulateKeyUp(VirtualKeyCode.SHIFT

    OR, you can also use InputSimulator.SimulateTextEntry(""), and don't waste time adding all of those keystrokes.

    Code:
    InputSimulator.SimulateTextEntry("HELLO WORLD!")

    This library can also be used to check if a key is pressed or if it is down(Like "GetAsyncKeyState" function).

    Code:
      // Determines if the shift key is currently down
      Dim isShiftKeyDown as Boolean= InputSimulator.IsKeyDown(VirtualKeyCode.SHIFT)
    
      // Determines if the caps lock key is currently in effect (toggled on)
     Dim isCapsLockOn as Boolean= InputSimulator.IsTogglingKeyInEffect(VirtualKeyCode.CAPITAL)


    For more information about InputSimulator, please check this website: Windows Input Simulator (C# SendInput Wrapper - Simulate Keyboard and Mouse) - Home
    All credits go to the Devs of this library.

    Thx for watching (:


    https://www.virustotal.com/en/file/8...is/1389410549/
    <b>Downloadable Files</b> Downloadable Files
    Last edited by Hero; 01-10-2014 at 08:13 PM.

  2. The Following 10 Users Say Thank You to R3DDOT For This Useful Post:

    <Freak> (03-19-2015),bcb1234 (07-15-2018),blackidgamer (11-27-2019),Cryptonic (01-10-2014),HellGamer21 (01-10-2014),hunterxtzc (03-03-2018),jonnyHS (01-10-2014),kimmu03 (05-17-2020),sam201055 (04-22-2014),sgtthemob (07-13-2015)

  3. #2
    Hero's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    memes
    Posts
    40,134
    Reputation
    4764
    Thanks
    9,674
    Please add virus scans next time.

    /Approved
    [] [] [] [][]

    Editor from 06•14•2011 • 2014
    Donator since 09•16•2011
    Minion from 10•10•2011 • 01•06•2011
    Minion+ from 01•06•2012 • 08•08•2012
    Moderator from 08•08•2012 • 10•06•2012
    Global Moderator from 10•06•2012 • 12•05•2017
    Staff Administrator from 12•05•2017 • 05•01•2019
    Trusted Member since 07•13•2019
    Global Moderator since 09•11•2020




  4. #3
    jonnyHS's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    46
    Reputation
    10
    Thanks
    1
    My Mood
    Pensive
    Nice, this should be good for simple bots

  5. #4
    R3DDOT's Avatar
    Join Date
    Dec 2013
    Gender
    male
    Location
    C://Windows/system32
    Posts
    347
    Reputation
    38
    Thanks
    2,366
    My Mood
    Cheerful
    Quote Originally Posted by Hero View Post
    Please add virus scans next time.

    /Approved
    Yeah apoligies for it. Forgot about them :/

Similar Threads

  1. how to make virtual jump
    By 420Stoner420 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 11
    Last Post: 07-14-2010, 04:34 PM
  2. How to make a working NFV Hack
    By System79 in forum Game Hacking Tutorials
    Replies: 1
    Last Post: 09-04-2006, 04:56 AM
  3. How to make the server run
    By wowhaxor in forum Gunz General
    Replies: 3
    Last Post: 05-25-2006, 09:59 PM
  4. How to make a Zombie
    By arunforce in forum Art & Graphic Design
    Replies: 2
    Last Post: 01-27-2006, 08:07 AM
  5. How I make wallhack?
    By RaidenDXX in forum WarRock - International Hacks
    Replies: 6
    Last Post: 01-23-2006, 01:28 PM