Jump to content

TEW2020 Keyboard Shortcuts: An AutoHotKey Add-on for TEW2020


Recommended Posts

Latest Version: 1.1.2 (22nd May 2020)

 

Please choose the method you prefer from the two instructions below (you only need to do one method)...

 

Instructions for using TEW2020-AHK.exe

0. Download TEW2020-AHK.exe here: https://www.dropbox.com/s/juiabc4wu09w2p5/TEW-AHK-1.1.2.zip?dl=1

1. Place TEW2020-AHK.exe in a safe place on your PC, but NOT inside the TEW2020 folder - this will stop the game from launching.

2. Right click and open the properties of TEW2020-AHK.exe and set the compatibility mode 'Run as Administrator' to on/true.

3. Open the TEW2020.bat file in Notepad (or similar) and change the cd paths to the correct paths for those files.

4. Move the TEW2020.bat file to your desktop.

5. Launch the TEW2020.bat file. It will open first TEW2020 and then TEW2020-AHK.

 

Instructions for using AutoHotKey

1. Download AutoHotKey: https://www.autohotkey.com/

2. Install AHK and save the below code to a text file with the extension .ahk

3. Right click the file and run as administrator

4. Use it inside TEW2020

 

Shortcuts

Main In-Game Screen:

F1 = Advance

Left ALT+F1 = Multi-Advance

 

F2 = Main Scren

F3 = Office

F4 = Companies

F5 = Workers

F6 = Training

F7 = Alliances

F8 = Broadcasters

F9 = Game World

 

CTRL+R = Roster

CTRL+C = Creative

CTRL+T = Tag Teams

CTRL+S = Storylines

CTRL+E = Events & TV

CTRL+F = Finances

CTRL+H = Show History

 

Yes / No Pop-Up:

Y = Yes

N = No

ALT + Y = Yes

ALT + N = No

 

Generic:

ESC = Close the active window

 

Creative Meeting:

1 = Franchise Players

2 = Next Big Things

3 = Hot Prospects

4 = Talk The Talk

5 = Show Stoppers

6 = Ring Generals

7 = Who's Hot

8 = Who's Not

9 = Hidden Gems

 

Roster Screen:

Rick Click = Quick Menu

 

Worker Profile:

Rick Click = Quick Menu

Page Up / Down = Scroll through workers

 

Worker Schedule:

Left / Right = Previous / Next Page

 

Worker Skills:

TAB = Cycle skills

 

Code

