Help, script not working Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
AreZ
Posts: 10
Joined: 18 Dec 2018, 02:40

Help, script not working

18 Dec 2018, 02:43

i found this script on forum but it is not working.
Anyone know why?

Code: Select all

AutoLVLup



#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1


~\::
Macro1:
SetTimer, Macro1, 1000
Loop
{
CoordMode, Pixel, Window
PixelSearch, FoundX, FoundY, 510, 618, 717, 680, 0xFFF56B, 0, Fast RGB
}
Until ErrorLevel = 0
If ErrorLevel = 0
{
Send, {LControl Down}{r}{LControl Up}
Sleep, 10
Send, {LControl Down}{q}{LControl Up}
Sleep, 10
Send, {LControl Down}{e}{LControl Up}
Sleep, 10
Send, {LControl Down}{w}{LControl Up}
}
Return


F8::ExitApp

F12::Pause
hymal7
Posts: 66
Joined: 14 Sep 2016, 05:37

Re: Help, script not working

18 Dec 2018, 04:51

delete the 1st line that says AutoLVLup
AreZ
Posts: 10
Joined: 18 Dec 2018, 02:40

Re: Help, script not working

18 Dec 2018, 19:35

Yeah i tried deleting the first line, still not working.
Let me explain what the code is suppose to do, it is for League Of Legends, it should automatically level up skills, by pressing and holding left ctrl and pressing any of the letters q-w-e-r.
But for some reason it is not working.
Thnx for helping
User avatar
Scr1pter
Posts: 1277
Joined: 06 Aug 2017, 08:21
Location: Germany

Re: Help, script not working  Topic is solved

19 Dec 2018, 21:18

Are you sure about Pixel color and position?
Maybe the game was updated so that the script won't work.
It's normal that devs improve the UI of a game.

Use MouseGetPos and PixelGetColor to find it out.
In that case you will have to modify the script.

Regards
Please use [code][/code] when posting code!
Keyboard: Logitech G PRO - Mouse: Logitech G502 LS - OS: Windows 10 Pro 64 Bit - AHK version: 1.1.33.09
AreZ
Posts: 10
Joined: 18 Dec 2018, 02:40

Re: Help, script not working

20 Dec 2018, 14:25

Yeah you are probably right. I am new to ahk so i dont know how to do that. Tried looking for tutorials but still dont understand it.
Anyways thank you.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: daiweisc and 217 guests