[REL] Universal Pedal Overlay (AutoHotkey Script)

Discussion in 'Other' started by svictor, Feb 5, 2020.

Tags:
  1. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    935
    Likes Received:
    6,342
    Universal Pedal Overlay is an overlay script which displays controller input such as pedal & steering for racing game.

    The overlay is written in Autohotkey (AHK) scripting language. It requires game to be in windowed or borderless mode. It reads input directly from controller, is independent of any games.

    preview.png

    Video: https://www.bilibili.com/video/av45391502

    Features:
    • Display Pedal Axis: Throttle, Brake, Clutch, Handbrake.
    • Display Steering Bar, can be disabled.
    • Reads input directly from device/controller, there is no lag.
    • Very lightweight, one click and it's running.

    Requirements:
    This overlay script requires Autohotkey to be installed, it can be downloaded from Autohotkey official website: https://www.autohotkey.com/download/


    How to use:
    1. Download and extract to a folder (including png images).

    2. Open Universal_Pedal_Overlay.ahk with text editor (such as notepad). You can also run the script now, but it might not display correctly without proper setting.
      Note: you may use this JoystickTest script to check device number and axis/button.

    3. Read instruction comments inside script carefully. Change device number (this may take a few try), and assign each Axis, etc.

    4. Save script, then double click script to run and check if everything works. If not, go back try another device number or Axis letter.

    5. You can reload script any time by running script again, or use hotkey "Win+Ctrl+Alt+R" to reload. To exit/close script, Right Click green H icon on system tray, or use hotkey "Win+Ctrl+Alt+X".

    Version 1.1.1 (2022-03-09)
    ----------------------------
    - Added option to Show or Hide Steering bar (two scripts now merged into one).
    - Steering bar length, position dot, and edge size are adjustable.
     

    Attached Files:

    Last edited: Mar 8, 2022
  2. ADSTA

    ADSTA Registered

    Joined:
    Nov 19, 2011
    Messages:
    2,013
    Likes Received:
    1,369
    Well done.
    Is it possible to run the game fullscreen and have the pedal overlay on a second monitor that's connected to the same computer?
     
    Daniel Espada and Raven_ARG like this.
  3. Dave Gelink

    Dave Gelink Registered

    Joined:
    Dec 20, 2016
    Messages:
    1
    Likes Received:
    0
    Thanks @svictor
    Could you also create a wheelimage (.png) which rotates based on wheel input degrees?
     
  4. Daniel Espada

    Daniel Espada Registered

    Joined:
    Jun 30, 2020
    Messages:
    25
    Likes Received:
    41
    yeah that would be a great jewell fr this very nice pluggin!
     
  5. coasting&cruising

    coasting&cruising Registered

    Joined:
    Aug 16, 2021
    Messages:
    108
    Likes Received:
    47
    That would be a great, if it is possible with AHK plugins. Also adding a FFB meter, and optionally remove clutch and hanbrake.
     

Share This Page