Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- ;SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- ;SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- Gui, Add, Button, default, Start
- Gui, Add, Edit, vTEST w250, %buildings%
- Gui, Show,w420 h145, frame tester FGC
- DetectHiddenWindows, On
- 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?
- return
- ;
- Light()
- {
- SendEvent,, {u Down}
- SendEvent,, {u Up}
- }
- CrouchLight()
- {
- SendEvent,, {s Down}{u Down}
- SendEvent,, {u Up}{s Up}
- }
- Medium()
- {
- SendEvent,, {i Down}
- SendEvent,, {i Up}
- }
- CrouchMedium()
- {
- SendEvent,, {s Down}{i Down}
- SendEvent,, {i Up}{s Up}
- }
- Heavy()
- {
- SendEvent,, {o Down}
- SendEvent,, {o Up}
- }
- CrouchHeavy()
- {
- SendEvent,, {s Down}{o Down}
- SendEvent,, {o Up}{s Up}
- }
- Unique()
- {
- SendEvent,, {j Down}
- SendEvent,, {j Up}
- }
- CrouchUnique()
- {
- SendEvent,, {s Down}{j Down}
- SendEvent,, {j Up}{s Up}
- }
- dash(framesHeld, mirror)
- {
- if (mirror != true)
- {
- SendEvent,,{d Down}
- SendEvent,,{d Up}
- SendEvent,,{d Down}
- sleep framesHeld * 16
- SendEvent,,{d Up}
- }
- else
- {
- SendEvent,,{a Down}
- SendEvent,,{a Up}
- SendEvent,,{a Down}
- sleep framesHeld * 16
- SendEvent,,{a Up}
- }
- }
- Qcf(mirror)
- {
- if (mirror != true)
- {
- SendEvent,,{s Down}
- SendEvent,,{d Down}
- SendEvent,,{s Up}
- SendEvent,,{d Up}
- }
- else
- {
- SendEvent,,{s Down}
- SendEvent,,{a Down}
- SendEvent,,{s Up}
- SendEvent,,{a Up}
- }
- }
- Qcb(mirror)
- {
- if (mirror != true)
- {
- SendEvent,,{s Down}
- SendEvent,,{a Down}
- SendEvent,,{s Up}
- SendEvent,,{a Up}
- }
- else
- {
- SendEvent,,{s Down}
- SendEvent,,{d Down}
- SendEvent,,{s Up}
- SendEvent,,{d Up}
- }
- }
- DragonPunch(mirror)
- {
- if(mirror != true)
- {
- SendEvent,,{d Down}
- SendEvent,,{d Up}
- SendEvent,,{s Down}
- SendEvent,,{d Down}
- SendEvent,,{s Up}{d Up}
- }
- else
- {
- SendEvent,,{a Down}
- SendEvent,,{a Up}
- SendEvent,,{s Down}
- SendEvent,,{a Down}
- SendEvent,,{s Up}{a Up}
- }
- }
- DownDown()
- {
- SendEvent,,{s Down}
- SendEvent,,{s Up}
- SendEvent,,{s Down}
- SendEvent,,{s Up}
- }
- Throw()
- {
- SendEvent,,{f Down}
- SendEvent,,{f Up}
- }
- Overhead()
- {
- SendEvent,,{l Down} ;L
- SendEvent,,{l Up}
- }
- holdForward(framesHeld)
- {
- SendEvent,,{d Down}
- Sleep framesHeld * 16
- SendEvent,,{d Up}
- }
- wait(frames)
- {
- Sleep 16 * frames
- }
- record()
- {
- SendEvent,,{n Down}
- SendEvent,,{n Up}
- SendEvent,,{n Down}
- SendEvent,,{n Up}
- }
- stopRecord()
- {
- SendEvent,,{n Down}
- SendEvent,,{n Up}
- }
- +F1:: ; shift + F1
- ;################################################
- ;################################################
- ; #####
- ; START OF ACTUAL CODE #####
- ; #####
- ;################################################
- ;################################################
- buildings := 0
- ButtonStart:
- WinGet, remotePlay_id, ID, PS4 Remote Play
- WinGetClass, remotePlay_class, ahk_id %remotePlay_id%
- WinMove, PS4 Remote Play,, 0, 0,
- ControlFocus,, ahk_class %remotePlay_class%
- WinActivate, PS4 Remote Play
- ;This sets you on the correct window to work properly
- Sleep, 1000
- MouseMove, 100, 100
- MouseMove, -20, -30, 50, R
- Sleep 500
- ControlClick, x648 y530, PS4 Remote Play,,,, D ;
- Sleep 300
- ControlClick, x648 y530, PS4 Remote Play,,,, U ;
- Sleep 500
- ;Now here is where real inputs occur.
- ;SendEvent {u down} ; This will work in line but when done in a function it fails
- ;SendEvent {u up} ; For functions you should use the SendEvent,, {u up}
- ;Dashes forward for 30 frames or so. set to false so does not mirror inputs
- ;does 2U
- ;waits 40 frames after pressing 2U.
- ;performs 5L button press which triggers close Light
- dash(30,false)
- CrouchUnique()
- wait(40)
- Light()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement