F1 2022 SimHub SpeedTrap

Apps F1 2022 SimHub SpeedTrap 1.0

Login or Register an account to download this content
Hi, this is allways displayed, but you can modify it to make it ON/OFF by pressing a key. Here's what I did:
- Edit widget on SimHub.
- Create a New Layer called Live Speed.
- Move all layers to this one you create it.
- On Live Speed layer -> visible click on fx icon.
- Click on Computed Value and check Use Javascript.
- Paste this code:
Code:
var Lkey = $prop('InputStatus.KeyboardReaderPlugin.L')
var vis = 0

if(root["count"] == null){root["count"] = 0}

{
if (Lkey == 1){root["count"] = root["count"] + 1}
}

{
if (root["count"] == 1){vis = 1}
if (root["count"] == 2){vis = 0 ; root["count"] = 0}
}

return vis
- Press OK and save Widget.
- Now on SimHub - Settings - Plugins check ON "Keyboard Emulator" and "Keyboard Input".
- Restart SimHub and Speedtrap widget can be turn ON/OFF by pressing L on your keyboard.
 
Here how it looks to me (ON). Pressing L key I can turn Speedtrap OFF.
 

Attachments

  • Screenshot_gp_2022_a522_ks_barcelona_1-6-122-12-4-4.jpg
    Screenshot_gp_2022_a522_ks_barcelona_1-6-122-12-4-4.jpg
    885.4 KB · Views: 58

Latest News

What's needed for simracing in 2024?

  • More games, period

  • Better graphics/visuals

  • Advanced physics and handling

  • More cars and tracks

  • AI improvements

  • AI engineering

  • Cross-platform play

  • New game Modes

  • Other, post your idea


Results are only viewable after voting.
Back
Top