View Full Version : Hold mouse btn for F/A-18
Dirk98
03-02-2005, 10:39 AM
Hello guys, hello Bob,
Pls, need to assign a button on my FS which when I click it holds down the RMB, then the next time I click it, releases it.
Also need the pinkie btn to work both SHIFT (depress and hold) and as a normal button when just click and relese.
Many thanks.
Dirk.
Dirk98
03-02-2005, 10:40 AM
Maybe I'll use it on my PT have not decided yet.
Bob Church
03-02-2005, 01:11 PM
Hi Dirk,
Okay. You need to add the CMS controls, then set up a script something like this:
script
// Mouse Button Toggle
//
toggle( d1 ) = js1.b2;
cms.b1 = d1;
// Shift/Click
//
timer( PERIOD, d3, 5 ) = js1.b4;
cms.b2 = d3 AND NOT js1.b4; // quick button
cms.b3 = js1.b4 AND NOT d3; // shift button
endScript
The first section just toggles d1 anytime js1.b2 is clicked. You need to change that to whichever button you really want to use, and you'll need to unassign it from the joystick so whatever you replace js1.b2 with doesn't operate a button directly. You also need Button 1 on the CMS Controls tab to "Mouse" and "Button 2".
You can test it if you click it on an empty section of the desktop. The second time you do it you'll get the usual right-click menu. Windows doesn't actually respond until the mouse button is released so it's a little strange at first. The right button is down on the first click, though.
For the short/long click, the second section is about the easiest way to do it. The "5" in the timer statement determines what's short and what's long.
You need to assign Button 2 in the CMS Controls to CM Device 1, Button 4 to replace the regular pinky button output. The regular pinky button needs to be cleared so it doesn't send anything on its own.
Button 3 in the CMS Controls needs to be tagged as the shift button, but not really assigned to do anything.
Hope this helps!
Best regards,
- Bob
The StickWorks
http://www.stickworks.com
Dirk98
03-02-2005, 03:54 PM
Thanks so much, Bob. I still can't believe how fast you answer all posts here, and my only guess is: you post the answers justl lil before we post questions, don't you? :D
:cheers: :cheers: :cheers:
Bob Church
04-02-2005, 11:52 PM
Hi Dirk,
>> Thanks so much, Bob.<<
You're quite welcome, Dirk!
>> I still can't believe how fast you answer all posts here, and my only guess is: you post the answers justl lil before we post questions, don't you? <<
You've found me out. :)
Have fun with it!
Best regards,
- Bob
The StickWorks
http://www.stickworks.com
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.