Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#3396567 - 09/23/11 11:41 PM Driving me Nuts!  
Joined: Sep 2006
Posts: 235
TheSilkMan Offline
Member
TheSilkMan  Offline
Member

Joined: Sep 2006
Posts: 235
Trying to update a program and add a command "LALT /H q." The command name is "Bomb_Release." Keep getting this frustrating error:

ERROR 2020: Unknown key press in a button statement
The compiler couldn't work out what key you were trying to generate. Some reasons why you might see this error include:
1.) Incorrect key syntax eg. UAROW instead of UARROW
2.) Macro spelling differs from the macro in the macro file (I see this one a lot in files sent to me!). So if in your macro file you have:
Attack_my_target = a b c d
and in your joystick file:
BTN H4U Atack_my_target Rem Incorrect spelling
BTN H3L Attack my target Rem Compiler will think this is 3 separate macros as spaces aren't allowed in macro names.
then you'll generate this compiler error.
3.) The macro actually doesn't exist in your macro file. Eg.
BTN S1 Autopilot
but you don't have a macro defined for Autopilot in your macro file.
4.) You can see from above that a good reason why you might see this error is because the macros in the joystick file aren't being found in your macro file. They could be misspelled. But it could also be that you haven't told the compiler which macro file to associate with your joystick file. So either you do not have a:
USE MDEF macrofilename
statement in your joystick file, or if you do, it could be pointing to the wrong macro file.
5.) A macroname may break one of the macro naming rules. Eg.
Autopilot] = a
would generate this error because a macroname cannot start with [.

Inline advert (2nd and 3rd post)

#3396642 - 09/24/11 01:59 AM Re: Driving me Nuts! [Re: TheSilkMan]  
Joined: Sep 2006
Posts: 235
TheSilkMan Offline
Member
TheSilkMan  Offline
Member

Joined: Sep 2006
Posts: 235
Alright, figured it out the LALT already has the hold modifier built into it. So, LALT /H q should be LALT q. DUH!

#3396682 - 09/24/11 05:00 AM Re: Driving me Nuts! [Re: TheSilkMan]  
Joined: Sep 2006
Posts: 235
TheSilkMan Offline
Member
TheSilkMan  Offline
Member

Joined: Sep 2006
Posts: 235
Ok, either I'm just a nut or this is freakin hard to do. I just want to program the right-alt key along with an alphabet letter to a command and assign it to the T1 button. I mean, really, I program and dont get this. Either the key sticks adinfinitum or it doesnt work. When I press the T1 I want those keys held down. When I release the T1 I want those keys released. I dont want the keys repeating. I've used Korgy with and the KD, KU modifiers but it causes sticky keys when KD is used alone or a press and release when the KD KU combo is used. What am I missing? I tried doing it with the LALT and /H and it crashes the compiler. Dang, I'm using version 4.0 of Foxy. Why cant Key presses from the keyboard to realtime record the command to be assigned to key? I thougtht that perhaps Korgy would allow me to use the real keyboard to do this but it doesnt. The CNTRL, SHFT and ALT Keys are present in Korgy and give the desired result but only for the left side of the keyboard. Im trying to do the same thing but using the right side keys. Ok, spent 6-hours learning this and am frustrated...

#3470465 - 12/08/11 10:16 PM Re: Driving me Nuts! [Re: TheSilkMan]  
Joined: Nov 1999
Posts: 529
Nutty Offline
Member
Nutty  Offline
Member

Joined: Nov 1999
Posts: 529
Bristol, England
BTN T1 /H { RALT w }


James "Nutty" Hallows
ViperDrivers
#3470485 - 12/08/11 10:46 PM Re: Driving me Nuts! [Re: TheSilkMan]  
Joined: Sep 2002
Posts: 11,273
531 Ghost Offline
USMC
531 Ghost  Offline
USMC
Veteran

Joined: Sep 2002
Posts: 11,273
Elizabeth City NC
Saw the thread title, I knew Nutty would have to reply. wink


Originally Posted by Abraham Lincoln
America will never be destroyed from the outside. If we falter and lose our freedoms, it will be because we destroyed ourselves.


#3481388 - 12/26/11 10:38 AM Re: Driving me Nuts! [Re: TheSilkMan]  
Joined: Nov 1999
Posts: 529
Nutty Offline
Member
Nutty  Offline
Member

Joined: Nov 1999
Posts: 529
Bristol, England
Apologies, I rarely visit here these days as I'm busy on other forums.

Cheers

Nutty


James "Nutty" Hallows
ViperDrivers

Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

If you shop on Amazon use this Amazon link to support SimHQ
.
Social


Recent Topics
Actors portraying US Presidents
by PanzerMeyer. 04/19/24 12:19 PM
Dickey Betts was 80
by Rick_Rawlings. 04/19/24 01:11 AM
Exodus
by RedOneAlpha. 04/18/24 05:46 PM
Grumman Wildcat unique landing gear
by Coot. 04/17/24 03:54 PM
Peter Higgs was 94
by Rick_Rawlings. 04/17/24 12:28 AM
Whitey Herzog was 92
by F4UDash4. 04/16/24 04:41 PM
Anyone can tell me what this is?
by NoFlyBoy. 04/16/24 04:10 PM
10 Years ago MV Sewol
by wormfood. 04/15/24 08:25 PM
Pride Of Jenni race win
by NoFlyBoy. 04/15/24 12:22 AM
It's Friday: grown up humor for the weekend.
by NoFlyBoy. 04/12/24 01:41 PM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0