Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

RAWM v2.0


  • Please log in to reply
21 replies to this topic
Wickster
  • Members
  • 97 posts
  • Last active: Oct 06 2017 05:01 PM
  • Joined: 12 Jan 2013

RawmHeader.png

 

What%20is%20Rawm.png

  • Rawm is a script for the popular game League of legends.

 

What%20does%20rawm%20do.png

  • 1 up to 3 account support AUTO login
  • Start / Restart League of Legends (incase your game crashes at anytime or you want to login to another account)
  • Maximize League of Legends Window (if it opens in the corner during loading)
  • Ablity to chose install location for League of Legends (in case you have it installed somewhere else but the default location)
  • Auto Accept Games
  • Works in ALL resolutions!

 

Other info:

Just to put all the trolls out there saying this is a "virus" to bed: http://alturl.com/m2go3

 

 

Big THANKS to the following:

tidbit, Snow_Flake, Latem5, AfterLemon, Tomoe_Uehara, and Cappuccino 

 

Download:(includes everything needed and script and .exe)

http://www.mediafire.../RawM_2.3.7.rar

 

Script:

http://www.pasteall.org/53987  or  http://pastebin.com/N4WqEPVK  or  http://pastie.org/9553602#14

 

 

Change Log:

2.3.7

  - Bug Fixes

 

2.3.6

  - LoL updated some positons of their buttons. So we readjusted our script
2.3.5

  - When match found it clicks the accept button and jumps back to your mouse position just right before the click. also activates the window, that was active right before. 

  - Added a "Menu" button in the right click menu to jump back right before the gui code. So it will open the beginning GUI.
  - Added stringreplacements for the Hotkey messagebox (^ = Ctrl   ! = Alt)
  - new pixels for the accept button click to also achieve to close the connection lost error message box
  - changed delete config button to Ctrl + Alt + F5 , because F5 gets way too often used to refresh a page for example 

2.3

  -added "contact us", added right click menu for system tray, added multi-resolution support, fixed more bugs, changed the way the script was written, added more variables

2.0

  -added customized hotkeys, fixed a few bugs, rewrote some coding

1.0

  -Rawm was born originally called Relaunch and Auto Login and Window Max.

 

 

Ideas for the future:

  • ‚ÄčAuto Accept ToS for league 
  • Slidebar or something of the sort to let the user adjust speed of the sleep times where needed to make the script faster or slower
  • LoL chat without logging into league
  • Auto join a que (options for certain ques)
  • Remote login + matchsearch via smartphone
  • Crypt the password in the config file (its currently open to show the password) (need fixed)


Cappuccino
  • Members
  • 13 posts
  • Last active: Sep 24 2014 07:09 PM
  • Joined: 03 Apr 2013

Nice script so far. Pretty helpful. But I think you can agree with me if I tell you there are a lot of things you can make better. As announced in your upcoming changes. I am rewriting the code right now in the german language and for another resolution. If you want to cooperate with me and make an ultimate script, that we could maybe sell online, let me know :)



Wickster
  • Members
  • 97 posts
  • Last active: Oct 06 2017 05:01 PM
  • Joined: 12 Jan 2013

Please note that the auto accept game feature is buggy and needs to be addressed im working on that.



Sanctus
  • Members
  • 283 posts
  • Last active: Dec 06 2014 04:05 PM
  • Joined: 30 Nov 2012

I can help you in making it 1 script to run at any resolution ;)


Check out ALL My Scripts  ;)


Wickster
  • Members
  • 97 posts
  • Last active: Oct 06 2017 05:01 PM
  • Joined: 12 Jan 2013

I can help you in making it 1 script to run at any resolution ;)

 

 

That would be nice of you :) could you ?



Sanctus
  • Members
  • 283 posts
  • Last active: Dec 06 2014 04:05 PM
  • Joined: 30 Nov 2012