#IfWinActive ahk_exe TEW2020.exe
{
	ESC::
		WinGetPos, X, Y, Width, Height, A
		CoordMode, Mouse, Screen
		MouseGetPos, xpos, ypos
		CoordMode, Mouse, Window
		if Width != 1374
		{
			EnvSub, Width, 22
			click %Width%,10
		}
		CoordMode, Mouse, Screen
		MouseMove, %xpos%, %ypos%, 0
		return

	#IfWinActive, TEW2020
	{
		F1::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 30,60
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		LAlt & F1::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 30,100
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return

		F2::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 30,230
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		F3::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 30,260
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		F4::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 30,310
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		F5::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 30,350
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		F6::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 30,400
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		F7::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 30,450
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		F8::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 30,500
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		F9::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 30,550
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return

		Ctrl & r::
			WinGetPos, X, Y, Width, Height, A
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			if Width = 1374
			{
				Click 30,260
				Click 935,155
			}
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		Ctrl & c::
			WinGetPos, X, Y, Width, Height, A
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			if Width = 1374
			{
				Click 30,260
				Click 1125,115
			}
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		Ctrl & t::
			WinGetPos, X, Y, Width, Height, A
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			if Width = 1374
			{
				Click 30,260
				Click 1220,150
			}
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		Ctrl & e::
			WinGetPos, X, Y, Width, Height, A
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			if Width = 1374
			{
				Click 30,260
				Click 1220,270
			}
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		Ctrl & s::
			WinGetPos, X, Y, Width, Height, A
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			if Width = 1374
			{
				Click 30,260
				Click 1125,150
			}
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		Ctrl & f::
			WinGetPos, X, Y, Width, Height, A
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			if Width = 1374
			{
				Click 30,260
				Click 925,435
			}
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		Ctrl & h::
			WinGetPos, X, Y, Width, Height, A
			CoordMode, Mouse, Screen
			CoordMode, Mouse, Window
			if Width = 1374
			{
				Click 30,260
				Click 925,320
			}
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return

		Ctrl & LButton::
			MouseGetPos, xpos, ypos
			if(xpos > 1278 and xpos < 1294)
			{
				Click %xpos%, %ypos%
				EnvSub, ypos, 16
				MouseMove, %xpos%, %ypos%, 0
			}
			if(xpos > 1312 and xpos < 1326)
			{
				Click %xpos%, %ypos%
				EnvAdd, ypos, 16
				MouseMove, %xpos%, %ypos%, 0
			}
			return

		RButton::
			ControlGetFocus, OutputVar, A
			if OutputVar = ThunderRT6ListBox2
			{
				MouseGetPos, xpos, ypos
				if(xpos > 88 and xpos < 308)
				{
					Click %xpos%,%ypos%
				}

				Menu, WorkerMenu, Add, Talk to worker, TalkToWorkerProfile2
				Menu, WorkerMenu, Add, Negotiate, NegotiateProfile2
				Menu, WorkerMenu, Add, Skills, SkillsProfile2
				Menu, WorkerMenu, Add, Popularity, PopularityProfile2
				Menu, WorkerMenu, Add, Personal info, PersonalInfoProfile2
				Menu, WorkerMenu, Add, Match history, MatchHistoryProfile2
				Menu, WorkerMenu, Add, Title history, TitleHistoryProfile2
				Menu, WorkerMenu, Add, Chemistry, ChemistryProfile2
				Menu, WorkerMenu, Add, Schedule, ScheduleProfile2
				Menu, WorkerMenu, Show
				return

				TalkToWorkerProfile2:
					WinGetPos, X, Y, Width, Height, A
					CoordMode, Mouse, Screen
					MouseGetPos, xpos, ypos
					CoordMode, Mouse, Window
					Click 410,140
					Sleep, 500
					Click 150,230
					CoordMode, Mouse, Screen
					MouseMove, %xpos%, %ypos%, 0
					return
				NegotiateProfile2:
					WinGetPos, X, Y, Width, Height, A
					CoordMode, Mouse, Screen
					MouseGetPos, xpos, ypos
					CoordMode, Mouse, Window
					Click 510,235
					CoordMode, Mouse, Screen
					MouseMove, %xpos%, %ypos%, 0
					return
				SkillsProfile2:
					WinGetPos, X, Y, Width, Height, A
					CoordMode, Mouse, Screen
					MouseGetPos, xpos, ypos
					CoordMode, Mouse, Window
					Click 640,235
					CoordMode, Mouse, Screen
					MouseMove, %xpos%, %ypos%, 0
					return
				PopularityProfile2:
					WinGetPos, X, Y, Width, Height, A
					CoordMode, Mouse, Screen
					MouseGetPos, xpos, ypos
					CoordMode, Mouse, Window
					Click 760,235
					CoordMode, Mouse, Screen
					MouseMove, %xpos%, %ypos%, 0
					return
				PersonalInfoProfile2:
					WinGetPos, X, Y, Width, Height, A
					CoordMode, Mouse, Screen
					MouseGetPos, xpos, ypos
					CoordMode, Mouse, Window
					Click 410,140
					Sleep, 500
					Click 625,230
					CoordMode, Mouse, Screen
					MouseMove, %xpos%, %ypos%, 0
					return
				MatchHistoryProfile2:
					WinGetPos, X, Y, Width, Height, A
					CoordMode, Mouse, Screen
					MouseGetPos, xpos, ypos
					CoordMode, Mouse, Window
					Click 880,235
					CoordMode, Mouse, Screen
					MouseMove, %xpos%, %ypos%, 0
					return
				TitleHistoryProfile2:
					WinGetPos, X, Y, Width, Height, A
					CoordMode, Mouse, Screen
					MouseGetPos, xpos, ypos
					CoordMode, Mouse, Window
					Click 1000,235
					CoordMode, Mouse, Screen
					MouseMove, %xpos%, %ypos%, 0
					return
				ChemistryProfile2:
					WinGetPos, X, Y, Width, Height, A
					CoordMode, Mouse, Screen
					MouseGetPos, xpos, ypos
					CoordMode, Mouse, Window
					Click 410,140
					Sleep, 500
					Click 385,265
					CoordMode, Mouse, Screen
					MouseMove, %xpos%, %ypos%, 0
					return
				ScheduleProfile2:
					WinGetPos, X, Y, Width, Height, A
					CoordMode, Mouse, Screen
					MouseGetPos, xpos, ypos
					CoordMode, Mouse, Window
					Click 410,140
					Sleep, 500
					Click 505,265
					CoordMode, Mouse, Screen
					MouseMove, %xpos%, %ypos%, 0
					return
			}
			else
			{
				MouseGetPos, xpos, ypos
				MouseClick, right, %xpos%,%ypos%
			}
			return
	}

	#IfWinActive, X Roster
	{
		RButton::
			MouseGetPos, xpos, ypos
			if(xpos > 18 and xpos < 240)
			{
				Click %xpos%,%ypos%
			}
			Menu, WorkerMenu, Add, Talk to worker, TalkToWorker
			Menu, WorkerMenu, Add, Negotiate, Negotiate
			Menu, WorkerMenu, Add, Skills, Skills
			Menu, WorkerMenu, Add, Popularity, Popularity
			Menu, WorkerMenu, Add, Personal info, PersonalInfo
			Menu, WorkerMenu, Add, Match history, MatchHistory
			Menu, WorkerMenu, Add, Title history, TitleHistory
			Menu, WorkerMenu, Add, Chemistry, Chemistry
			Menu, WorkerMenu, Add, Schedule, Schedule
			Menu, WorkerMenu, Show
			return

			Test:
				MsgBox, It worked?
				return

			EditDetails:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 425,290
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			TurnDetails:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 425,310
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			GimmickDetails:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 425,335
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			TalkToWorker:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 330,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			Negotiate:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 455,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			Skills:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 565,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			Popularity:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 700,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			SendAway:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 1050,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return

			PersonalInfo:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 350,140
				Sleep, 500
				Click 625,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			MatchHistory:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 350,140
				Sleep, 500
				Click 743,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			TitleHistory:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 350,140
				Sleep, 500
				Click 842,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			Chemistry:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 350,140
				Sleep, 500
				Click 390,255
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			Schedule:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 350,140
				Sleep, 500
				Click 500,255
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return

		}

	#IfWinActive, Worker Profile
	{
		RButton::
			Menu, WorkerMenu, Add, Talk to worker, TalkToWorkerProfile
			Menu, WorkerMenu, Add, Negotiate, NegotiateProfile
			Menu, WorkerMenu, Add, Skills, SkillsProfile
			Menu, WorkerMenu, Add, Popularity, PopularityProfile
			Menu, WorkerMenu, Add, Personal info, PersonalInfoProfile
			Menu, WorkerMenu, Add, Match history, MatchHistoryProfile
			Menu, WorkerMenu, Add, Title history, TitleHistoryProfile
			Menu, WorkerMenu, Add, Chemistry, ChemistryProfile
			Menu, WorkerMenu, Add, Schedule, ScheduleProfile
			Menu, WorkerMenu, Show
			return

			TalkToWorkerProfile:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 140,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			NegotiateProfile:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 265,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			SkillsProfile:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 380,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			PopularityProfile:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 500,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			PersonalInfoProfile:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 625,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			MatchHistoryProfile:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 743,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			TitleHistoryProfile:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 842,225
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			ChemistryProfile:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 390,255
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return
			ScheduleProfile:
				WinGetPos, X, Y, Width, Height, A
				CoordMode, Mouse, Screen
				MouseGetPos, xpos, ypos
				CoordMode, Mouse, Window
				Click 500,255
				CoordMode, Mouse, Screen
				MouseMove, %xpos%, %ypos%, 0
				return

		PgUp::
			Click 30,350
			return
		PgDn::
			Click 1115,350
			return

		}

	#IfWinActive, Creative Meeting
	{
		1::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 100,205
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		2::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 100,245
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		3::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 100,285
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		4::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 100,325
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		5::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 100,365
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		6::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 100,405
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		7::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 100,445
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		8::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 100,485
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		9::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 100,525
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return

	}

	#IfWinActive, Calendar Of Availability
	{
		Left::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 175,40
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		Right::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 1250,40
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return

	}

	#IfWinActive, Road Agent Notes
	{
		PgUp::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 15,60
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return
		PgDn::
			CoordMode, Mouse, Screen
			MouseGetPos, xpos, ypos
			CoordMode, Mouse, Window
			Click 260,60
			CoordMode, Mouse, Screen
			MouseMove, %xpos%, %ypos%, 0
			return

	}

	#IfWinActive, Question
	{
		Alt & y::
			WinGetPos, X, Y, Width, Height, A
			EnvSub, Height, 20
			Click 145,%Height%
			return
		Alt & n::
			WinGetPos, X, Y, Width, Height, A
			EnvSub, Height, 20
			Click 365,%Height%
			return
		y::
			WinGetPos, X, Y, Width, Height, A
			EnvSub, Height, 20
			Click 145,%Height%
			return
		n::
			WinGetPos, X, Y, Width, Height, A
			EnvSub, Height, 20
			Click 365,%Height%
			return

	}

	#IfWinActive, X Skills And Abilities
	{
		Tab::
			MouseGetPos, x, y
			if(x = 100 and y = 117)
			{
				Click 100, 144
			}
			else if(x = 100 and y = 144)
			{
				Click 100,168
			}
			else if(x = 100 and y = 168)
			{
				Click 100,190
			}
			else if(x = 100 and y = 190)
			{
				Click 100,220
			}
			else if(x = 100 and y = 220)
			{
				Click 100,240
			}
			else if(x = 100 and y = 240)
			{
				Click 100,300
			}
			else if(x = 100 and y = 300)
			{
				Click 100,325
			}
			else if(x = 100 and y = 325)
			{
				Click 100,340
			}
			else if(x = 100 and y = 340)
			{
				Click 100,365
			}
			else if(x = 100 and y = 365)
			{
				Click 100,430
			}
			else if(x = 100 and y = 430)
			{
				Click 100,450
			}
			else if(x = 100 and y = 450)
			{
				Click 100,475
			}
			else if(x = 100 and y = 475)
			{
				Click 100,495
			}
			else if(x = 100 and y = 495)
			{
				Click 100,520
			}
			else if(x = 100 and y = 520)
			{
				Click 100,540
			}
			else if(x = 100 and y = 540)
			{
				Click 345,117
			}
			else if(x = 345 and y = 117)
			{
				Click 345, 144
			}
			else if(x = 345 and y = 144)
			{
				Click 345,168
			}
			else if(x = 345 and y = 168)
			{
				Click 345,190
			}
			else if(x = 345 and y = 190)
			{
				Click 345,245
			}
			else if(x = 345 and y = 245)
			{
				Click 345,270
			}
			else if(x = 345 and y = 270)
			{
				Click 345,295
			}
			else if(x = 345 and y = 295)
			{
				Click 345,315
			}
			else if(x = 345 and y = 315)
			{
				Click 345,340
			}
			else if(x = 345 and y = 340)
			{
				Click 345,400
			}
			else if(x = 345 and y = 400)
			{
				Click 345,425
			}
			else if(x = 345 and y = 425)
			{
				Click 345,450
			}
			else
			{
				Click 100,117
			}
			return
	}	
}

 

