Hi Logion
I have a similar set up to you, however I am using button 1Joy11 with shift button 1Joy10 to trigger CubPilot's TrackIR script.
In your case, i believe AHK needs to be told not to do anything if 1Joy6 is pressed together with either 1Joy9 or 1Joy10. I hope this works for you. I haven't been able to test it though, since I'm at work. Let me know how you go.
1Joy6::
If GetKeyState ("1Joy9", "P") ; if 1Joy6 and 1Joy9 is pressed, do nothing
{
return
}
Else
If GetKeyState ("1Joy10", "P") ; if 1Joy6 and 1Joy10 is pressed, do nothing
{
return
}
Else ; If only 1Joy6 is pressed, centre or pause TrackIR
{
KeyWait, %A_ThisHotKey% ; Wait for 1Joy6 to be released
x := A_TimeSinceThisHotkey ; Just assigning x here, for shorter "if's"
If (x < 500) ; If hotkey was held for less than 0.50 seconds, 500 ms
Send {F15} ; Send the key F15
Else if (x < 5000) ; If hotkey was held for more than 0.50 seconds, 500 ms & less than 5000 ms
Send {F16} ; Send the key F16
}
return
** Edit, just tested that and it doesn't work... sorry mate. I do however have it working on my HOTAS X without any conflicts, but my button layout could be different to yours. If you're interested in my control profile (slightly modified version of snafup's) and script let me know.