#NoEnv
#SingleInstance force
#InstallKeybdHook
#UseHook
#Persistent
#Include %A_ScriptDir%\Lib
SetWorkingDir, %A_ScriptDir%
SetBatchLines, -1
Menu, Tray, Icon, Images\Rawm.ico
Menu, Tray, Tip, Rawm v2.1`nMade by Wickster
if not A_IsAdmin
{
    Run *RunAs "%A_ScriptFullPath%"
}
SendMode Input
MyToggle := FALSE

;=========================================================================================================================================================
;===Variables=============================================================================================================================================
;============1920x1080====================================================================================================================================
/*
Replaced x1-x5 and y1-y5 with these variables
;Clicks Play
x1 := % Round(701 / (800 / w))
y1 := % Round(533 / (600 / h))
;Clicks Username
x2 := % Round(188 / (1280 / w))
y2 := % Round(321 / (800 / h))
;Clicks Password
x3 := % Round(147 / (1280 / w))
y3 := % Round(382 / (800 / h))
;Clicks Login
x4 := % Round(361 / (1280 / w))
y4 := % Round(426 / (800 / h))
;AutoAccept
x5 := % Round(538 / (1280 / w))
y5 := % Round(447 / (800 / h))
*/



;=========================================================================================================================================================
IfNotExist, RAWM.config
;===GUI1==================================================================================================================================================
{
  Global GUIHwnd
  OnMessage(0x201,"GuiMove")
  Gui 1: -border hwndGUIHwnd ; feel free to change this but LEAVE hwndGUIHwnd!
  Gui 1: Add, Picture, x0 y0, %A_ScriptDir%\Images\Gui1.png

  Gui 1: Add, Text, x150 y399 cWhite -Theme 0x8000, Check this box if only 1 account
  Gui 1: Add, Checkbox, x320 y400 w23 vOnly1Account
 
  Gui 1: Add, Text, x175 y426 cWhite -Theme 0x8000, To Start / Re-Start League
  Gui 1: Add, Hotkey, x320 y424 w100 h20 vToggle, F10
 
  Gui 1: Add, Text, x80 y451 cWhite -Theme 0x8000, To Maximize League (If it opened in the corner)
  Gui 1: Add, Hotkey, x320 y449  w100 h20 vMax, F11
 
  Gui 1: Add, Text, x218 y476 cWhite -Theme 0x8000, Script Exit Hotkey
  Gui 1: Add, Hotkey, x320 y474 w100 h20 vExitKey, ^!Esc
 
  Gui 1: Add, Text, x138 y501 cWhite -Theme 0x8000, League of Legends install location:
  Gui 1: Add, Edit, x320 y499 w150 h15 r1 vInstallLocation, C:\Riot Games\League of Legends\
 
  Gui 1: Add, Text, x206 y527 cWhite -Theme 0x8000, Auto Accept Hotkey
  Gui 1: Add, Hotkey, x320 y525 w100 h20 vAutoAccept, F9
 
  Gui 1: Add, Text, x182 y553 cWhite -Theme 0x8000, Delete Config File Hotkey
  Gui 1: Add, Hotkey, x320 y551 w100 h20 vDeleteConfig, F8
 
  Gui 1: Add, Text, x170 y310 cWhite -Theme 0x8000, Username:
  Gui 1: Add, Edit, x230 y305 w90 h15 r1 vUsername1,
 
  Gui 1: Add, Text, x172 y340 cWhite -Theme 0x8000, Password:
  Gui 1: Add, Edit, x230 y335 w90 h15 r1 vPassword1 +Password,   
 
  Gui 1: Add, Text, x23 y305 cWhite -Theme 0x8000, Username:
  Gui 1: Add, Edit, x77 y300 w70 h15 r1 vUsername2,
 
  Gui 1: Add, Text, x25 y335 cWhite -Theme 0x8000, Password:
  Gui 1: Add, Edit, x77 y330 w70 h15 r1 vPassword2 +Password,
 
  Gui 1: Add, Text, x344 y305 cWhite -Theme 0x8000, Username:
  Gui 1: Add, Edit, x400 y300 w70 h15 r1 vUsername3,
 
  Gui 1: Add, Text, x346 y335 cWhite -Theme 0x8000, Password:
  Gui 1: Add, Edit, x400 y330 w70 h15 r1 vPassword3 +Password,  
 
  Gui 1: Add, Button, x375 y660 w80 h25 -Theme 0x8000 gButtonDone, Done
  Gui 1: Add, Button, x275 y660 w80 h25 -Theme 0x8000 gButtonAbort!, Abort!
 
  Gui 1: Font, s9
  Gui 1: Add, link, x10 y657,  <a href="http://wickysimages.com/">www.wickysimages.com</a>
  Gui 1: Font, S9
  Gui 1: Add, link, x10 y677,  <a href="http://latem5.deviantart.com/">www.latem5.deviantart.com</a>
 
  Gui 1: Color, 232124
  Gui 1: +LastFound +AlwaysOnTop -Caption +ToolWindow
  Gui 1: Show,  w500 h700, Configgui1
  GuiControl 1: +Default, Done
}else {
    FileReadLine, Toggle, RAWM.config, 1
    FileReadLine, Max, RAWM.config, 2
    FileReadLine, ExitKey, RAWM.config, 3
    FileReadLine, Username1, RAWM.config, 4
    FileReadLine, Password1, RAWM.config, 5
    FileReadLine, Username2, RAWM.config, 6
    FileReadLine, Password2, RAWM.config, 7
    FileReadLine, Username3, RAWM.config, 8
    FileReadLine, Password3, RAWM.config, 9
    FileReadLine, Only1Account, RAWM.config, 10
    FileReadLine, InstallLocation, RAWM.config, 11
    FileReadLine, AutoAccept, RAWM.config, 12
    FileReadLine, DeleteConfig, RAWM.config, 13
    Hotkey, %Toggle%, Main
    Hotkey, %ExitKey%, ButtonAbort!
    Hotkey, %Max%, Max
    Hotkey, %AutoAccept%, AutoAccept
    Hotkey, %DeleteConfig%, DeleteConfig

}
Return
GuiMove() {
PostMessage, 0xA1, 2,,, % "ahk_id" GUIHwnd
}
;===Buttons==============================================================================================================================================
ButtonAbort!:
{
SoundPlay, ButtonNoise.wav, wait
ExitApp
}

DeleteConfig:
{
SoundPlay, FileDeleteNoise.wav, wait
FileDelete, RAWM.config
}
Return
 
ButtonDone:
{
SoundPlay, ButtonNoise.wav, wait
Gui 1: Submit, NoHide
FileDelete, RAWM.config
FileAppend, %Toggle%`n%Max%`n%ExitKey%`n%Username1%`n%Password1%`n%Username2%`n%Password2%`n%Username3%`n%Password3%`n%Only1Account%`n%InstallLocation%`n%AutoAccept%`n%DeleteConfig%, RAWM.config
Gui 1: Destroy
SoundPlay, Msgbox.wav, wait
msgbox Script Toggle Key : %Toggle%
SoundPlay, ButtonNoise.wav, wait
SoundPlay, Msgbox.wav, wait
MsgBox Script Window Maximize Key : %Max%
SoundPlay, ButtonNoise.wav, wait
SoundPlay, Msgbox.wav, wait
msgbox Script Exit Key : %ExitKey%
SoundPlay, ButtonNoise.wav, wait
SoundPlay, Msgbox.wav, wait
MsgBox League Install Location : %InstallLocation%
SoundPlay, ButtonNoise.wav, wait
SoundPlay, Msgbox.wav, wait
MsgBox, Auto Accept Hotkey : %AutoAccept%
SoundPlay, ButtonNoise.wav, wait
SoundPlay, Msgbox.wav, wait
Msgbox, Delete Config File Hotkey : %DeleteConfig%
SoundPlay, ButtonNoise.wav, wait
}
If (Only1Account = 0)
{
CustomColor = 444444
Gui 2: Color, %CustomColor%
Gui 2: Add, Picture, x0 y0 w500 h135, %A_ScriptDir%\Images\Gui2-2.png
Gui 2: Add, Picture, x50 y20 w70 h70 gAlternate1, %A_ScriptDir%\Images\Gui2-Alt1.png
Gui 2: Add, Picture, x210 y15 w83 h83 gMainAccount, %A_ScriptDir%\Images\Gui2-Main.png
Gui 2: Add, Picture, x380 y20 w70 h70 gAlternate2, %A_ScriptDir%\Images\Gui2-Alt2.png
Gui 2: +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui 2: Show, w500 h135, Configgui2
WinSet, TransColor, %CustomColor% 255, Configgui2
Return
}

;===Main===================================================================================================================================================
;===Kills League of Legends===============================================================================================================================
Main:
If (Only1Account = 0)
{
CustomColor = 444444
Gui 2: Color, %CustomColor%
Gui 2: Add, Picture, x0 y0 w500 h135, %A_ScriptDir%\Images\Gui2-2.png
Gui 2: Add, Picture, x50 y20 w70 h70 gAlternate1, %A_ScriptDir%\Images\Gui2-Alt1.png
Gui 2: Add, Picture, x210 y15 w83 h83 gMainAccount, %A_ScriptDir%\Images\Gui2-Main.png
Gui 2: Add, Picture, x380 y20 w70 h70 gAlternate2, %A_ScriptDir%\Images\Gui2-Alt2.png
Gui 2: +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui 2: Show, w500 h135, Configgui2
WinSet, TransColor, %CustomColor% 255, Configgui2
Return
}
IfWinExist, ahk_class ApolloRuntimeContentWindow
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RADSWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RiotWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
sleep, 500

;===Runs League of Legends================================================================================================================================
{
Run, lol.launcher.exe, %InstallLocation%
sleep, 500
}
;===Clicks Play===========================================================================================================================================

WinWaitActive ahk_class RiotWindowClass
WinGetPos,,, w, h, A
sleep, 2500
MouseClick, left, % Round(701 / (800 / w)), % Round(533 / (600 / h)),,0

;===Clicks the Username Area==============================================================================================================================
WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 2500
MouseClick, Left, % Round(116 / (1280 / w)), % Round(321 / (800 / h)),2,0
Sleep, 100

;===Types the Username====================================================================================================================================
SetKeyDelay, 5, 5
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Sleep, 250
Send, %Username1%
Sleep, 10


;===Clicks the Password Area==============================================================================================================================
WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 10
MouseClick, left, % Round(147 / (1280 / w)), % Round(382 / (800 / h)),,0
Sleep, 100

;===Types Password========================================================================================================================================

SetKeyDelay, 5, 5
Sleep, 100
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Send, %Password1%
Sleep, 50

;===Clicks Login==========================================================================================================================================
WinGetPos,,, w, h, A
MouseClick, Left, % Round(361 / (1280 / w)), % Round(426 / (800 / h)),,0
Hotkey, %Max%, Max
Hotkey, %ExitKey%, ButtonAbort!
Hotkey, %Toggle%, Main
Hotkey, %AutoAccept%, AutoAccept
Hotkey, %DeleteConfig%, DeleteConfig
return

;=========================================================================================================================================================
;===Maximizes League Window===============================================================================================================================
Max:
IfWinExist, ahk_class RiotWindowClass
{
  Winmaximize, ahk_class RiotWindowClass
}
else
{
    Hotkey, %Max%, Max
    Hotkey, %ExitKey%, ButtonAbort!
    Hotkey, %Toggle%, Main
    Hotkey, %AutoAccept%, AutoAccept
    Hotkey, %DeleteConfig%, DeleteConfig
return
}




;=========================================================================================================================================================
Alternate1:
 SoundPlay, ButtonNoise.wav, wait
 Gui 2: Submit, NoHide
 Gui 2: Destroy
;===Kills League of Legends===============================================================================================================================
IfWinExist, ahk_class ApolloRuntimeContentWindow
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RADSWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RiotWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}

;===Runs League of Legends================================================================================================================================
{
Run, lol.launcher.exe, %InstallLocation%
sleep, 500
}
;===Clicks Play===========================================================================================================================================

WinWaitActive ahk_class RiotWindowClass
WinGetPos,,, w, h, A
sleep, 1500
MouseClick, left, % Round(701 / (800 / w)), % Round(533 / (600 / h)),,0

;===Clicks the Username Area==============================================================================================================================
WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 1100
MouseClick, Left, % Round(188 / (1280 / w)), % Round(321 / (800 / h))
Sleep, 100

;===Types the Username====================================================================================================================================
SetKeyDelay, 5, 5
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Sleep, 100
Send, %Username2%
Sleep, 10


;===Clicks the Password Area==============================================================================================================================

WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 10
MouseClick, left, % Round(147 / (1280 / w)), % Round(382 / (800 / h)),,0
Sleep, 100

;===Types Password========================================================================================================================================

SetKeyDelay, 5, 5
Sleep, 100
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Send, %Password2%
Sleep, 50

;===Clicks Login==========================================================================================================================================

WinGetPos,,, w, h, A
MouseClick, Left, % Round(361 / (1280 / w)), % Round(426 / (800 / h)),,0
Hotkey, %Max%, Max
Hotkey, %ExitKey%, ButtonAbort!
Hotkey, %Toggle%, Main
Hotkey, %AutoAccept%, AutoAccept
Hotkey, %DeleteConfig%, DeleteConfig
return




;=========================================================================================================================================================
Alternate2:
 SoundPlay, ButtonNoise.wav, wait
 Gui 2: Submit, NoHide
 Gui 2: Destroy
;===Kills League of Legends===============================================================================================================================
IfWinExist, ahk_class ApolloRuntimeContentWindow
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RADSWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RiotWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}

;===Runs League of Legends================================================================================================================================
{
Run, lol.launcher.exe, %InstallLocation%
sleep, 500
}
;===Clicks Play===========================================================================================================================================

WinWaitActive ahk_class RiotWindowClass
WinGetPos,,, w, h, A
sleep, 1500
MouseClick, left, % Round(701 / (800 / w)), % Round(533 / (600 / h)),,0

;===Clicks the Username Area==============================================================================================================================
WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 1100
MouseClick, Left, % Round(188 / (1280 / w)), % Round(321 / (800 / h))
Sleep, 100

;===Types the Username====================================================================================================================================
SetKeyDelay, 5, 5
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Sleep, 100
Send, %Username3%
Sleep, 10


;===Clicks the Password Area==============================================================================================================================

WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 10
MouseClick, left, % Round(147 / (1280 / w)), % Round(382 / (800 / h)),,0
Sleep, 100

;===Types Password========================================================================================================================================

SetKeyDelay, 5, 5
Sleep, 100
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Send, %Password3%
Sleep, 50

;===Clicks Login==========================================================================================================================================

WinGetPos,,, w, h, A
MouseClick, Left, % Round(361 / (1280 / w)), % Round(426 / (800 / h)),,0
Hotkey, %Max%, Max
Hotkey, %ExitKey%, ButtonAbort!
Hotkey, %Toggle%, Main
Hotkey, %AutoAccept%, AutoAccept
Hotkey, %DeleteConfig%, DeleteConfig
return





;=========================================================================================================================================================
MainAccount:
 SoundPlay, ButtonNoise.wav, wait
 Gui 2: Submit, NoHide
 Gui 2: Destroy
;===Kills League of Legends===============================================================================================================================
IfWinExist, ahk_class ApolloRuntimeContentWindow
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RADSWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RiotWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}

;===Runs League of Legends================================================================================================================================
{
Run, lol.launcher.exe, %InstallLocation%
sleep, 500
}
;===Clicks Play===========================================================================================================================================

WinWaitActive ahk_class RiotWindowClass
WinGetPos,,, w, h, A
sleep, 1500
MouseClick, left, % Round(701 / (800 / w)), % Round(533 / (600 / h)),,0

;===Clicks the Username Area==============================================================================================================================
WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 1100
MouseClick, Left, % Round(188 / (1280 / w)), % Round(321 / (800 / h))
Sleep, 100

;===Types the Username====================================================================================================================================
SetKeyDelay, 5, 5
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Sleep, 100
Send, %Username1%
Sleep, 10


;===Clicks the Password Area==============================================================================================================================

WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 10
MouseClick, left, % Round(147 / (1280 / w)), % Round(382 / (800 / h)),,0
Sleep, 100

;===Types Password========================================================================================================================================

SetKeyDelay, 5, 5
Sleep, 100
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Send, %Password1%
Sleep, 50

;===Clicks Login==========================================================================================================================================

WinGetPos,,, w, h, A
MouseClick, Left, % Round(361 / (1280 / w)), % Round(426 / (800 / h)),,0
Hotkey, %Max%, Max
Hotkey, %ExitKey%, ButtonAbort!
Hotkey, %Toggle%, Main
Hotkey, %AutoAccept%, AutoAccept
Hotkey, %DeleteConfig%, DeleteConfig
return

;===Auto Accept==========================================================================================================================================
 
AutoAccept:

  if (MyToggle)
  {
  TrayTip,, Queue timers stopped
  SetTimer, MatchFound, off
  SetTimer, MatchDodged, off
  } else {
  IfWinExist, ahk_class ApolloRuntimeContentWindow
  WinActivate, ahk_class ApolloRuntimeContentWindow
  CoordMode, Mouse, Screen
  CoordMode, Pixel, Screen
  TrayTip, Waiting on Que...., Please Enter a Que,,17
  SetTimer, MatchFound, 500
  SetTimer, MatchDodged, 500
  }
  MyToggle := !MyToggle
  Return
 
 
MatchFound:
  ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, %A_ScriptDir%\Images\Found.png
  if (ErrorLevel = 0)
  {
    Sleep, 500
    WinGetPos,,, w, h, A
    MouseClick, Left, % Round(538 / (1280 / w)), % Round(447 / (800 / h))
    SetTimer, MatchFound, Off
  }

Return


MatchDodged:
  ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, %A_ScriptDir%\Images\NotFound.png
  if ErrorLevel
  {
  Goto, MatchFound
  }
  Else
  {
  if (ErrorLevel = 0)
  {
  Goto, MatchFound
  }
  SetTimer, MatchDodged, Off
  }
Return

There you go, should all work in any resolution except for maybe auto accept.

 

Some tips you could use:

  • Try using PixelSearch instead of ImageSearch to verify that a match has been found, easier to use if making a script that works for any resolution.
  • Have the hotkeys listed somewhere other than just the first time setup.
  • Have a hotkey to redo the setup, so you dont need to manually delete the .config file (just add gui to the delete config hotkey)
  • Button sounds and msgbox sounds are cool but annoying and not needed
  • Instead of making 10 msgboxes popup, just do one gui popup with all the info
  • Increase the sleep timer before clicking play / username, some people dont have an SSD so the the button hasn't appeared even though the screen is there.
  • Otherwise you could add a PixelSearch to verify that the color orange and white is there before clicking (quite easy and doesn't slow the script down)

All in all nice looking program m8, good luck with it in the future.


Check out ALL My Scripts  ;)


Wickster
  • Members
  • 97 posts
  • Last active: Oct 06 2017 05:01 PM
  • Joined: 12 Jan 2013
#NoEnv
#SingleInstance force
#InstallKeybdHook
#UseHook
#Persistent
#Include %A_ScriptDir%\Lib
SetWorkingDir, %A_ScriptDir%
SetBatchLines, -1
Menu, Tray, Icon, Images\Rawm.ico
Menu, Tray, Tip, Rawm v2.1`nMade by Wickster
if not A_IsAdmin
{
    Run *RunAs "%A_ScriptFullPath%"
}
SendMode Input
MyToggle := FALSE

