Jump to content
The simFlight Network Forums

gr8guitar

Members
  • Posts

    157
  • Joined

  • Last visited

Everything posted by gr8guitar

  1. Okay, I'm a bit confused: "There's no "mouse" library example at present, ... ... , there's now a library called "mouse" which ..." But in any case, I will re-read the documentation, sometimes it takes a few times before it sinks in, thanks.
  2. Okay, I've been searching the forum Internet and looking at the lua examples from the modules folder, and I installed 3.999e, and I did not see a 'mouse.lua,' do I need to do a complete install of 3.999?
  3. gr8! I timed that well. I have never really been a fan of the virtual cockpit, I don't know why, I know it seems popular but I do like fixed windows and undocked windows (as I use multiple monitors). Again, very happy with the Cx510066C0 etc. option.
  4. Okay, hopefully the last question, is there a way to convert the rotary switches to mouse movements? I've been able to do this using autohotkey (which I had to use for a (I think.. collins, transponder that has realistic on/stby/alt switch, no mouse <rect> or offsets - minor I must admit). The "Ready for Pushback v2 for 747" has a lot of panels, and can't really afford to make THAT realistic but it would be nice to be able to use the rotary switches to move around the panels instead of a mouse.
  5. Now using Cx510066C0, x00090001 (and Cx6100CC60) was very useful. With one rotary switch and 5 pushbuttons, I am able to select options for ATC, view, pushback, fuel, and panels. Very handy indeed and clean.
  6. Wow, so cool. You sure did a lot of work to make FSUIPC so functional. I wish I had messed with it years ago. I'm way behind the curve but diligently plugging away. Much gratitude.
  7. No, I didn't say that. - I meant, ... on a single line. My next question, since you led me to it, what does the: Cx5100 and x00030001, also saw on GF45 example something like x00FF0001, mean? And is there a way to see the values of 66C0, etc. somewhere within the FS (I think this is stretching it but I was interested in seeing the values being incremented/decremented to ensure I was "selecting" the right one)?
  8. okay, I finally get i can't send a KEY and CONTROL at the same time. btw: I was able to get what I thought would work. I have 6 pushbuttons and 1 rotary switch. I select, either (for Cessna 172) TAS, Attitude bar, Heading Indicator, Barometer, VOR2 or ADF card and inc or dec as necessary. I think it's obvious I'm not as versed in FSUIPC as you are (...yet :) ) but sometimes I need to just see what's happening or not happening (several times perhaps) to get it and I do greatly appreciate your input. I'll look at that sample and since I got 6 pb and 1 rot to work as predicted <whew>, I think I might be able to go forward. I'm just grateful for the rotary switch option. For so many years, and I mean 4-color FS, and Amiga (and real flying since 1994-Cessna 182D) I hadn't taken that step to program, assemble etc. I waited for Saitek and VRInsight and the like AND STILL WASN'T 100% SATISFIED. I'm now finally at the point where I can be comfortable in what's available for controls although not to the extreme of others. Some are simply amazing but also look restricting. In my home FS though, I can fly the 172, turboprops, to 747 using most controls with little setup. Especially delving into FSUIPC, it has made me very happy to have those rotaries working, thank you, Pete, best regards.
  9. well, here was my thought process. I thought if I could find a way to use a rotary switch to select ATC. I.E., rotate the switch to select a "number" and then use its integral pushbutton to select it. Here is what I tried (up to '3") but all but the first line of C1003 was retained after I reopened the FSUIPC.ini: X=CP(F-15,0)(F-15,1)(F-15,2)0,17,K49,8,C1003,3840 ; CHECK ALL CLEAR / TYPE "1"/ SET 15,0 X+1=CP(F+15,0)(F-15,1)(F-15,2)0,17,K50,8,C1003,3841 ; CHECK 15,0 SET & 15,1 & 15,2 CLEAR / TYPE "2"/ SET 15,1 X+2=CP(F+15,0)(F+15+1)(F-15,2)0,17,k51,8,C1003,3842 ; CHECK 15,0 & 15,1 SET & 15,2 CLEAR / TYPE "3" / SET 15,2 X+3=CP(F+15,0)(F+15,1)(F+15,2)0,16,K50,8,C1004,3840 ; CHECK ALL SET/TYPE "2"/CLEAR 15,0 X+4=CP((F-15,0)(F+15,1)(F+15,2)0,16,K49,8,C1004,3841 ; CHECK 15,0 CLEAR & 15,1 & 15,2 SET / TYPE "1"/ CLEAR 15,1 X+5=CP((F-15,0)(F+15,1)(F+15,2)0,16,K49,8,C1004,3842 ; CHECK 15,0 CLEAR & 15,1 & 15,2 SET / TYPE "1"/ CLEAR 15,2
  10. Just so I got it straight: I really only need 1 rotary switch and the rest pushbuttons to do all that would be required, although not as realistic looking, fully functional, yes? In addition, using c1003, I could "add" or "count" the number of presses based on CP(), yes? And finally, I didn't see any info on output. Do you know what people are using to drive outputs as far as digit displays and lights?
  11. Okay, wilco. I had decided to make an MCP, wow, I didn't realize what an undertaking, a bit overwhelming in time and scope. I just should have purchased VRInsigbt's MCP - oh well. Again, thanks for your valueable time and information. It is greatly appreciated.
  12. Hello, since you're the master, I decided I would insert directly your code (verbatim) into my FSUIPC.ini and it did not work. And after discovering something, I found out why. In your code, you mention/use (F-15,0), etc. for flag monitoring but since you're using a phantom switch, switch 15,0 is never toggled. And that is why I need 'n' or perhaps just the activation of some pushbutton so that its flag can be toggled. I must admit, I did not see the significance of that the first time I read the manual and even worse, I missed it when it was mentioned in the thread. I did not know that a switch's flag gets toggled with each activation. You were aware of this but I don't recall it being mentioned in our conversation. So my sincere apologies to you for missing it - twice! I now see that I don't need to set or clear flags in my situation. In fact, when I went back over the FSUIPC.ini, FSUIPC had removed them! And the rotary switch/pushbutton functioned as I desired but only with the 'n" portion being there as well. So to go beyond 767PIC's unique handling of Nav1, I decided to see about making Nav 2 work in any aircraft and this is what I came up with: 0=CP(F-2,0)0,0,C65646,0; Nav 2 Frac Dec 1=CU(F-2,0)0,1,C65647,0; Nav 2 Frac Inc 2=CP(F+2,0)0,0,C65644,0; Nav 2 Whole Dec 3=CU(F+2,0)0,1,C65645,0; Nav 2 Whole Dec Now that I was aware that just activating a pushbutton should toggle its flag, and perhaps it does but the above code did not work fully. I could only get the Frac portion to Inc/Dec but the "Whole" was inoperable even though I was activating pb 2,0. When I added the N2, shown below, then it worked. I could activate the pushbutton and swap back and forth between the Frac and Whole. 0=H2,0,K78,8 1=H2,0,K50,8 2=CP(F-2,0)0,0,C65646,0; Nav 2 Frac Dec 3=CU(F-2,0)0,1,C65647,0; Nav 2 Frac Inc 4=CP(F+2,0)0,0,C65644,0; Nav 2 Whole Dec 5=CU(F+2,0)0,1,C65645,0; Nav 2 Whole Dec Again, as mentioned many times before, I do NOT know why - but it works. My only reasoning is perhaps FS requires a toggle between n and nn. And yes I'm aware I perhaps don't need the CU but, again, it's working. So hopefully you'll accept my apologies for missing given information and we can get back to "flying." One more note, what are people using for hardware to display, say Altitude Select and lights on, etc?
  13. see now you're just pissing me off. In the previous notes, all I did was say thanks and all I did was offer what worked for someone else to use, nothing more, if they read this forum. I DO need the 'n' to WORK as I stated before using the rotary switch's pushbutton. I am using a single rotary switch to control both the MHz (Integer) and then KHz (Decimal) portions of the frequency and the pushbutton is working to do just that, swap back and forth between the two. Of course it cycles from OFF to ON to OFF to ON etc. It's a digital rotary switch! I only offered of what worked, why, I'm not completey sure, I didn't write the FSUIPC. In addition, I got the idea of using CP and CU from the FSUIPC manual on page 26, and again, that is what worked! I'm going to finish on this subject, I didn't think I would be challenged of why it works, again, I'm not sure, it just does and I thought it might be useful to someone else using a rotary switch with a pushbutton (momentary on) so they don't have to do trial and error if they chose to try it. And again, I do thank you for FSUIPC.
  14. wow, I don't know other than it made since to me yesterday and it still continues to work today. I tried: quote: 4=CP(F-15,0)0,2,C65642,0 :Nav1 Frac Dec 5=CP(F-15,0)0,3,C65643,0 :Nav1 Frac Inc 6=CP(F+15,0)0,2,C65640,0 ;Nav1 Whole Dec 7=CP(F+15,0)0,3,C65641,0 ;Nav1 Whole Inc and this did not work until I change the 5 to CU and the 7 to CU or whatever I wrote above. And I derived that information from page 26 of the FSUIPC manual. Also, If I don't select the "n" then I am not able to toggle back and forth between the Whole and the Frac with the pushbutton, which is the goal and again, it was achieved. As long as the goal was achieved and it seems to be consistant than I am happy. I was just showing you how I was able to get it to work and what I thought was logically happening. As far as the other radios, I'm not concerned with them as I use Saitek's radio panel. Using 767PIC version for FS2000 (in FS2004), I am only concerned with Nav1. In addition, in auto mode or manual mode, I can and do control the Nav's with the FMC. I use Saitek to control the other radios. It was only Nav 1 that is shown on the MCP and I wanted to be able to control it with the rotary switch with the pushbutton. In auto mode, again 767PIC, the FMC updates its INS position from the VOR's and it works great while cruizing but I don't like it to control the Nav1 when I feel the time to set up for an ILS approach so I then switch to manual and enter the freq as needed. So in conclusion, what I showed you, WORKS. Why? Like I said, I thought I understood it logically and made it work but looking back, I'm a bit confused now but won't change what works, and works well.
  15. LOL, actually, now that I slept on it, I'm not sure why it's working either. I know it won't work for Nav2 at the present time because it requires a toggle of n2 and nn2 where as just typing n (or holding down n) or typing nn quickly (where the pushbutton is assigned "n"), the FS must be assuming Nav1. But I think I'm on the right track to continue. I appreciate your help and of course, FSUIPC, as it has allowed the FS to become more real, even though touch-screen in real aviation is picking up steam (pun intended) as steam gauges disappear. As far as Excel and VBA, that is another topic and will venture there as well.
  16. I'm a happy camper - err flyer. I got it to work as needed and thanks. Here is what worked for me: pushbutton 2,2 rotary switch 0,2/0,3 3=P2,2,K78,8 2,2 turns on the "n" actually depending on speed of presses/hold, toggles between n and nn - so okay * 4=CP(F-2,2)0,2,C65642,0,C1003,514: conditional press on and this checks flag of 2,2 is clear. 0,2 = Nav1 Frac Dec and sets flag of 2,2 5=CU(F-2,2)0,3,C65643,0,C1003,514: conditional press off and this checks flag of 2,2 is clear. 0,3 = Nav1 Frac Inc and sets flag of 2,2 6=CP(F+2,2)0,2,C65640,0,C1004,514: conditional press on and this checks flag of 2,2 is set. 0,2 = Nav1 Whole Dec and clears flag of 2,2 7=CU(F+2,2)0,3,C65641,0,C1004,514: conditional press off and this checks flag of 2,2 is set. 0,3 = Nav1 Whole Inc and clears flag of 2,2 514 = 256 * 2 +2 I noticed the highlighted frequency did not alter but the Whole / Frac freqs changes were indicated and swapped correctly. * Only concerned with Nav1 at this time because I am using 767PIC (was for FS2000) in FS2004. It has an FMC that can automatically control Nav1 & 2 but in Manual mode, only Nav 1 is showing on the Mode Control Panel (MCP).
  17. oh boy, well here is my understanding: When I press the keyboard: n 1, in FS, it selects the MHz or Whole frequency mode for Nav 1 radio, when I press: n n 1, FS selects the KHz or Fractional frequency mode. For example the frequency of 115.50. As far as keyboard presses go, I type: n 1 and then + or - to change the 115 (which is the MHz = Whole) portion of the frequency and when I press n n 1 and then + or - to change the .50 (which is the KHz = Fractional) portion of the frequency. I have a VRInsight M-Panel and it has a rotary switch with a pushbutton and it functions exactly of what I would like my rotary/pushbutton to function using FSUIPC. As I press its pushbutton, it swaps back and forth between the MHz (Whole) and KHz (Frac) modes and then the rotary part increases or decreases the frequency. Again, not fully understanding FSUIPC's capabilities/programming options yet, I don't see how using a momentary on pushbutton can swap back and forth the Whole and Frac selection. Again, thank you for your information.
  18. Again, thank you for your information, time and FSUIPC. I did read through the entire thread and I still didn't see how the condition between MHz and KHz could be determined (read). I did see that there is allowance for Whole Inc/Dec and Frac Inc/Dec, etc. but that would require 2 rotary switches. But I did not see anything that would indicate that FSUIPC knows that either MHz or KHz was selected from a single pushbutton (momentary on) action. Let me ask you this, is there a way that a pushbutton can be activated and the count of it be stored someway? My thought is this, if I push it once/count 1, say it acts as the keys pressed of: n 1 (selecting MHz), if I press the pushbutton again/count 2 (remembering that it was already pushed once), it acts as key presses: n n 1 (selecting KHz). And then the count gets reset to zero. My next attempt is to get the FSUIPC to work with Excel. I saw the info VB6 and it works! but so far not much luck working in Excel using VBA - will keep at that too.
  19. I would like to think that this topic has come up before but as I searched, I did not find it typing 'rotary switch(es).' I have a rotary switch with a pushbutton. I would like to program the switch to be able to toggle between MHz and KHz and then use the rotary to increase or decrease the frequency as necessary. Has someone written this yet for FSUIPC? Thank you, gr8guitar@netzero.net.
  20. Hello Pete, I have the registered version of FSUIPC (3.99) and I did not see a lua COM library, it is only for FSX & FSUIPC 4?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.