Forums » Air Combat & Civil Aviation » EECH / EEAH » Simpit ideas Active Topics You are not logged in. [Log In] [Register User]
Page 42 of 51 < 1 2 ... 40 41 42 43 44 ... 50 51 >
Topic Options
Rate This Topic
Hop to:
#2135088 - 02/10/07 10:08 PM Re: Simpit ideas ***** [Re: Kassie]
LazerPotatoe Offline
Member

Registered: 03/13/06
Posts: 307
Loc: Toronto, Canada
Hi guys,

so, thanks to your help, I have my first panel started with switches that actually work in EECH and Lockon.
I was stubborn, and bought the cheaper card - the Ultimarc A-PAC. I bought my lexan at Home Depot, bought a 1/2 inch "glass bit" for my drill at the local hardware store, drilled some holes and wired a couple of switches.
I was determined to get on/off toggle switches working, but I didn't want to wire a circuit, and I didn't want to physically convert all my toggles to momentaries (http://www.simpits.org/engineering/Toggle_Moment_Conv/TogToMoment1.html),
so (being a programmer), I figured I might be able to do it in software.
Well, after fighting with DirectInput code last night and today, I finally got it to read the joystick presses (listener, not polling), and tried it out in EECH and Lockon.

Both failed to get my keystrokes.

EECH looked directly at the joystick, and used the default button assignments. Lockon could see the keys in the mission editor, but not once the game loaded up.

So, I was ticked off, and I'm searching articles, and finding other people with the same problem, etc, etc.

Then I stumbled across "AutoHotKey". It's an open source utility, with a nice installer, that does exactly what I want!
http://www.autohotkey.com/

You just create a text file like this:

2Joy1::
SendRaw f
KeyWait 2Joy1
SendRaw f

Save it as an .ahk file, and run it.

And it intercepts joystick 2, button 1. Sends an 'f' key when I flip the toggle up (closed circuit), and sends an 'f' when I flip it down.

Tested in EECH and Lockon and it works. Sweet!

Do you see any possible problems with this approach?

Anyways, I'm happy.

Cheers,
LP

Top
#2135261 - 02/11/07 07:18 AM Re: Simpit ideas [Re: LazerPotatoe]
Anonymous
Unregistered



Sweet !!! Pics, Pics, Pics..!!!!!!!

I dont really understand what you did, but do your toggles work? I guess I need to understand what happens when you "close" the toggle, then "open" it again. How does it read the "open" action from the toggle. Seems like it is two different things. Unless you are using momentary toggles? Exactly what type of toggle is it? SPST, SPDT?
That proggie looks like a nice, correction, real nice find. Looking forward to seeing some more usability ideas from you.

Do you have to program it for each game?

Top
#2135460 - 02/11/07 01:05 PM Re: Simpit ideas [Re: ]
LazerPotatoe Offline
Member

Registered: 03/13/06
Posts: 307
Loc: Toronto, Canada
Sorry, panel is not pic worthy yet. But soon.

Yes, my SPST toggle switches work (they are not momentary). When you close the toggle, it does the "SendRaw f". The KeyWait tells it to wait for the button state to change. So when you open the toggle it runs the next command (the second SendRaw f). It is two different things, but it can tell based on the change in state from on to off. You have the A-PAC right? Try it out.

I haven't tried different key maps for different games yet, but it looks like it is possible with the #IfWinActive flag. Once I test it, I will let you know if it works. The help system is pretty good, and there is a lot of things you can do. You can send multiple key presses on open and on close.

Happy building!,
LP

Top
#2135812 - 02/11/07 08:02 PM Re: Simpit ideas [Re: LazerPotatoe]
Anonymous
Unregistered


Can make a little readme for the EECH assignment process? This is really excellent work LP

But pics when in the building stages are priceless!! Take them and post them all together. The building stage is invaluable...

Top
#2135968 - 02/12/07 02:10 AM Re: Simpit ideas [Re: ]
LazerPotatoe Offline
Member

Registered: 03/13/06
Posts: 307
Loc: Toronto, Canada

Moved AutoHotKey tutorial to new thread, since not all pit builders will be interested, and some others may be interested.

LP


Edited by LazerPotatoe (02/12/07 12:27 PM)

Top
#2137239 - 02/13/07 04:05 PM Re: Simpit ideas [Re: LazerPotatoe]
LazerPotatoe Offline
Member

Registered: 03/13/06
Posts: 307
Loc: Toronto, Canada

Do you all use a regular soldering iron for soldering your wires to your switches? With smaller tips?

Anyone tried a "cold" soldering iron for this task? I have one, but I haven't used it yet.
( http://www.thinkgeek.com/gadgets/tools/69d3/ )

Any soldering tips are appreciated.

Thanks,
LP

Top
#2137426 - 02/13/07 08:30 PM Re: Simpit ideas [Re: LazerPotatoe]
Anonymous
Unregistered


I just a regular one and dont really have any tips. Squeeze the trigger and drop a dab on it. I never gave it much thought, sorry.

Top
#2137600 - 02/14/07 03:31 AM Re: Simpit ideas [Re: ]
GrizzlyT Offline
Member

Registered: 11/22/05
Posts: 536
Loc: Sterling Heights, Michigan
Lazer - It really depends on the size of the switch, the guage of the wire, and the proximity to circuitry. I use different irons, for different jobs.

- If it's a beefy toggle switch and you're running power thru it (so the wire is a bit heavier, too), I will use a soldering gun. Like KC said, squeeze the trigger and go.
I'll also use a gun to tin my wires. (Mostly, because of the speed and convienience.)
- If it's a more delicate switch and your running smaller than say 20 guage wire, I'll use a standard pencil tip iron. Any "middle of the pack" Radio Shack iron will do.
I also use this when soldering my I/O. (D-sub connectors, plugs, jacks, etc.)
- If I'm working on a PCB, I use a good quality Metcal iron, designed for circuit repair.

Honestly, the standard pencil tip is your best "all around" solution. It can do the heavier stuff. It just takes a little longer and it's not as convienient.
It works best with most standard switches, connectors, and signal gauge wiring and won't cook the delicate stuff. (Like the gun can do, if you're not careful.)
And you can do board work with it, too. It shouldn't damage the sensitive circuits like a gun can do, but it's a bit more clumsy to use.

As far as those cold soldering irons, I don't recommend them. Not only is the tip cold but most of the time, so is the solder joint! \:\(
Besides, they don't really solder....they arc weld. They're cool in a pinch and for things like autos and house wiring, where the signal quality doesn't matter so much.

Just remember....Keep the tip clean, pre-tin your wires, make it quick, and flux, flux, flux. \:D
_________________________
Grizzly's Comanche Simulator
"Fear is the mind killer. - Frank Herbert"

Top
#2138231 - 02/14/07 06:57 PM Re: Simpit ideas [Re: GrizzlyT]
LazerPotatoe Offline
Member

Registered: 03/13/06
Posts: 307
Loc: Toronto, Canada
Thanks GrizzlyT - I think I will pick up a soldering gun.

Top
#2147109 - 02/26/07 03:09 PM Re: Simpit ideas [Re: LazerPotatoe]
ukSleek Offline
Member

Registered: 08/23/05
Posts: 1104
Loc: England
I know this thread is nothing to do with us rotor head's but as sim pit builder's i thought this might be of interest to ya..

DFDT Cockpit Project
_________________________
Be Good..Be Strong..;)


Top
Page 42 of 51 < 1 2 ... 40 41 42 43 44 ... 50 51 >
Topic Options
Rate This Topic
Hop to:

Moderator:  RacerGT 
 

Forum Use Agreement | Privacy Statement
Copyright 1997-2013, SimHQ Inc. All Rights Reserved.