Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A5iBind7:
- {
- IfWinActive GTA5 and A5iBinder
- {
- Loop
- {
- GetKeyState, ShiftST, Shift
- If ShiftST = U
- Loop
- {
- GetKeyState, ControlST, Control
- If ControlST = U
- Loop
- {
- GetKeyState, AltST, Alt
- If AltST = U
- Goto, A5iBind7Continue
- Sleep 1
- }
- Sleep 1
- }
- Sleep 1
- }
- A5iBind7Continue:
- If Reg7Hotkey Contains ^
- Send, {Sleep 5}{LControl Down}{Sleep 3}{LControl Up}{Sleep 1}
- A5iBind7Nmb := 0
- Loop, 10
- {
- A5iBind7Nmb++
- GuiControl, IGM%A5iBind7Nmb%: Hide, MainIGMEnter
- GuiControl, IGM%A5iBind7Nmb%: Hide, MainIGMRShift
- }
- GuiControl, IGM11: Hide, 11IGMEnter
- GuiControl, IGM11: Hide, 11IGMRShift
- A5iBind7Nmb :=
- If NewRPPause = 1
- Sleep 1300
- NewRPPause = 0
- If A5iLang = 1
- GoSub, MainGuiLang
- WasAnRP = 0
- Loop, %Reg7String%
- {
- If (Reg7ButSet%A_Index%Command != "")
- {
- If (ClipBoard != "")
- ClipBoardRes := % ClipBoard
- ClipBoard := % Reg7ButSet%A_Index%Command
- IfWinNotActive GTA5 and A5iBinder
- {
- If (ClipBoardRes != "")
- ClipBoard := % ClipBoardRes
- ClipBoardRes :=
- If WasAnRP = 0
- SoundPlay, %StopSound%
- Break
- }
- If WasAnRP = 1
- {
- If (ClipBoardRes != "")
- ClipBoard := % ClipBoardRes
- ClipBoardRes :=
- Break
- }
- If (Reg7ButSet%A_Index%Enter = "1")
- {
- BlockInput, On
- Send, {VK54 Down}{VK54 Up}
- GetKeyState, 54St, VK54
- If 54St = U
- {
- If RegCheckTSLag != 1
- Send, {Sleep 3}{RControl Down}{Sleep 1}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 1}{RControl Up}{Sleep 1}
- Else
- Send, {Sleep 5}{RControl Down}{Sleep 2}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 2}{RControl Up}{Sleep 1}
- Send, {Enter}{Sleep 1}
- }
- Else
- {
- Loop
- {
- GetKeyState, 54St, VK54
- If 54St = U
- Break
- Sleep 1
- }
- If RegCheckTSLag != 1
- Send, {Sleep 3}{RControl Down}{Sleep 1}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 1}{RControl Up}{Sleep 1}{Enter}{Sleep 1}
- Else
- Send, {Sleep 5}{RControl Down}{Sleep 2}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 2}{RControl Up}{Sleep 1}{Enter}{Sleep 1}
- }
- NewRPPause = 1
- BlockInput, Off
- }
- If (Reg7ButSet%A_Index%Enter = "0")
- {
- BlockInput, On
- Send, {VK54 Down}{VK54 Up}
- GetKeyState, 54St, VK54
- If 54St = U
- {
- If A5iLang = 1
- {
- If Reg7ButSet%A_Index%Command Contains [курсор]
- {
- RegExMatch(Reg7ButSet%A_Index%Command, "(.*)\[курсор](.*)", A5iBindCursor)
- If RegCheckTSLag != 1
- Send, {Sleep 3}{RControl Down}{Sleep 1}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 1}{RControl Up}{Sleep 1}
- Else
- Send, {Sleep 5}{RControl Down}{Sleep 2}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 2}{RControl Up}{Sleep 1}
- Send, % "{Left " StrLen(A5iBindCursor2) "}" "{VK08 8}"
- }
- Else
- {
- If RegCheckTSLag != 1
- Send, {Sleep 3}{RControl Down}{Sleep 1}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 1}{RControl Up}{Sleep 1}
- Else
- Send, {Sleep 5}{RControl Down}{Sleep 2}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 2}{RControl Up}{Sleep 1}
- }
- }
- If A5iLang = 2
- {
- If Reg7ButSet%A_Index%Command Contains [cursor]
- {
- RegExMatch(Reg7ButSet%A_Index%Command, "(.*)\[cursor](.*)", A5iBindCursor)
- If RegCheckTSLag != 1
- Send, {Sleep 3}{RControl Down}{Sleep 1}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 1}{RControl Up}{Sleep 1}
- Else
- Send, {Sleep 5}{RControl Down}{Sleep 2}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 2}{RControl Up}{Sleep 1}
- Send, % "{Left " StrLen(A5iBindCursor2) "}" "{VK08 8}"
- }
- Else
- {
- If RegCheckTSLag != 1
- Send, {Sleep 3}{RControl Down}{Sleep 1}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 1}{RControl Up}{Sleep 1}
- Else
- Send, {Sleep 5}{RControl Down}{Sleep 2}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 2}{RControl Up}{Sleep 1}
- }
- }
- }
- Else
- {
- Loop
- {
- GetKeyState, 54St, VK54
- If 54St = U
- Break
- Sleep 1
- }
- If A5iLang = 1
- {
- If Reg7ButSet%A_Index%Command Contains [курсор]
- {
- RegExMatch(Reg7ButSet%A_Index%Command, "(.*)\[курсор](.*)", A5iBindCursor)
- If RegCheckTSLag != 1
- Send, {Sleep 3}{RControl Down}{Sleep 1}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 1}{RControl Up}{Sleep 1}
- Else
- Send, {Sleep 5}{RControl Down}{Sleep 2}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 2}{RControl Up}{Sleep 1}
- Send, % "{Left " StrLen(A5iBindCursor2) "}" "{VK08 8}"
- }
- Else
- {
- If RegCheckTSLag != 1
- Send, {Sleep 3}{RControl Down}{Sleep 1}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 1}{RControl Up}{Sleep 1}
- Else
- Send, {Sleep 5}{RControl Down}{Sleep 2}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 2}{RControl Up}{Sleep 1}
- }
- }
- If A5iLang = 2
- {
- If Reg7ButSet%A_Index%Command Contains [cursor]
- {
- RegExMatch(Reg7ButSet%A_Index%Command, "(.*)\[cursor](.*)", A5iBindCursor)
- If RegCheckTSLag != 1
- Send, {Sleep 3}{RControl Down}{Sleep 1}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 1}{RControl Up}{Sleep 1}
- Else
- Send, {Sleep 5}{RControl Down}{Sleep 2}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 2}{RControl Up}{Sleep 1}
- Send, % "{Left " StrLen(A5iBindCursor2) "}" "{VK08 8}"
- }
- Else
- {
- If RegCheckTSLag != 1
- Send, {Sleep 3}{RControl Down}{Sleep 1}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 1}{RControl Up}{Sleep 1}
- Else
- Send, {Sleep 5}{RControl Down}{Sleep 2}{VK56 Down}{Sleep 1}{VK56 Up}{Sleep 2}{RControl Up}{Sleep 1}
- }
- }
- }
- If (ClipBoardRes != "")
- ClipBoard := % ClipBoardRes
- BlockInput, Off
- A5iBind7Nmb := 0
- Loop, 10
- {
- A5iBind7Nmb++
- GuiControl, IGM%A5iBind7Nmb%: Show, MainIGMEnter
- }
- GuiControl, IGM11: Show, 11IGMEnter
- A5iBind7Nmb :=
- SoundPlay, %EntWaitSound%
- Loop
- {
- If WasAnRP = 1
- Goto, A5iBind7Stop
- GetKeyState, EntSt, Enter
- If EntSt = D
- {
- IfWinActive GTA5 and A5iBinder
- Loop
- {
- If WasAnRP = 1
- Goto, A5iBind7Stop
- GetKeyState, EntSt, Enter
- If EntSt = U
- {
- NewRPPause = 1
- A5iBind7Nmb := 0
- Loop, 10
- {
- A5iBind7Nmb++
- GuiControl, IGM%A5iBind7Nmb%: Hide, MainIGMEnter
- }
- GuiControl, IGM11: Hide, 11IGMEnter
- A5iBind7Nmb :=
- SoundPlay, %WaitCompleteSound%
- Goto, Enter7Continue
- }
- Sleep 1
- }
- }
- Sleep 1
- }
- Enter7Continue:
- If (ClipBoard != "")
- ClipBoardRes := % ClipBoard
- }
- }
- IfWinNotActive GTA5 and A5iBinder
- {
- If (ClipBoardRes != "")
- ClipBoard := % ClipBoardRes
- ClipBoardRes :=
- If WasAnRP = 0
- SoundPlay, %StopSound%
- Break
- }
- If WasAnRP = 1
- {
- If (ClipBoardRes != "")
- ClipBoard := % ClipBoardRes
- ClipBoardRes :=
- Break
- }
- If (Reg7ButSet%A_Index%Screen = "1")
- {
- Sleep 300
- GoSub, A5iScreenshot
- }
- IfWinNotActive GTA5 and A5iBinder
- {
- If (ClipBoardRes != "")
- ClipBoard := % ClipBoardRes
- ClipBoardRes :=
- If WasAnRP = 0
- SoundPlay, %StopSound%
- Break
- }
- If WasAnRP = 1
- {
- If (ClipBoardRes != "")
- ClipBoard := % ClipBoardRes
- ClipBoardRes :=
- Break
- }
- If (Reg7ButSet%A_Index%RShift = "1")
- {
- If (ClipBoardRes != "")
- ClipBoard := % ClipBoardRes
- A5iBind7Nmb := 0
- Loop, 10
- {
- A5iBind7Nmb++
- GuiControl, IGM%A5iBind7Nmb%: Show, MainIGMRShift
- }
- GuiControl, IGM11: Show, 11IGMRShift
- A5iBind7Nmb :=
- SoundPlay, %ShWaitSound%
- Loop
- {
- If WasAnRP = 1
- Goto, A5iBind7Stop
- GetKeyState, RShSt, RShift
- If RShSt = D
- {
- IfWinActive GTA5 and A5iBinder
- Loop
- {
- If WasAnRP = 1
- Goto, A5iBind7Stop
- GetKeyState, RShSt, RShift
- If RShSt = U
- {
- NewRPPause = 1
- A5iBind7Nmb := 0
- Loop, 10
- {
- A5iBind7Nmb++
- GuiControl, IGM%A5iBind7Nmb%: Hide, MainIGMRShift
- }
- GuiControl, IGM11: Hide, 11IGMRShift
- A5iBind7Nmb :=
- SoundPlay, %WaitCompleteSound%
- Goto, RShift7Continue
- }
- Sleep 1
- }
- }
- Sleep 1
- }
- RShift7Continue:
- If (ClipBoard != "")
- ClipBoardRes := % ClipBoard
- }
- If (ClipBoardRes != "")
- {
- ClipBoard := % ClipBoardRes
- ClipBoardRes :=
- }
- If (Reg7ButSet%A_Index%Screen = "1")
- {
- Res7ButSetDelay = % Reg7ButSet%A_Index%Delay
- Reg7ButSet%A_Index%Delay := Reg7ButSet%A_Index%Delay - 300
- If Reg7ButSet%A_Index%Delay <= 0
- Reg7ButSet%A_Index%Delay = 1
- Sleep % Reg7ButSet%A_Index%Delay
- Reg7ButSet%A_Index%Delay = %Res7ButSetDelay%
- Res7ButSetDelay :=
- }
- Else
- Sleep % Reg7ButSet%A_Index%Delay
- NewRPPause = 0
- }
- A5iBind7Stop:
- NewRPPause = 0
- WasAnRP = 1
- If (ClipBoardRes != "")
- {
- ClipBoard := % ClipBoardRes
- ClipBoardRes :=
- }
- A5iBind7Nmb := 0
- Loop, 10
- {
- A5iBind7Nmb++
- GuiControl, IGM%A5iBind7Nmb%: Hide, MainIGMEnter
- GuiControl, IGM%A5iBind7Nmb%: Hide, MainIGMRShift
- }
- GuiControl, IGM11: Hide, 11IGMEnter
- GuiControl, IGM11: Hide, 11IGMRShift
- A5iBind7Nmb :=
- }
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement