Make accurate turns (esp. 90 degree turns) using keyboard input menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Mapleman's Avatar Member
    Reputation
    1
    Join Date
    Sep 2020
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Make accurate turns (esp. 90 degree turns) using keyboard input

    Hi,

    I have been looking into writing a dungeon farming bot which takes in an .xml script and processes a series of actions using mouse clicks, keys, delays and loops - trying to best emulate actual keyboard strokes and mouseclicks.

    One thing I have had difficulty is accurately turning. As far as movement is concerned I find I can go forwards, backwards, and strafe left/right and the consistency each run is pretty exact. As soon as I try to make a turn it gets inconsistent.

    I am writing the program in C#, and have been using InputSimulator for the mouse and keystrokes. I also tried Win32 stuff but also seems to have a degree of inconsistency.

    For example, turning left or right for 2 seconds (2000ms) should complete a 360 turn. So turning right for 500ms should make a 90 degree turn. And a lot of the time it does, but then sometimes overstretches or doesn't turn enough, which then obviously throws the rest of the bot out.

    A snippet of example code - press the right key down, wait 500ms, press right key up again :-

    using WindowsInput;
    using WindowsInput.Native;
    ....

    InputSimulator isim = new InputSimulator();

    isim.Keyboard.KeyDown("RIGHT");
    System.Threading.Thread.Sleep(500);
    isim.Keyboard.KeyUp("RIGHT");

    I've also tried using Win32 to just tap the LEFT key and then doing this a number of times, once again has inaccurate results.

    It's not a problem if it takes several seconds to make a 90 degree turn, I just need it to do it consistently at 90 degrees every run.

    Has anyone else had similar experiences and could help?

    Make accurate turns (esp. 90 degree turns) using keyboard input

Similar Threads

  1. Mouse-like turning using CInputControl?
    By xpl0itz in forum WoW Memory Editing
    Replies: 17
    Last Post: 12-30-2009, 04:49 PM
  2. Make a banker DISAPEAR - LIVE! (None can use banker)
    By Helene in forum World of Warcraft Exploits
    Replies: 40
    Last Post: 10-28-2008, 06:28 PM
  3. Replies: 20
    Last Post: 01-27-2008, 06:15 AM
  4. How to climb up almost all walls that are 90 degrees
    By Anthonyrox8 in forum World of Warcraft Exploration
    Replies: 8
    Last Post: 11-26-2007, 02:18 PM
  5. How to jump almost any wall thats 90 degree up
    By Mygot in forum World of Warcraft Exploits
    Replies: 17
    Last Post: 08-24-2007, 02:45 PM
All times are GMT -5. The time now is 03:19 AM. 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