;=========================================================================================================================================================
;===Variables=============================================================================================================================================
;============1920x1080====================================================================================================================================
/*
Replaced x1-x5 and y1-y5 with these variables
;Clicks Play
x1 := % Round(701 / (800 / w))
y1 := % Round(533 / (600 / h))
;Clicks Username
x2 := % Round(188 / (1280 / w))
y2 := % Round(321 / (800 / h))
;Clicks Password
x3 := % Round(147 / (1280 / w))
y3 := % Round(382 / (800 / h))
;Clicks Login
x4 := % Round(361 / (1280 / w))
y4 := % Round(426 / (800 / h))
;AutoAccept
x5 := % Round(538 / (1280 / w))
y5 := % Round(447 / (800 / h))
*/



;=========================================================================================================================================================
IfNotExist, RAWM.config
;===GUI1==================================================================================================================================================
{
  Global GUIHwnd
  OnMessage(0x201,"GuiMove")
  Gui 1: -border hwndGUIHwnd ; feel free to change this but LEAVE hwndGUIHwnd!
  Gui 1: Add, Picture, x0 y0, %A_ScriptDir%\Images\Gui1.png

  Gui 1: Add, Text, x150 y399 cWhite -Theme 0x8000, Check this box if only 1 account
  Gui 1: Add, Checkbox, x320 y400 w23 vOnly1Account
 
  Gui 1: Add, Text, x175 y426 cWhite -Theme 0x8000, To Start / Re-Start League
  Gui 1: Add, Hotkey, x320 y424 w100 h20 vToggle, F10
 
  Gui 1: Add, Text, x80 y451 cWhite -Theme 0x8000, To Maximize League (If it opened in the corner)
  Gui 1: Add, Hotkey, x320 y449  w100 h20 vMax, F11
 
  Gui 1: Add, Text, x218 y476 cWhite -Theme 0x8000, Script Exit Hotkey
  Gui 1: Add, Hotkey, x320 y474 w100 h20 vExitKey, ^!Esc
 
  Gui 1: Add, Text, x138 y501 cWhite -Theme 0x8000, League of Legends install location:
  Gui 1: Add, Edit, x320 y499 w150 h15 r1 vInstallLocation, C:\Riot Games\League of Legends\
 
  Gui 1: Add, Text, x206 y527 cWhite -Theme 0x8000, Auto Accept Hotkey
  Gui 1: Add, Hotkey, x320 y525 w100 h20 vAutoAccept, F9
 
  Gui 1: Add, Text, x182 y553 cWhite -Theme 0x8000, Delete Config File Hotkey
  Gui 1: Add, Hotkey, x320 y551 w100 h20 vDeleteConfig, F8
 
  Gui 1: Add, Text, x170 y310 cWhite -Theme 0x8000, Username:
  Gui 1: Add, Edit, x230 y305 w90 h15 r1 vUsername1,
 
  Gui 1: Add, Text, x172 y340 cWhite -Theme 0x8000, Password:
  Gui 1: Add, Edit, x230 y335 w90 h15 r1 vPassword1 +Password,   
 
  Gui 1: Add, Text, x23 y305 cWhite -Theme 0x8000, Username:
  Gui 1: Add, Edit, x77 y300 w70 h15 r1 vUsername2,
 
  Gui 1: Add, Text, x25 y335 cWhite -Theme 0x8000, Password:
  Gui 1: Add, Edit, x77 y330 w70 h15 r1 vPassword2 +Password,
 
  Gui 1: Add, Text, x344 y305 cWhite -Theme 0x8000, Username:
  Gui 1: Add, Edit, x400 y300 w70 h15 r1 vUsername3,
 
  Gui 1: Add, Text, x346 y335 cWhite -Theme 0x8000, Password:
  Gui 1: Add, Edit, x400 y330 w70 h15 r1 vPassword3 +Password,  
 
  Gui 1: Add, Button, x375 y660 w80 h25 -Theme 0x8000 gButtonDone, Done
  Gui 1: Add, Button, x275 y660 w80 h25 -Theme 0x8000 gButtonAbort!, Abort!
 
  Gui 1: Font, s9
  Gui 1: Add, link, x10 y657,  <a href="http://wickysimages.com/">www.wickysimages.com</a>
  Gui 1: Font, S9
  Gui 1: Add, link, x10 y677,  <a href="http://latem5.deviantart.com/">www.latem5.deviantart.com</a>
 
  Gui 1: Color, 232124
  Gui 1: +LastFound +AlwaysOnTop -Caption +ToolWindow
  Gui 1: Show,  w500 h700, Configgui1
  GuiControl 1: +Default, Done
}else {
    FileReadLine, Toggle, RAWM.config, 1
    FileReadLine, Max, RAWM.config, 2
    FileReadLine, ExitKey, RAWM.config, 3
    FileReadLine, Username1, RAWM.config, 4
    FileReadLine, Password1, RAWM.config, 5
    FileReadLine, Username2, RAWM.config, 6
    FileReadLine, Password2, RAWM.config, 7
    FileReadLine, Username3, RAWM.config, 8
    FileReadLine, Password3, RAWM.config, 9
    FileReadLine, Only1Account, RAWM.config, 10
    FileReadLine, InstallLocation, RAWM.config, 11
    FileReadLine, AutoAccept, RAWM.config, 12
    FileReadLine, DeleteConfig, RAWM.config, 13
    Hotkey, %Toggle%, Main
    Hotkey, %ExitKey%, ButtonAbort!
    Hotkey, %Max%, Max
    Hotkey, %AutoAccept%, AutoAccept
    Hotkey, %DeleteConfig%, DeleteConfig

}
Return
GuiMove() {
PostMessage, 0xA1, 2,,, % "ahk_id" GUIHwnd
}
;===Buttons==============================================================================================================================================
ButtonAbort!:
{
SoundPlay, ButtonNoise.wav, wait
ExitApp
}

