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

Latest News

How often do you meet up (IRL) with your simracing friends?

  • Weekly

    Votes: 50 9.2%
  • Monthly

    Votes: 26 4.8%
  • Yearly

    Votes: 32 5.9%
  • Weekly at lan events

    Votes: 3 0.6%
  • Monthly at lan events

    Votes: 2 0.4%
  • Yearly at lan events

    Votes: 13 2.4%
  • Never have

    Votes: 427 78.5%
Back
Top