Changelog:

==========================================================================
TEW2020 AutoHotKey Script                                            
By Ray Wilson (aka Arber)                                            
http://www.greydogsoftware.com/forum/showthread.php?t=547363
==========================================================================

CHANGELOG

1.1.2
> Yes/No pop-ups now can use ALT+Y/N key or just Y/N
> General right-click improvements for quick menu's
> Right-click now works on the main workers screen, but only when using
 the old style list boxes (not compatible with the new coloured lists)
> Pressing TAB on the skills screen will now cycle the skills in order,
 meaning the skill progression section changes accordingly
> Page Up/Down on the road agent notes screen will now cycle the categories

1.1.1
> Removed 'Send away' from worker quick menus
 > This is because it will also pop-up outside your roster
> CTRL is now mapped to both left and right keys
> On the booking screen, holding CTRL while left clicking will now move
 the pointer with the segment

1.1.0
> General code tidy-up
> Added right-click quick menu on some screens
> Added lots more shortcut keys:
 > Various home screen shortcuts
 > Creative menu shortcuts

1.0.6
> More QoL changes.
> Mouse returns to original position before shortcut was initiated

1.0.5
> Made the script only work when inside TEW2020

1.0.4
> Improved Yes/No hotkey

1.0.3
> Stopped ESC key working on main screen