DeleteConfig:
{
SoundPlay, FileDeleteNoise.wav, wait
FileDelete, RAWM.config
}
Return
 
ButtonDone:
{
SoundPlay, ButtonNoise.wav, wait
Gui 1: Submit, NoHide
FileDelete, RAWM.config
FileAppend, %Toggle%`n%Max%`n%ExitKey%`n%Username1%`n%Password1%`n%Username2%`n%Password2%`n%Username3%`n%Password3%`n%Only1Account%`n%InstallLocation%`n%AutoAccept%`n%DeleteConfig%, RAWM.config
Gui 1: Destroy
SoundPlay, Msgbox.wav, wait
msgbox Script Toggle Key : %Toggle%
SoundPlay, ButtonNoise.wav, wait
SoundPlay, Msgbox.wav, wait
MsgBox Script Window Maximize Key : %Max%
SoundPlay, ButtonNoise.wav, wait
SoundPlay, Msgbox.wav, wait
msgbox Script Exit Key : %ExitKey%
SoundPlay, ButtonNoise.wav, wait
SoundPlay, Msgbox.wav, wait
MsgBox League Install Location : %InstallLocation%
SoundPlay, ButtonNoise.wav, wait
SoundPlay, Msgbox.wav, wait
MsgBox, Auto Accept Hotkey : %AutoAccept%
SoundPlay, ButtonNoise.wav, wait
SoundPlay, Msgbox.wav, wait
Msgbox, Delete Config File Hotkey : %DeleteConfig%
SoundPlay, ButtonNoise.wav, wait
}
If (Only1Account = 0)
{
CustomColor = 444444
Gui 2: Color, %CustomColor%
Gui 2: Add, Picture, x0 y0 w500 h135, %A_ScriptDir%\Images\Gui2-2.png
Gui 2: Add, Picture, x50 y20 w70 h70 gAlternate1, %A_ScriptDir%\Images\Gui2-Alt1.png
Gui 2: Add, Picture, x210 y15 w83 h83 gMainAccount, %A_ScriptDir%\Images\Gui2-Main.png
Gui 2: Add, Picture, x380 y20 w70 h70 gAlternate2, %A_ScriptDir%\Images\Gui2-Alt2.png
Gui 2: +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui 2: Show, w500 h135, Configgui2
WinSet, TransColor, %CustomColor% 255, Configgui2
Return
}

