Previous Thread
Next Thread
Print Thread
Rate This Thread
Hop To
#4070006 - 01/27/15 07:42 AM 2 functions on one button depending on time it keeps being pushed.  
Joined: Dec 2013
Posts: 46
Space the Blaze Offline
Blazer of Space
Space the Blaze  Offline
Blazer of Space
Junior Member

Joined: Dec 2013
Posts: 46
Hello,

I want to use my button for 2 functions. Or more.

I got
MapKey (&T16000, TS3, EXEC ("ActKey (KEYON+PULSE+'m'); DeferCall (1200, &ActKey, KEYON+PULSE+'b'); ") );

But this give me the m, and then 1,2 seconds later the b
I want the b without the m (if I am going for the b that is)
biggrin

I have no idea how to make the program understand that it should ignore giving me m for as long as I am holding the button, untill it hits 1.2 second and then it should forget about m altogether, and give me the b

Do we need to install a timer, or can we do without?

something like:
if TS3
and not b
then not m?
I have no idea how to write this in code, lol

Please help... smile

Inline advert (2nd and 3rd post)

#4070015 - 01/27/15 08:18 AM Re: 2 functions on one button depending on time it keeps being pushed. [Re: Space the Blaze]  
Joined: Oct 2010
Posts: 83
Nicu Offline
Junior Member
Nicu  Offline
Junior Member

Joined: Oct 2010
Posts: 83
You can use TEMPO (see the manual for details).

#4070018 - 01/27/15 08:57 AM Re: 2 functions on one button depending on time it keeps being pushed. [Re: Space the Blaze]  
Joined: Dec 2013
Posts: 46
Space the Blaze Offline
Blazer of Space
Space the Blaze  Offline
Blazer of Space
Junior Member

Joined: Dec 2013
Posts: 46
Thanks! Found it.
Totally overlooked it.. smile


Moderated by  RacerGT 

Quick Search
Recent Articles
Support SimHQ

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


Recent Topics
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
OJ Simpson Dead at 76
by bones. 04/11/24 03:02 PM
They wokefied tomb raider !!
by Blade_RJ. 04/10/24 03:09 PM
Good F-35 Podcast
by RossUK. 04/08/24 09:02 AM
Gleda Estes
by Tarnsman. 04/06/24 06:22 PM
Food Safety and Bad Roommates
by KRT_Bong. 04/04/24 02:16 AM
Copyright 1997-2016, SimHQ Inc. All Rights Reserved.

Powered by UBB.threads™ PHP Forum Software 7.6.0