so this is what it looks like
Spoiler
Code: Select all
#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 1
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1
1Joy6::
SetTimer, T1Joy6, 100
LEFTSIDE:
Send {d down}
Sleep, 63
Send {d up}
Sleep, 32
Send {s down}
Sleep, 62
Send {s up}
Send {d down}
Sleep, 16
Send {s down}
Sleep, 50
Send {d up}
Send {s up}
Send {u down}
Send {k down}
Sleep, 80
Send {u up}
Send {k up}
Sleep, 1200
Send {i down}
Sleep, 100
Send {i up}
Send {u down}
Sleep, 100
Send {u up}
Sleep, 50
Send {u down}
Send {i down}
Send {j down}
Sleep, 100
Send {u up}
Send {i up}
Send {j up}
Sleep, 900
Send {u down}
Send {j down}
Sleep, 50
Send {u up}
Send {j up}
Sleep, 50
Send {j down}
Send {k down}
Sleep, 50
Send {j up}
Send {k up}
Sleep, 50
Send {i down}
Send {k down}
Sleep, 50
Send {i up}
Send {k up}
Sleep, 50
Send {i down}
Send {u down}
Sleep, 50
Send {i up}
Send {u up}
Sleep, 50
Send {u down}
Send {i down}
Send {j down}
Sleep, 50
Send {u up}
Send {i up}
Send {j up}
Sleep, 90
SetTimer, T1Joy6, Off
return
T1Joy6:
KeyWait, 1Joy6, T.02
If ErrorLevel
Return
Reload
thanks alot for the reply will try it out and get back to u fingers crossedRohwedder wrote:Hallo,
only a try! I have no joystick, I can't test it.
Please tell if it works or not.Code: Select all
#NoEnv SetWorkingDir %A_ScriptDir% CoordMode, Mouse, Window SendMode Input #SingleInstance Force SetTitleMatchMode 1 SetControlDelay 1 SetWinDelay 0 SetKeyDelay -1 SetMouseDelay -1 SetBatchLines -1 1Joy6:: SetTimer, T1Joy6, 100 LEFTSIDE: Send {d down} Sleep, 63 Send {d up} Sleep, 32 Send {s down} Sleep, 62 Send {s up} Send {d down} Sleep, 16 Send {s down} Sleep, 50 Send {d up} Send {s up} Send {u down} Send {k down} Sleep, 80 Send {u up} Send {k up} Sleep, 1200 Send {i down} Sleep, 100 Send {i up} Send {u down} Sleep, 100 Send {u up} Sleep, 50 Send {u down} Send {i down} Send {j down} Sleep, 100 Send {u up} Send {i up} Send {j up} Sleep, 900 Send {u down} Send {j down} Sleep, 50 Send {u up} Send {j up} Sleep, 50 Send {j down} Send {k down} Sleep, 50 Send {j up} Send {k up} Sleep, 50 Send {i down} Send {k down} Sleep, 50 Send {i up} Send {k up} Sleep, 50 Send {i down} Send {u down} Sleep, 50 Send {i up} Send {u up} Sleep, 50 Send {u down} Send {i down} Send {j down} Sleep, 50 Send {u up} Send {i up} Send {j up} Sleep, 90 SetTimer, T1Joy6, Off return T1Joy6: KeyWait, 1Joy6, T.02 If ErrorLevel Return Reload
Code: Select all
T1Joy5:
KeyWait, 1Joy5, T.02
If ErrorLevel
Return
Reload
Code: Select all
1Joy6::
KeyWait, 1Joy6, T.02
If ErrorLevel
Return
Loop, Parse,% "dijksu" ;all buttons that could be down
Send, {%A_LoopField% Up}
Reload
Rohwedder wrote:Hallo,
then make all keys that could be Down, before the Reload, Up:Code: Select all
1Joy6:: KeyWait, 1Joy6, T.02 If ErrorLevel Return Loop, Parse,% "dijksu" ;all buttons that could be down Send, {%A_LoopField% Up} Reload
so how would i go about this i would of expected there to be a super simple code for run code only while holding specific key since stuff like razer synapse etc even has this featureRohwedder wrote:Just make a hotkey special for the up setting of all sticky keys. In my main script it is the control which makes this problem.
Users browsing this forum: No registered users and 66 guests