Age of Empires II: Definitive Edition macros

Post gaming related scripts
Player
Posts: 7
Joined: 03 Feb 2018, 15:21

Age of Empires II: Definitive Edition macros

15 Nov 2019, 16:03

Code: Select all

Toggle = 0
#MaxThreadsPerHotkey 2
delay = 1

Numpad1:: ;create villagers
Toggle := !Toggle
While Toggle{
	SendInput, h
	sleep delay
	SendInput, g
	sleep delay
	SendInput, q
	sleep delay
}
return

Numpad2:: ;move idle villagers
Toggle := !Toggle
While Toggle{
	SendInput, .
	sleep delay
	Click, right
}
return

Numpad3:: ;kill idle villagers
Toggle := !Toggle
While Toggle{
	SendInput, .{delete}
	sleep delay
}
return

Numpad4:: ;create halberdiers
Toggle := !Toggle
While Toggle{
	SendInput, {Ctrl down}
	sleep delay
	SendInput, b
	sleep delay 
	SendInput, {Ctrl up}
	sleep delay
	Click, right
	sleep delay
	SendInput, g
	sleep delay
	SendInput, w
	sleep delay
}
return

Numpad5:: ;create skirmishers
Toggle := !Toggle
While Toggle{
	SendInput, {Ctrl down}
	sleep delay
	SendInput, a
	sleep delay 
	SendInput, {Ctrl up}
	sleep delay
	Click, right
	sleep delay
	SendInput, g
	sleep delay
	SendInput, w
	sleep delay
}
return

Numpad6:: ;create unique unit
Toggle := !Toggle
While Toggle{
	SendInput, {Ctrl down}
	sleep delay
	SendInput, v
	sleep delay 
	SendInput, {Ctrl up}
	sleep delay
	Click, right
	sleep delay
	SendInput, g
	sleep delay
	SendInput, q
	sleep delay
}
return

Numpad7:: ;move idle infantry
Toggle := !Toggle
While Toggle{
	SendInput, ,
	sleep delay
	Click, right
	sleep delay
}
return

Numpad8:: ;attack move idle infantry
Toggle := !Toggle
While Toggle{
	SendInput, ,
	sleep delay
	SendInput, r
	sleep delay
	Click
	sleep delay
}
return

Numpad9:: ;kill or destroy everything under your cursor
Toggle := !Toggle
While Toggle{
	SendInput, {del}
	sleep delay
	Click, left
	sleep delay
}
return

Return to “Gaming”

Who is online

Users browsing this forum: Bing [Bot] and 15 guests