pixelsearch a minimized/inactive program

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
phoenixL337
Posts: 12
Joined: 17 Oct 2021, 04:30

pixelsearch a minimized/inactive program

Post by phoenixL337 » 17 Oct 2021, 04:35

Code: Select all

PixelSearch, FoundX, FoundY, 798, 392, 1539, 845, 0xB4A55E, 3, Fast RGB
If (ErrorLevel = 0)
{
SetKeyDelay, 0, 50
sleep, 500
ControlSend, , t, ahk_exe javaw.exe
Sleep, 30
ControlSend, , /, ahk_exe javaw.exe
Sleep, 30
ControlSend, , s, ahk_exe javaw.exe
Sleep, 30
ControlSend, , k, ahk_exe javaw.exe
Sleep, 30
ControlSend, , y, ahk_exe javaw.exe
Sleep, 30
ControlSend, , b, ahk_exe javaw.exe
Sleep, 30
ControlSend, , l, ahk_exe javaw.exe
Sleep, 30
ControlSend, , o, ahk_exe javaw.exe
Sleep, 30
ControlSend, , c, ahk_exe javaw.exe
sleep, 30
ControlSend, , k, ahk_exe javaw.exe
sleep, 30
ControlSend, , {enter}, ahk_exe javaw.exe
Sleep, 5000
ControlSend, , t, ahk_exe javaw.exe
Sleep, 30
ControlSend, , /, ahk_exe javaw.exe
Sleep, 30
ControlSend, , i, ahk_exe javaw.exe
Sleep, 30
ControlSend, , s, ahk_exe javaw.exe
sleep, 30
ControlSend, , {enter}, ahk_exe javaw.exe
sleep, 5000
reload
}
[Mod edit: [code][/code] tags added.]
Last edited by gregster on 17 Oct 2021, 09:27, edited 1 time in total.
Reason: Topic moved from 'Forum Issues'.


phoenixL337
Posts: 12
Joined: 17 Oct 2021, 04:30

Re: pixelsearch a minimized/inactive program

Post by phoenixL337 » 18 Oct 2021, 10:25

mikeyww wrote:
17 Oct 2021, 15:56
viewtopic.php?p=111080#p111080
how do i specify which window to search and how do i know if it found the pixel or not
Thanks for help

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: pixelsearch a minimized/inactive program

Post by mikeyww » 18 Oct 2021, 10:40

I never tried it. You could post a reply on that page in case anyone is subscribed there.

May help: viewtopic.php?f=76&t=23605

phoenixL337
Posts: 12
Joined: 17 Oct 2021, 04:30

Re: pixelsearch a minimized/inactive program

Post by phoenixL337 » 27 Oct 2021, 05:19

mikeyww wrote:
18 Oct 2021, 10:40
I never tried it. You could post a reply on that page in case anyone is subscribed there.

May help: viewtopic.php?f=76&t=23605
Thanks for help btw
manage to edit the code and made it work :D

Post Reply

Return to “Ask for Help (v1)”