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: 61

Latest News

What is the reason for your passion for sim racing?

  • Watching real motorsport

    Votes: 461 70.0%
  • Physics and mechanics

    Votes: 282 42.8%
  • Competition and adrenaline

    Votes: 305 46.3%
  • Practice for real racing

    Votes: 135 20.5%
  • Community and simracers

    Votes: 179 27.2%
Back
Top