1.0.2
> Added ESC hotkey

1.0.1
> Added Yes/No hotkey

1.0.0
> Initial release

Link to comment
Share on other sites

  • Replies 56
  • Created
  • Last Reply

Top Posters In This Topic

<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-username="soxfan93" data-cite="soxfan93" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="49661" data-ipsquote-contentclass="forums_Topic"><div>I have tried to get AHK to work on TEW for <em>years</em> so if this works that would be awesome!</div></blockquote><p> </p><p> In my files, funny enough, the last script I wrote for this was for TEW2013! I haven't written an AHK script since 2014 according to the last modified file here, so I'm having to re-learn some stuff, but the above script is working perfect for me for the side menu at the moment. I'll implement some other stuff over the coming days <img alt=":D" data-src="//content.invisioncic.com/g322608/emoticons/biggrin.png.929299b4c121f473b0026f3d6e74d189.png" src="<___base_url___>/applications/core/interface/js/spacer.png" /></p><p> </p><p> (Just remember you have to run the script as an administrator <img alt=":D" data-src="//content.invisioncic.com/g322608/emoticons/biggrin.png.929299b4c121f473b0026f3d6e74d189.png" src="<___base_url___>/applications/core/interface/js/spacer.png" /> )</p>
Link to comment
Share on other sites

