February 11, 201016 yr Hi,Is there an XML command to set the zoom level of the forward view to a specifric value? I can only see the following in the FS2004 controls.dll list I have:ZOOM_1XZOOM_INZOOM_IN_FINEZOOM_MINUSZOOM_OUTZOOM_OUT_FINEZOOM_PLUSWhat I would like to do is write a small gauge that changes the zoom as I change altitude:> read altitude and write required zoom value to a variable> If altitude below a certain cutoff and zoom not default, set the default low altitude zoom> If altitude above a certain cutoff and zoom not default, set the default high altitude zoom> If altitude between the cutoff values and zoom not same as stored variable, set zoom to the stored variable...Thanks,Geoff
February 11, 201016 yr Moderator No. The list you have are all that's available...However, you could program a number of sequential ZOOM_IN or ZOOM_OUT events to a single operation, but you'd have to experiment to determine how many times to send the commands to achieve your targeted goal.For example (in pseudo-code): if (current altitude => 2000 feet){ ZOOM_OUT; ZOOM_OUT; ZOOM_OUT; } Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
February 11, 201016 yr Author No. The list you have are all that's available...However, you could program a number of sequential ZOOM_IN or ZOOM_OUT events to a single operation, but you'd have to experiment to determine how many times to send the commands to achieve your targeted goal.For example (in pseudo-code):if (current altitude => 2000 feet){ ZOOM_OUT; ZOOM_OUT; ZOOM_OUT; } Hmmm. The problem with that is that if I was levelling off for a time at an intermediate altitude, I might end up with an odd zoom value at the end. I suppose I could have some certain altitudes at which zooming events occured and a "done" variable to tell what had happened - getting pretty complicated now though!Odd that there wasn't a ZOOM_SET variable... (and annoying)Geoff
Create an account or sign in to comment