After installing perl, run cmd.exe and type: "ppm" (Perl Package Manager) and install Win32::GuiTest.
In the script you will find
MouseMoveAbsPix(900,750); #x,y position of play button
MouseMoveAbsPix(360,540); #x,y position of login button
edit based on your screen resolution. If you are unsure how to get the coordinates run this
Code:
#Script to find the coordinates of the mouse use Win32::GuiTest qw(GetCursorPos); while (1){ ($x, $y) = GetCursorPos(); print "x:$x y:$y \n"; }
Code:
#AutoLogin Script use strict; use warnings FATAL => 'all'; use Win32::GuiTest qw(:ALL); my @windows; system '"C:\Riot Games\League of Legends\lol.launcher.exe"'; do { @windows = FindWindowLike(0, "PVP.net Patcher", ""); } until @windows; sleep 2; &patcher(); do { @windows = FindWindowLike(0, "PVP.net Client", ""); } until @windows; sleep 2; &login(); sub patcher { SetForegroundWindow($windows[0]); MouseMoveAbsPix(900,750); #x,y position of play button SendMouse("{LeftClick}"); } sub login { SetForegroundWindow($windows[0]); Win32::GuiTest::SendKeys("PASSWORD"); #your password MouseMoveAbsPix(360,540); #x,y position of login button SendMouse("{LeftClick}"); }