;===Main===================================================================================================================================================
;===Kills League of Legends===============================================================================================================================
Main:
If (Only1Account = 0)
{
CustomColor = 444444
Gui 2: Color, %CustomColor%
Gui 2: Add, Picture, x0 y0 w500 h135, %A_ScriptDir%\Images\Gui2-2.png
Gui 2: Add, Picture, x50 y20 w70 h70 gAlternate1, %A_ScriptDir%\Images\Gui2-Alt1.png
Gui 2: Add, Picture, x210 y15 w83 h83 gMainAccount, %A_ScriptDir%\Images\Gui2-Main.png
Gui 2: Add, Picture, x380 y20 w70 h70 gAlternate2, %A_ScriptDir%\Images\Gui2-Alt2.png
Gui 2: +LastFound +AlwaysOnTop -Caption +ToolWindow
Gui 2: Show, w500 h135, Configgui2
WinSet, TransColor, %CustomColor% 255, Configgui2
Return
}
IfWinExist, ahk_class ApolloRuntimeContentWindow
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RADSWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RiotWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
sleep, 500

;===Runs League of Legends================================================================================================================================
{
Run, lol.launcher.exe, %InstallLocation%
sleep, 500
}
;===Clicks Play===========================================================================================================================================

WinWaitActive ahk_class RiotWindowClass
WinGetPos,,, w, h, A
sleep, 2500
MouseClick, left, % Round(701 / (800 / w)), % Round(533 / (600 / h)),,0

;===Clicks the Username Area==============================================================================================================================
WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 2500
MouseClick, Left, % Round(116 / (1280 / w)), % Round(321 / (800 / h)),2,0
Sleep, 100

;===Types the Username====================================================================================================================================
SetKeyDelay, 5, 5
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Sleep, 250
Send, %Username1%
Sleep, 10


;===Clicks the Password Area==============================================================================================================================
WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 10
MouseClick, left, % Round(147 / (1280 / w)), % Round(382 / (800 / h)),,0
Sleep, 100

;===Types Password========================================================================================================================================

SetKeyDelay, 5, 5
Sleep, 100
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Send, %Password1%
Sleep, 50

;===Clicks Login==========================================================================================================================================
WinGetPos,,, w, h, A
MouseClick, Left, % Round(361 / (1280 / w)), % Round(426 / (800 / h)),,0
Hotkey, %Max%, Max
Hotkey, %ExitKey%, ButtonAbort!
Hotkey, %Toggle%, Main
Hotkey, %AutoAccept%, AutoAccept
Hotkey, %DeleteConfig%, DeleteConfig
return

;=========================================================================================================================================================
;===Maximizes League Window===============================================================================================================================
Max:
IfWinExist, ahk_class RiotWindowClass
{
  Winmaximize, ahk_class RiotWindowClass
}
else
{
    Hotkey, %Max%, Max
    Hotkey, %ExitKey%, ButtonAbort!
    Hotkey, %Toggle%, Main
    Hotkey, %AutoAccept%, AutoAccept
    Hotkey, %DeleteConfig%, DeleteConfig
return
}




;=========================================================================================================================================================
Alternate1:
 SoundPlay, ButtonNoise.wav, wait
 Gui 2: Submit, NoHide
 Gui 2: Destroy
;===Kills League of Legends===============================================================================================================================
IfWinExist, ahk_class ApolloRuntimeContentWindow
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RADSWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RiotWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}

;===Runs League of Legends================================================================================================================================
{
Run, lol.launcher.exe, %InstallLocation%
sleep, 500
}
;===Clicks Play===========================================================================================================================================

WinWaitActive ahk_class RiotWindowClass
WinGetPos,,, w, h, A
sleep, 1500
MouseClick, left, % Round(701 / (800 / w)), % Round(533 / (600 / h)),,0

;===Clicks the Username Area==============================================================================================================================
WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 1100
MouseClick, Left, % Round(188 / (1280 / w)), % Round(321 / (800 / h))
Sleep, 100

;===Types the Username====================================================================================================================================
SetKeyDelay, 5, 5
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Sleep, 100
Send, %Username2%
Sleep, 10


;===Clicks the Password Area==============================================================================================================================

WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 10
MouseClick, left, % Round(147 / (1280 / w)), % Round(382 / (800 / h)),,0
Sleep, 100

;===Types Password========================================================================================================================================

SetKeyDelay, 5, 5
Sleep, 100
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Send, %Password2%
Sleep, 50

;===Clicks Login==========================================================================================================================================

WinGetPos,,, w, h, A
MouseClick, Left, % Round(361 / (1280 / w)), % Round(426 / (800 / h)),,0
Hotkey, %Max%, Max
Hotkey, %ExitKey%, ButtonAbort!
Hotkey, %Toggle%, Main
Hotkey, %AutoAccept%, AutoAccept
Hotkey, %DeleteConfig%, DeleteConfig
return




;=========================================================================================================================================================
Alternate2:
 SoundPlay, ButtonNoise.wav, wait
 Gui 2: Submit, NoHide
 Gui 2: Destroy
;===Kills League of Legends===============================================================================================================================
IfWinExist, ahk_class ApolloRuntimeContentWindow
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RADSWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RiotWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}

;===Runs League of Legends================================================================================================================================
{
Run, lol.launcher.exe, %InstallLocation%
sleep, 500
}
;===Clicks Play===========================================================================================================================================

WinWaitActive ahk_class RiotWindowClass
WinGetPos,,, w, h, A
sleep, 1500
MouseClick, left, % Round(701 / (800 / w)), % Round(533 / (600 / h)),,0

;===Clicks the Username Area==============================================================================================================================
WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 1100
MouseClick, Left, % Round(188 / (1280 / w)), % Round(321 / (800 / h))
Sleep, 100

;===Types the Username====================================================================================================================================
SetKeyDelay, 5, 5
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Sleep, 100
Send, %Username3%
Sleep, 10


;===Clicks the Password Area==============================================================================================================================

WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 10
MouseClick, left, % Round(147 / (1280 / w)), % Round(382 / (800 / h)),,0
Sleep, 100

;===Types Password========================================================================================================================================

SetKeyDelay, 5, 5
Sleep, 100
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Send, %Password3%
Sleep, 50

;===Clicks Login==========================================================================================================================================

WinGetPos,,, w, h, A
MouseClick, Left, % Round(361 / (1280 / w)), % Round(426 / (800 / h)),,0
Hotkey, %Max%, Max
Hotkey, %ExitKey%, ButtonAbort!
Hotkey, %Toggle%, Main
Hotkey, %AutoAccept%, AutoAccept
Hotkey, %DeleteConfig%, DeleteConfig
return





;=========================================================================================================================================================
MainAccount:
 SoundPlay, ButtonNoise.wav, wait
 Gui 2: Submit, NoHide
 Gui 2: Destroy
;===Kills League of Legends===============================================================================================================================
IfWinExist, ahk_class ApolloRuntimeContentWindow
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RADSWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}
else
IfWinExist, ahk_class RiotWindowClass
{
  Runwait, taskkill /f /im LoLLauncher.exe,, Hide
  sleep, 250
  Runwait, taskkill /f /im LolClient.exe,, Hide
  sleep, 250
}

;===Runs League of Legends================================================================================================================================
{
Run, lol.launcher.exe, %InstallLocation%
sleep, 500
}
;===Clicks Play===========================================================================================================================================

WinWaitActive ahk_class RiotWindowClass
WinGetPos,,, w, h, A
sleep, 1500
MouseClick, left, % Round(701 / (800 / w)), % Round(533 / (600 / h)),,0

;===Clicks the Username Area==============================================================================================================================
WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 1100
MouseClick, Left, % Round(188 / (1280 / w)), % Round(321 / (800 / h))
Sleep, 100

;===Types the Username====================================================================================================================================
SetKeyDelay, 5, 5
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Sleep, 100
Send, %Username1%
Sleep, 10


;===Clicks the Password Area==============================================================================================================================

WinWaitActive ahk_class ApolloRuntimeContentWindow
WinGetPos,,, w, h, A
Sleep, 10
MouseClick, left, % Round(147 / (1280 / w)), % Round(382 / (800 / h)),,0
Sleep, 100

;===Types Password========================================================================================================================================

SetKeyDelay, 5, 5
Sleep, 100
FileRead, FileContents, %A_ScriptDir%\RAWM.config
Send, %Password1%
Sleep, 50

;===Clicks Login==========================================================================================================================================

WinGetPos,,, w, h, A
MouseClick, Left, % Round(361 / (1280 / w)), % Round(426 / (800 / h)),,0
Hotkey, %Max%, Max
Hotkey, %ExitKey%, ButtonAbort!
Hotkey, %Toggle%, Main
Hotkey, %AutoAccept%, AutoAccept
Hotkey, %DeleteConfig%, DeleteConfig
return

;===Auto Accept==========================================================================================================================================
 
AutoAccept:

  if (MyToggle)
  {
  TrayTip,, Queue timers stopped
  SetTimer, MatchFound, off
  SetTimer, MatchDodged, off
  } else {
  IfWinExist, ahk_class ApolloRuntimeContentWindow
  WinActivate, ahk_class ApolloRuntimeContentWindow
  CoordMode, Mouse, Screen
  CoordMode, Pixel, Screen
  TrayTip, Waiting on Que...., Please Enter a Que,,17
  SetTimer, MatchFound, 500
  SetTimer, MatchDodged, 500
  }
  MyToggle := !MyToggle
  Return
 
 
MatchFound:
  ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, %A_ScriptDir%\Images\Found.png
  if (ErrorLevel = 0)
  {
    Sleep, 500
    WinGetPos,,, w, h, A
    MouseClick, Left, % Round(538 / (1280 / w)), % Round(447 / (800 / h))
    SetTimer, MatchFound, Off
  }

Return


MatchDodged:
  ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, %A_ScriptDir%\Images\NotFound.png
  if ErrorLevel
  {
  Goto, MatchFound
  }
  Else
  {
  if (ErrorLevel = 0)
  {
  Goto, MatchFound
  }
  SetTimer, MatchDodged, Off
  }
Return

There you go, should all work in any resolution except for maybe auto accept.

 

Some tips you could use:

  • Try using PixelSearch instead of ImageSearch to verify that a match has been found, easier to use if making a script that works for any resolution.
  • Have the hotkeys listed somewhere other than just the first time setup.
  • Have a hotkey to redo the setup, so you dont need to manually delete the .config file (just add gui to the delete config hotkey)
  • Button sounds and msgbox sounds are cool but annoying and not needed
  • Instead of making 10 msgboxes popup, just do one gui popup with all the info
  • Increase the sleep timer before clicking play / username, some people dont have an SSD so the the button hasn't appeared even though the screen is there.
  • Otherwise you could add a PixelSearch to verify that the color orange and white is there before clicking (quite easy and doesn't slow the script down)

All in all nice looking program m8, good luck with it in the future.

 

 

 

Thanks for everything, I actually had some of that on a TO-DO list for my program. However you have helped me alot, if the resolution thing works (havent tried it yet) I will make sure to give you credit! TY!!!! :)



Sanctus
  • Members
  • 283 posts
  • Last active: Dec 06 2014 04:05 PM
  • Joined: 30 Nov 2012

No problem, if your making more gaming scripts in the future and need to make them for any resolution try this solution while scripting

 

http://www.autohotke...nates-at-mouse/

 

Just updated the script to include the formula for any resolution


Check out ALL My Scripts  ;)


fitifititis
  • Members
  • 7 posts
  • Last active: Feb 11 2015 01:27 AM
  • Joined: 12 Jun 2014

Hey guys. I was searching the web a lot for a working auto-login script and this is the only one so far! Thank you for that. Hower since I have an SSD i find that it is quite slow loging in... Can you help me change the waiting time in the script since I am completely unfamiliar with script editing and coding whatsoever? Thank you.

 

Edit: I figured it out! It only took me about an hour to find out that whatever change I do to the script, the .exe doesn't change :p So I changed the script and ran that instead of the .exe, which i deleted. I had to erase this line to make the scipt run however... 

if not A_IsAdmin
    Run *RunAs "%A_ScriptFullPath%"
MyToggle:=FALSE

I also erased the sent username sections since the launcher saves it anyway... Now a new request has came up.. Is it possible (and if yes how?) to make the game launch just by double clicking the script instead of launching it and then pressing F10? Thank you again!



Wickster
  • Members
  • 97 posts
  • Last active: Oct 06 2017 05:01 PM
  • Joined: 12 Jan 2013

Hey guys. I was searching the web a lot for a working auto-login script and this is the only one so far! Thank you for that. Hower since I have an SSD i find that it is quite slow loging in... Can you help me change the waiting time in the script since I am completely unfamiliar with script editing and coding whatsoever? Thank you.

 

Edit: I figured it out! It only took me about an hour to find out that whatever change I do to the script, the .exe doesn't change :p So I changed the script and run that instead of the .exe which i deleted. I had to erase this line to make the scipt run however... 

if not A_IsAdmin
    Run *RunAs "%A_ScriptFullPath%"
MyToggle:=FALSE

I also erased the sent username sections since the launcher saves it anyway... Now a new request has came up.. Is it possible (and if yes how?) to make the game launch just by double clicking the script instead of launching it and then pressing F10? Thank you again!

 

 

Thanks for giving our program a try ^_^!

Sorry the run times are a bit slow, I plan on adding a way to change the sleep times for the script so each user can control how fast or slow they want to log in as everyone doesnt have an SSD. Im glad that you figured it out. I wonder why you had to erase that line to make it work, what OS are you using ? and you could just leave the program running all the time, it doesnt use hardly any memory at all so you can just push F10 (or whatever key you remap it to) to launch league and login, however if you want the script to auto run just by opening it just remove the hotkeys and that should do the trick.

 

 

Feel free to also email us at

 

rawm4league@gmail.com



fitifititis
  • Members
  • 7 posts
  • Last active: Feb 11 2015 01:27 AM
  • Joined: 12 Jun 2014

Thanks for giving our program a try ^_^!

Sorry the run times are a bit slow, I plan on adding a way to change the sleep times for the script so each user can control how fast or slow they want to log in as everyone doesnt have an SSD. Im glad that you figured it out. I wonder why you had to erase that line to make it work, what OS are you using ? and you could just leave the program running all the time, it doesnt use hardly any memory at all so you can just push F10 (or whatever key you remap it to) to launch league and login, however if you want the script to auto run just by opening it just remove the hotkeys and that should do the trick.

 

 

Feel free to also email us at

 

rawm4league@gmail.com

 

I am using Windows 8.1. I just like the first time I open the script to also start the game, since I tend to completely shut down the computer every day... Also I am not so keen on having an extra icon in the notifications bar all the time. I was hopping if there is a way to still have the hotkeys and launch the game upon launching the script, since I find it helpful that it restarts LOL with just a key... I have changed launch button from F10 to F12. I tried using Send {F12} at the end of the script so that it would press F12 when I launch the scipt and so it would auto-toggle the Main loop, but that didn't work... Is there a command to start the Main loop when I start the script, or a modification I could add to the Main loop to make it also auto-start and start with F12? Thank you.



Wickster
  • Members
  • 97 posts
  • Last active: Oct 06 2017 05:01 PM
  • Joined: 12 Jan 2013

I am using Windows 8.1. I just like the first time I open the script to also start the game, since I tend to completely shut down the computer every day... Also I am not so keen on having an extra icon in the notifications bar all the time. I was hopping if there is a way to still have the hotkeys and launch the game upon launching the script, since I find it helpful that it restarts LOL with just a key... I have changed launch button from F10 to F12. I tried using Send {F12} at the end of the script so that it would press F12 when I launch the scipt and so it would auto-toggle the Main loop, but that didn't work... Is there a command to start the Main loop when I start the script, or a modification I could add to the Main loop to make it also auto-start and start with F12? Thank you.

 

Not that I currently know of. Sorry.



fitifititis
  • Members
  • 7 posts
  • Last active: Feb 11 2015 01:27 AM
  • Joined: 12 Jun 2014

Not that I currently know of. Sorry.

 

That is so sad to hear.. And unexptected to be frank. Could this maybe be possible if i erased all ther other loops, and kept the main to start and restart the launcher?



Wickster
  • Members
  • 97 posts
  • Last active: Oct 06 2017 05:01 PM
  • Joined: 12 Jan 2013

That is so sad to hear.. And unexptected to be frank. Could this maybe be possible if i erased all ther other loops, and kept the main to start and restart the launcher?

 

 

maybe, you would have to break everything in order to do what you want. You would have to take it down to a really basic form. I could probably do it for you if you wanted to give me a few days, I have other things on my to-do list right now and im very busy :( 



fitifititis
  • Members
  • 7 posts
  • Last active: Feb 11 2015 01:27 AM
  • Joined: 12 Jun 2014

maybe, you would have to break everything in order to do what you want. You would have to take it down to a really basic form. I could probably do it for you if you wanted to give me a few days, I have other things on my to-do list right now and im very busy :(

 

No, I don't want you to go through all that trouble for just one user of a script you don't even make profit from... Now that you told me that it is possible, maybe I will try to read a little about scripts on the internet and try to do it on my own... Thank you for your offer though. On a different subject. I haven't understood how autoaccept works. I tried pressing F9 and is says Wainting on Queue (please enter a Queue) and it doesn't seem to auto accept. The secont time I press F9 it says queue timers stopped and it also doesn't accept automaticaly. Can you please specify how it works?