Sign in to follow this  
Followers 0
scipy

Help with Joystick UDF

1 post in this topic

I have a question. Which command would one use to send an "axis press"-type action? For example:

if $coord[$i] = "16" Then
           Send("{c down}")
           sleep(10)
           Send("{s down}")
           sleep(5)
           Send("{s up}")
           Sleep(10)
           Send("{c up}")
           Sleep(100)
EndIf

Now, instead of sending a keystroke for C, I'd need a command that would press and then release one of the axis to a certain value (from my understanding this ranges from 0 to 65535) but I'd like to be able to press only 50-80 % of the full axis travel.

If anyone has any idea, I'd be very grateful.

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0