CAPTAIN SIM FORUM
CS Weather Radar >> CS Weather Radar >> WX radar keyboard shortcut?
https://www.captainsim.org/forum/csf.pl?num=1289333441

Message started by twisted8 on Nov 9th, 2010 at 8:10pm

Title: WX radar keyboard shortcut?
Post by twisted8 on Nov 9th, 2010 at 8:10pm
Is there a way to assign keyboard shortcuts to turn on the weather radar? Love the radar but I hate having to click to turn it on everytime! I even tried fsuipc mouse macros and strangely it doesn't work either.
Thanks!

Title: Re: WX radar keyboard shortcut?
Post by GG_Flyer on Dec 1st, 2010 at 9:45pm
If you've dabbled with LUA via FSUIPC you can control the (standalone, at least) CaptainSim WX radar by this route.

For example I have a script file named wx_rdr_on.lua with the following line:

ipc.writeLvar("L:Wxr_ModeSwitch1",3)

Script file wx_rdr_off.lua has this line:

ipc.writeLvar("L:Wxr_ModeSwitch1",0)

I've used FSUIPC to assign keystrokes to run these short scripts, and I have a voice-control add-on that lets me tell my FO to turn the CaptainSim WX radar on and off.

The other CaptainSim WX radar controls are also accessible via LUA as well, although I've not implemented key mapping yet:

L:Wxr_RangeInc=0
L:Wxr_RangeDec=0
L:Wxr_TiltKnob=0


etc.

I don't think I'm that good with using FSUIPC so if I can do it, I'd think most anyone could.  :)

Hope this helps,

Title: Re: WX radar keyboard shortcut?
Post by twisted8 on Dec 11th, 2010 at 12:51pm
Thank you! Great info. I'll give it a try!

CAPTAIN SIM FORUM » Powered by YaBB 2.6.0!
YaBB Forum Software © 2000-2024. All Rights Reserved.