<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-username="Zero" data-cite="Zero" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="49661" data-ipsquote-contentclass="forums_Topic"><div>What skin is that?</div></blockquote><p> </p><p> It's the default skin with the sidebar from Kam's Blue&Gold skin, because there was more space on those icons for me to add the Function Key text.</p>
Link to comment
Share on other sites

Here is an updated code with ALT+Y and ALT+N for the yes/no prompts.

 

I plan to go through with the AHK WindowSpy tool to grab the form names and make this a bit more functional.

 

F1::
Click 30,60
return

LAlt & F1::
Click 30,100
return

F2::
Click 30,230
return

F3::
Click 30,260
return

F4::
Click 30,310
return

F5::
Click 30,350
return

F6::
Click 30,400
return

F7::
Click 30,450
return

F8::
Click 30,500
return

F9::
Click 30,550
return

LAlt & y::
Click 145,355
return

LAlt & n::
Click 365,355
return

 

I'm always open to shortcut suggestions so throw them at me.

Link to comment
Share on other sites

question: does this still work if i move the window?

 

edit: also it might be a bit better to make the day advance alt + f1 or something? in case someone presses it by accident

 

It should still work if you move the window because it uses X0,Y0 as it's base. I prefer F1 for advance but feel free to make that change on your personal file. It'll be the first line, just add 'LAlt & ' in front of F1 and remove the entry below it. :)

 

I just want ESC to close a window.

 

Me too :D Unfortunately, because clicks need to be mapped to window co-ordinates, this is a little tougher to do with inconsistent window sizes. But don't fear, I'll figure it out.

Link to comment
Share on other sites

Thanks for this! Too bad about the difficulty of making ESC work, but I think I'll find this very useful.

 

Never fet! I have it working! You can now press ESC to close as many windows as your heart desires, updated code is in the first post! :D

 

First post has been updated with latest code and all current shortcuts.

Link to comment
Share on other sites

