Script for Final Fantasy X

Ask gaming related questions (AHK v1.1 and older)
aserrat
Posts: 1
Joined: 01 Dec 2021, 06:42

Script for Final Fantasy X

Post by aserrat » 01 Dec 2021, 06:59

Hello, first of all I want to clarify that I am quite a newbie in AHK.

I find myself trying to make the simplest script in the world, but still I can't make it work.
Currently I am playing Final Fantasy X and I find myself after defeating Seymour for the first time, when the Guado are chasing you, I am wanting to make a Script that only continuously press the {c} key to skip after the fighting (they are automatic already) and if you find an object, press {n}.

Code: Select all

#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1

; UserGlobalVars

F1::
Macro1:
MyVar = 0
Loop
{
if (MyVar = 0) {
	Sleep 20
	Send, {c down}
	Sleep 50
	MyVar++
} else {
	Sleep 20
	Send, {n down}
	Sleep 50
	MyVar--
}
}
Return
y::ExitApp
Try this way, but it doesn't work. Previously, I also tried using PixelSearch to constantly press {c} and when I found an object I pressed {n} but it didn't work either, in all cases when it found an object it was marked as if it forgot to press {n}.
Captura.JPG
Captura.JPG (174.56 KiB) Viewed 880 times
Help pleaseeeeee xD

Return to “Gaming Help (v1)”