Convert xdtool bash script to AHK for FF9

Ask gaming related questions (AHK v1.1 and older)
wytewash
Posts: 2
Joined: 17 Apr 2016, 01:44

Convert xdtool bash script to AHK for FF9

17 Apr 2016, 01:50

I found this old bash script for completing the jump rope game in FF9 and assumed it could be converted to AHK, but I've only used premade AHK scripts in the past with minor tweaking and was hoping someone could convert this over. Thank you for your time.

It was found here: http://pastebin.com/a5WXs4gW

Code: Select all

#!/bin/bash

sleep 2
xdotool keydown z
sleep 0.05
xdotool keyup z
printf "\a"
sleep 0.73

int=0.60;
for i in {1..100000}; do
	xdotool keydown z
	sleep 0.05
	xdotool keyup z
	printf "\a"
	
	if (($i==20)); then
		int=0.455;
	elif (($i==50)); then
		int=0.392;
	elif (($i==100)); then
		int=0.350;
	elif (($i==200)); then
		int=0.3065;
	elif (($i==300)); then
		int=0.320;
	fi
	sleep $int
done
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: Convert xdtool bash script to AHK for FF9

17 Apr 2016, 18:00

Code: Select all

sleep 2000
Send {z down}
sleep 5
Send {z up}
ToolTip `a
sleep 73
 
int:=6
Loop 100000 {
	Send {z down}
	sleep 5
	Send {z up}
	ToolTip `a
 
	if (A_Index=20)
		int:=455
	else if (A_Index=50)
		int:=392
	else if (A_Index=100)
		int:=350
	else if (A_Index=200)
		int:=307
	else if (A_Index=300)
		int:=320
	sleep % int
}

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: golge35 and 91 guests