December 4, 200619 yr Tom, I can not get the timer gauge to work, using your code. I have included my code for you to look at. I am sure that it is something simple, that I am missing, but right now my old brain is in overload. When the panel loads, with the following code, the timer shows a functioning clock. When I click nothing happens and the clock continues to run. With Jan's code, when the panel loads, the timer shows " 00:00:00 " and does not change until I click the mouse. It then shows the " Time " at the time of my mouse click. This value will remain the same, unless I click again. If you or another XML guru has a solution to fix this, I would welcome your advice.ThanksgreencoTimer 1 (P:Zulu time, seconds) (>L:FixedTime, seconds) %((L:FixedTime,hours) int)%!02d!%:%((L:FixedTime, minutes) 60 % int)%!02d!%:%((L:FixedTime, seconds) 60 % int)%!02d! (M:Event) 'LeftSingle' scmp 0 == if { 1 (>L:FixedTime,bool) } (M:Event) 'LeftRelease' scmp 0 == if{ 0 (>L:FixedTime,bool) }
December 4, 200619 yr Greenco,The correct code is:(P:Zulu time, seconds) (>L:FixedTime, seconds)Each time you click the mouse the current time is saved to the "FixedTime" variable.Tom
December 4, 200619 yr Hi,Of the record and may be known for a long time, but you can SET the plane's LatLon also with Tom's formula elixer:Read:%((L:LAT,degrees) d 0 >= )%{if}%N%{else}%S%{end} %( abs d flr )%!02d! Jan "Beatus ille qui procul negotiis..."
December 4, 200619 yr Tom, something is still wrong. I replaced my "Mouse" code with your code and the gauge still gives me a working clock and the mouse click does not do anything. It is as if the " (P:Zulu time, seconds) (>L:FixedTime, seconds) " is set to "1" so the clock is running when the panel loads. Should something be changed, so that the clock is not running, when the panel loads?Thanksgreenco
December 4, 200619 yr Greenco,Sorry, I only focused on structure and didn't pay attention to the group in your code.Please remove this:(P:Zulu time, seconds) (>L:FixedTime, seconds)Which is actually updating the LVar continuosly, making it work like a clock, as noticed.Tom
December 4, 200619 yr Thanks Tom, I thought that was the problem. I didn't know that I could remove it, since it was used in the mouse area. It now works "GREAT" and the code is much cleaner. I will keep it for future references.Thanks a million for your help!!!greenco
December 5, 200619 yr hi,Did you notice the LatLon stuff?Jan"Beatus ille qui procul negotiis..." Jan "Beatus ille qui procul negotiis..."
December 5, 200619 yr No, I missed it, but I just went back and looked at it. I will also put this one away for future use.Thanksgreenco
Create an account or sign in to comment