Never fet! I have it working! You can now press ESC to close as many windows as your heart desires, updated code is in the first post! :D

 

First post has been updated with latest code and all current shortcuts.

 

Arber, you are a goddamn rockstar!

Link to comment
Share on other sites

Can someone give me a step by step guide i wanna u it but confuse

 

1. Download and install the AutoHotKey software, linked in the first page.

2. Open notepad and copy and paste the text in the code box into it.

3. Save it as 'TEW2020.ahk'. If it saves it as 'TEW2020.ahk.txt' then remove that last part - the extension must be .ahk.

4. Right click on the TEW2020.ahk file and 'Run as Administrator'.

5. Open TEW2020.

6. The shortcut keys should now work!

Link to comment
Share on other sites

1. Download and install the AutoHotKey software, linked in the first page.

2. Open notepad and copy and paste the text in the code box into it.

3. Save it as 'TEW2020.ahk'. If it saves it as 'TEW2020.ahk.txt' then remove that last part - the extension must be .ahk.

4. Right click on the TEW2020.ahk file and 'Run as Administrator'.

5. Open TEW2020.

6. The shortcut keys should now work!

 

Thanks do i gotta open the file everytime or just the first time

Link to comment
Share on other sites

Ok, in the first page I have now added a .zip file with an already compiled AutoHotKey script (so no need to download AHK yourself) and a TEW2020.bat file which will launch both the game and the AHK file at the same time (just make sure you set the file locations correctly in the .bat file).

 

It now couldn't be easier to use this!

 

Enjoy!

Link to comment
Share on other sites

is it possible to add some more shortcuts for the most used office screens? I'm thinking:

 

R: Roster

C: Creative

T: Teams or Titles

S: Storylines

E: Events & TV

F: Finance

H: Show History

 

Excellent! Just what I was hoping for, some great suggestions. These will be added in the next update.

 

EDIT: I'm writing these now, but I'll have to map them to CTRL+R, CTRL+C, and so on. This is because the AutoHotKey script won't be able to differentiate between windows in TEW so would render those keys useless in search boxes, etc.

Link to comment
Share on other sites

Also, assuming rearraning of segments will still not work a couple patches from now, it'd be great if you could bind the number keys to the small arrows in the booking screen. As every segment can be rearranged by only using the "move up" arrows, and there are only 10 number keys, I'd focus on them.

 

1: Move the second segment from the top to the top

2: third -> second

3: fourth -> third

 

and so on

 

It still wouldn't be optimal, as, to move a segment from bottom to top, you'd have to press e.g. 7, 6, 5, 4, 3, 2, 1 to "follow" the segment, but it'd still be a MAJOR improvement

Link to comment
Share on other sites

Also, assuming rearraning of segments will still not work a couple patches from now, it'd be great if you could bind the number keys to the small arrows in the booking screen. As every segment can be rearranged by only using the "move up" arrows, and there are only 10 number keys, I'd focus on them.

 

1: Move the second segment from the top to the top

2: third -> second

3: fourth -> third

 

and so on

 

It still wouldn't be optimal, as, to move a segment from bottom to top, you'd have to press e.g. 7, 6, 5, 4, 3, 2, 1 to "follow" the segment, but it'd still be a MAJOR improvement

 

I'll see what I can do in regards to that, but won't make any promises.

 

I have added some of the previous suggestions and also binded the 1-9 keys in the Creative Meeting:

 

1 = Franchise Players

2 = Next Big Things

3 = Hot Prospects

4 = Talk The Talk

5 = Show Stoppers

6 = Ring Generals

7 = Who's Hot

8 = Who's Not

9 = Hidden Gems

 

A lot of what I can and cannot do is restricted to things like shared window titles but I will consider almost all suggestions so keep throwing them at me.

Link to comment
Share on other sites

<p>Just a quick update guys... I am working on making mousewheel scrolling work with the coloured list boxes. I have them working on the your roster screen currently, and I will make two versions of the script (one with and one without this code). But at the moment it appears to be working as intended.</p><p> </p><p>

Expect some sort of code update later today, anyway.</p>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...