Windturbin
1st September 2008, 11:17 PM
Hi Bob, or anyone who can help.....
I use to have some of my fighter stick buttons scripted to do some zoom out exterior views for IL2.
I recently changed them over to my throttle buttons. By doing so, I lose control of my mouse when downloading my map. It takes off to the upper left hand corner.
I had the same problem at first when I was using my fighter stick, but was able to get it to work after re-calibrating and adjusting the mouse sensitivity. Not this time, can't seem to figure it out.
JS1 = Device 1 = my pedals
JS2 = Device 2 = my throttle
My script.......
// IL_2 1946 CMS Script File
SCRIPT
// Peusdo/Revvins IL2 pedal toe brake script
IF ([JS1.A1 > JS1.A2]) then // left pedal is applied (greater than right pedal?)
CMS.A3 = JS1.A1; // CM device 2 R axis = toe brake a1
ELSE
CMS.A3 = JS1.A2; // CM device 2 U axis = toe brake a2
ENDIF
SEQUENCE // IL2 Map and mouse pointer script
WAIT( JS2.B1 ); // Wait for button 1 to be pressed on the Pro Throttle
DELAY( 3 ); // Wait approx an eighth of a second
SCREENX=900; // Move cursor to map pop up window
SCREENY=200;
DELAY( 3 ); // Wait approx an eighth of a second
CMS.B2 = TRUE; // Left Mouse Button is held down
WAIT( JS2.B1 ); // Wait for button 1 to be pressed again on the Pro Throttle
DELAY( 3 ); // Wait approx an eighth of a second
CMS.B2 = FALSE; // Left Mouse button is released
ENDSEQUENCE
sequence // External view and zoom out script
wait( js2.b3 ); // Wait for Button 3
b1 = TRUE; // Flag the fact that the sequence has started
cms.b5 = TRUE; // Turn on CMS Button 5, which is prograned as keystrock F2 exterior view
delay( 1 ); // Give it time for the F2
cms.b5 = FALSE; // Turn off CMS Button 5 so doesn't repeat
cms.b2 = TRUE; // Turn on the mouse button
cms.a1 = 128; // Set CMS Axis 1 to 128 (will center the X)
cms.a2 = 85; // Set CMS Axis 2 to move the mouse "Up"
delay( 10 ); // Let it move
cms.b2 = FALSE; // Turn off the mouse button
b1 = FALSE; // CLEAR THE "IN-SEQUENCE FLAG
endSequence
if( NOT b1 ) then // If it's not in the sequence, use the microstick
cms.a1 = js1.a1; // Force CMS Axes 1 and 2 to use the
cms.a2 = js1.a2; // ministick when not running the sequence.
endif
sequence //Chase view and zoom out script
wait( js2.b4 ); // Wait for Button 4
b1 = TRUE; // Flag the fact that the sequence has started
cms.b4 = TRUE; // Turn on CMS Button 4, sends F8
delay( 3 ); // Give it time for the F8
cms.b4 = FALSE; // Turn off CMS Button 4 so F8 doesn't repeat
cms.b2 = TRUE; // Turn on the mouse button
cms.a1 = 128; // Set CMS Axis 1 to 128 (will center the X)
cms.a2 = 85; // Set CMS Axis 2 to move the mouse "Up"
delay( 10 ); // Let it move
cms.b2 = FALSE; // Turn off the mouse button
b1 = FALSE; // Clear the "in-sequence" flag
endSequence
if( NOT b1 ) then // If it's not in the sequence, use the microstick
cms.a1 = js1.a1; // Force CMS Axes 1 and 2 to use the
cms.a2 = js1.a2; // ministick when not running the sequence.
endif
endScript
The only way my mouse does not go spastic after downloading the map is if i lower my mouse sensitivity down to 15, but then the zoom -scripts do not zoom.
Please help. :confused:
I use to have some of my fighter stick buttons scripted to do some zoom out exterior views for IL2.
I recently changed them over to my throttle buttons. By doing so, I lose control of my mouse when downloading my map. It takes off to the upper left hand corner.
I had the same problem at first when I was using my fighter stick, but was able to get it to work after re-calibrating and adjusting the mouse sensitivity. Not this time, can't seem to figure it out.
JS1 = Device 1 = my pedals
JS2 = Device 2 = my throttle
My script.......
// IL_2 1946 CMS Script File
SCRIPT
// Peusdo/Revvins IL2 pedal toe brake script
IF ([JS1.A1 > JS1.A2]) then // left pedal is applied (greater than right pedal?)
CMS.A3 = JS1.A1; // CM device 2 R axis = toe brake a1
ELSE
CMS.A3 = JS1.A2; // CM device 2 U axis = toe brake a2
ENDIF
SEQUENCE // IL2 Map and mouse pointer script
WAIT( JS2.B1 ); // Wait for button 1 to be pressed on the Pro Throttle
DELAY( 3 ); // Wait approx an eighth of a second
SCREENX=900; // Move cursor to map pop up window
SCREENY=200;
DELAY( 3 ); // Wait approx an eighth of a second
CMS.B2 = TRUE; // Left Mouse Button is held down
WAIT( JS2.B1 ); // Wait for button 1 to be pressed again on the Pro Throttle
DELAY( 3 ); // Wait approx an eighth of a second
CMS.B2 = FALSE; // Left Mouse button is released
ENDSEQUENCE
sequence // External view and zoom out script
wait( js2.b3 ); // Wait for Button 3
b1 = TRUE; // Flag the fact that the sequence has started
cms.b5 = TRUE; // Turn on CMS Button 5, which is prograned as keystrock F2 exterior view
delay( 1 ); // Give it time for the F2
cms.b5 = FALSE; // Turn off CMS Button 5 so doesn't repeat
cms.b2 = TRUE; // Turn on the mouse button
cms.a1 = 128; // Set CMS Axis 1 to 128 (will center the X)
cms.a2 = 85; // Set CMS Axis 2 to move the mouse "Up"
delay( 10 ); // Let it move
cms.b2 = FALSE; // Turn off the mouse button
b1 = FALSE; // CLEAR THE "IN-SEQUENCE FLAG
endSequence
if( NOT b1 ) then // If it's not in the sequence, use the microstick
cms.a1 = js1.a1; // Force CMS Axes 1 and 2 to use the
cms.a2 = js1.a2; // ministick when not running the sequence.
endif
sequence //Chase view and zoom out script
wait( js2.b4 ); // Wait for Button 4
b1 = TRUE; // Flag the fact that the sequence has started
cms.b4 = TRUE; // Turn on CMS Button 4, sends F8
delay( 3 ); // Give it time for the F8
cms.b4 = FALSE; // Turn off CMS Button 4 so F8 doesn't repeat
cms.b2 = TRUE; // Turn on the mouse button
cms.a1 = 128; // Set CMS Axis 1 to 128 (will center the X)
cms.a2 = 85; // Set CMS Axis 2 to move the mouse "Up"
delay( 10 ); // Let it move
cms.b2 = FALSE; // Turn off the mouse button
b1 = FALSE; // Clear the "in-sequence" flag
endSequence
if( NOT b1 ) then // If it's not in the sequence, use the microstick
cms.a1 = js1.a1; // Force CMS Axes 1 and 2 to use the
cms.a2 = js1.a2; // ministick when not running the sequence.
endif
endScript
The only way my mouse does not go spastic after downloading the map is if i lower my mouse sensitivity down to 15, but then the zoom -scripts do not zoom.
Please help. :confused: