Advertisement
Guest User

frame tester FGC PS4

a guest
Feb 17th, 2020
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn  ; Enable warnings to assist with detecting common errors.
  3. ;SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. ;SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5. Gui, Add, Button, default, Start
  6. Gui, Add, Edit, vTEST w250, %buildings%
  7. Gui, Show,w420 h145, frame tester FGC
  8. DetectHiddenWindows, On
  9. SetKeyDelay, 20 ; at 100 the button didn't get stuck. so is it the button delay or is it something else causing it to get stuck?
  10. return
  11. ;
  12.  
  13. Light()
  14. {
  15. SendEvent,, {u Down}
  16. SendEvent,, {u Up}
  17. }
  18. CrouchLight()
  19. {
  20. SendEvent,, {s Down}{u Down}
  21. SendEvent,, {u Up}{s Up}
  22. }
  23. Medium()
  24. {
  25. SendEvent,, {i Down}
  26. SendEvent,, {i Up}
  27. }
  28. CrouchMedium()
  29. {
  30. SendEvent,, {s Down}{i Down}
  31. SendEvent,, {i Up}{s Up}
  32. }
  33. Heavy()
  34. {
  35. SendEvent,, {o Down}
  36. SendEvent,, {o Up}
  37. }
  38. CrouchHeavy()
  39. {
  40. SendEvent,, {s Down}{o Down}
  41. SendEvent,, {o Up}{s Up}
  42. }
  43. Unique()
  44. {
  45. SendEvent,, {j Down}
  46. SendEvent,, {j Up}
  47. }
  48. CrouchUnique()
  49. {
  50. SendEvent,, {s Down}{j Down}
  51. SendEvent,, {j Up}{s Up}
  52. }
  53.  
  54. dash(framesHeld, mirror)
  55. {
  56.     if (mirror != true)
  57.     {
  58.         SendEvent,,{d Down}
  59.         SendEvent,,{d Up}
  60.         SendEvent,,{d Down}
  61.         sleep framesHeld * 16
  62.         SendEvent,,{d Up}
  63.     }
  64.     else
  65.     {
  66.         SendEvent,,{a Down}
  67.         SendEvent,,{a Up}
  68.         SendEvent,,{a Down}
  69.         sleep framesHeld * 16
  70.         SendEvent,,{a Up}
  71.     }
  72. }
  73. Qcf(mirror)
  74. {
  75.     if (mirror != true)
  76.     {
  77.         SendEvent,,{s Down}
  78.         SendEvent,,{d Down}
  79.         SendEvent,,{s Up}
  80.         SendEvent,,{d Up}
  81.     }
  82.     else
  83.     {
  84.         SendEvent,,{s Down}
  85.         SendEvent,,{a Down}
  86.         SendEvent,,{s Up}
  87.         SendEvent,,{a Up}
  88.     }
  89. }
  90. Qcb(mirror)
  91. {
  92.     if (mirror != true)
  93.     {
  94.         SendEvent,,{s Down}
  95.         SendEvent,,{a Down}
  96.         SendEvent,,{s Up}
  97.         SendEvent,,{a Up}
  98.     }
  99.     else
  100.     {
  101.         SendEvent,,{s Down}
  102.         SendEvent,,{d Down}
  103.         SendEvent,,{s Up}
  104.         SendEvent,,{d Up}
  105.     }
  106. }
  107. DragonPunch(mirror)
  108. {  
  109.     if(mirror != true)
  110.     {
  111.         SendEvent,,{d Down}
  112.         SendEvent,,{d Up}
  113.         SendEvent,,{s Down}
  114.         SendEvent,,{d Down}
  115.         SendEvent,,{s Up}{d Up}
  116.     }
  117.     else
  118.     {
  119.         SendEvent,,{a Down}
  120.         SendEvent,,{a Up}
  121.         SendEvent,,{s Down}
  122.         SendEvent,,{a Down}
  123.         SendEvent,,{s Up}{a Up}
  124.     }
  125. }
  126. DownDown()
  127. {
  128.     SendEvent,,{s Down}
  129.     SendEvent,,{s Up}
  130.     SendEvent,,{s Down}
  131.     SendEvent,,{s Up}
  132. }
  133. Throw()
  134. {
  135.     SendEvent,,{f Down}
  136.     SendEvent,,{f Up}
  137. }
  138. Overhead()
  139. {
  140.     SendEvent,,{l Down} ;L
  141.     SendEvent,,{l Up}
  142. }
  143. holdForward(framesHeld)
  144. {
  145.     SendEvent,,{d Down}
  146.     Sleep framesHeld * 16
  147.     SendEvent,,{d Up}
  148. }
  149.  
  150. wait(frames)
  151. {
  152.     Sleep 16 * frames
  153. }
  154.  
  155. record()
  156. {
  157.     SendEvent,,{n Down}
  158.     SendEvent,,{n Up}
  159.     SendEvent,,{n Down}
  160.     SendEvent,,{n Up}
  161. }
  162.    
  163. stopRecord()
  164. {
  165.     SendEvent,,{n Down}
  166.     SendEvent,,{n Up}
  167. }
  168.  
  169. +F1:: ; shift + F1
  170.  
  171. ;################################################
  172. ;################################################
  173. ;                                           #####
  174. ; START OF ACTUAL CODE                      #####
  175. ;                                           #####
  176. ;################################################
  177. ;################################################
  178.  
  179.  
  180. buildings := 0
  181.  
  182.  
  183.  
  184.  
  185. ButtonStart:
  186. WinGet, remotePlay_id, ID, PS4 Remote Play
  187. WinGetClass, remotePlay_class, ahk_id %remotePlay_id%
  188. WinMove, PS4 Remote Play,, 0, 0,
  189. ControlFocus,, ahk_class %remotePlay_class%
  190. WinActivate, PS4 Remote Play
  191.  
  192. ;This sets you on the correct window to work properly
  193.   Sleep, 1000
  194.   MouseMove, 100, 100
  195.    MouseMove, -20, -30, 50, R
  196.   Sleep 500
  197.   ControlClick, x648 y530, PS4 Remote Play,,,, D ;
  198.   Sleep 300
  199.   ControlClick, x648 y530, PS4 Remote Play,,,, U ;
  200.   Sleep 500
  201. ;Now here is where real inputs occur.  
  202.  
  203.  
  204.   ;SendEvent {u down} ; This will work in line but when done in a function it fails
  205.   ;SendEvent {u up}   ; For functions you should use the SendEvent,, {u up}
  206.  
  207.   ;Dashes forward for 30 frames or so. set to false so does not mirror inputs
  208.   ;does 2U
  209.   ;waits 40 frames after pressing 2U.
  210.   ;performs 5L button press which triggers close Light
  211.   dash(30,false)
  212.   CrouchUnique()
  213.   wait(40)
  214.   Light()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement