Main > Lightguns
Use RCPS3 Move Games with Lightgun using scripts
<< < (11/39) > >>
Jayinem:
I read if Esc:ExitApp isn't working you need to add Return to the end of the script before it. Seems to work good. So it would be like this

#SingleInstance Force
run rpcs3.exe D:\Pawn\Downloads\rpcs3-v0.0.11-10807-9a51f222_win64\BLUS30528\PS3_GAME\USRDIR\EBOOT.BIN
Run nomousy.bat

q::
    MouseGetPos, , , win
    maxWindow("ahk_id " win)
return

maxWindow(title) {
    WinMove, % title, , 0, 0, % A_ScreenWidth, % A_ScreenHeight
    WinActivate, % title
    WinSet, Style, -0xC00000, % title
    WinSet, Style, -0x40000, % title
    WinSet, AlwaysOnTop, Off, % title
}

c::
Send {RButton Down}
Send {LButton Down}
Sleep, 60
Send {LButton Up}
Send {RButton Up}

v::
Send {RButton Down}
Send {MButton Down}
Sleep, 60
Send {MButton Up}
Send {RButton Up}

a::
send {RButton}
send {MButton}

Runwait nomousy.exe
Return

Esc::ExitApp

Jayinem:
Esc:ExitApp just gives me problems, because I already have an exit script in the same script, so it conflicts and I can't even exit with escape. So then the ahk stays open and messes with my keyboard/mouse after the game is closed due to the script.  There's got to be a way to force AHK to exit and be able to escape the game.
Jayinem:
Ok after hours of testing and googling, this is a good script IMO. It closes the ahk when you exit rpcs3. It also gives your mouse cursor back if you use nomousy after you close, and you can exit. So it was everything I wanted at least. However, I'm having trouble with the keyboards c v and a so I still use mouse to get past calibration.

#SingleInstance Force
run rpcs3.exe Enter Your Path To BLUS30528 HERE\BLUS30528\PS3_GAME\USRDIR\EBOOT.BIN
Run nomousy.bat

q::
    MouseGetPos, , , win
    maxWindow("ahk_id " win)
return

maxWindow(title) {
    WinMove, % title, , 0, 0, % A_ScreenWidth, % A_ScreenHeight
    WinActivate, % title
    WinSet, Style, -0xC00000, % title
    WinSet, Style, -0x40000, % title
    WinSet, AlwaysOnTop, Off, % title
}

c::
Send {RButton Down}
Send {LButton Down}
Sleep, 60
Send {LButton Up}
Send {RButton Up}

v::
Send {RButton Down}
Send {MButton Down}
Sleep, 60
Send {MButton Up}
Send {RButton Up}

a::
send {RButton}
send {MButton}

ESC::
 Send !{f4}
Runwait nomousy.exe
ExitApp
Jayinem:
Ok this is my final script because I fixed the keyboard you can hit a and then c+v after you calibrate and it works. It does everything I can think of. I am putting it in the OP.

#SingleInstance Force
run rpcs3.exe Your Path to BLUS30528 Goes Here\BLUS30528\PS3_GAME\USRDIR\EBOOT.BIN
Run nomousy.bat

q::
    MouseGetPos, , , win
    maxWindow("ahk_id " win)
return

maxWindow(title) {
    WinMove, % title, , 0, 0, % A_ScreenWidth, % A_ScreenHeight
    WinActivate, % title
    WinSet, Style, -0xC00000, % title
    WinSet, Style, -0x40000, % title
    WinSet, AlwaysOnTop, Off, % title
}

c::
Send {RButton Down}
Send {LButton Down}
Sleep, 60
Send {LButton Up}
Send {RButton Up}

v::
Send {RButton Down}
Send {MButton Down}
Sleep, 60
Send {MButton Up}
Send {RButton Up}

a::
send {RButton Down}
send {MButton Down}

ESC::
 Send !{f4}
Runwait nomousy.exe
ExitApp
Jayinem:
I updated the first post to explain the whole process better if someone new to this comes along.
Navigation
Message Index
Next page
Previous page

Go to full version