Search found 9 matches

by vanker
04 Aug 2019, 08:18
Forum: Ask For Help
Topic: Optimizing script (PixelSearch/PixelGetColor)
Replies: 0
Views: 150

Optimizing script (PixelSearch/PixelGetColor)

I've been messing with this code for a while now, trying to optimize it, make it faster but I feel like I've hit a wall. What I'm doing is searching a radius from the center of my screen for a white pixel, after I do that I wait for that pixel to change color OR wait 2.5 seconds to start searching f...
by vanker
26 Oct 2017, 18:15
Forum: Gaming
Topic: Using OPENGL to read pixels
Replies: 2
Views: 448

Re: Using OPENGL to read pixels

Xtra wrote:Remove ByRef in your function call.
change:

Code: Select all

gl.glReadPixels(x2,y2,w,h,GL_RGB,GL_UNSIGNED_BYTE, byref pixels)
to:

Code: Select all

gl.glReadPixels(x2,y2,w,h,GL_RGB,GL_UNSIGNED_BYTE,pixels)
Whoops, that went there by mistake, it doesn't work without it either.
by vanker
26 Oct 2017, 18:02
Forum: Gaming
Topic: Using OPENGL to read pixels
Replies: 2
Views: 448

Using OPENGL to read pixels

Hi there, recently I found out about OPENGL in AHK so I decided to try and use it, as I am failing with pure ahk. First of all, what I am trying to do? I'm trying to read pixels from a fixed radius and when a white pixel within this radius is found it stops and waits till becomes red then send space...
by vanker
15 Oct 2017, 20:11
Forum: Gaming
Topic: Speed up PixelSearch?
Replies: 2
Views: 467

Re: Speed up PixelSearch?

Perhaps searching for pink may help, it looks like red line is overlapping on the white, so just doing a pixelsearch for a color such as 0xf97077 (grabbed from image provided) may yield better results. Since that shade of pink is only really shown when the red overlaps a bright white it should only...
by vanker
15 Oct 2017, 18:03
Forum: Gaming
Topic: Speed up PixelSearch?
Replies: 2
Views: 467

Speed up PixelSearch?

Basically what it does is detect a white pixel in a fixed radius, wait for that pixel to be some shade of red and press space when it does, here is some code, I'll explain below #NoEnv #MaxHotkeysPerInterval 99000000 #HotkeyInterval 99000000 #KeyHistory 0 #Persistent #MaxThreadsPerHotkey 2 ListLines...
by vanker
14 Oct 2017, 09:58
Forum: Gaming
Topic: ImageProcessing on a random place qte
Replies: 7
Views: 1047

Re: ImageProcessing on a random place qte

Using this : f1:: loop{ coordmode mouse coordmode pixel setformat floatfast, 0 mousegetpos x, y arc := 3, radius := 53, time := a_tickcount loop { plot(xMidScrn, yMidScrn, a_index * arc, radius, x2, y2) PixelSearch, oX, oY, x2, y2, x2, y2, 0xFFFFFF , 100, Fast RGB ;mousemove x2,y2 ;this is just here...
by vanker
13 Oct 2017, 21:25
Forum: Gaming
Topic: ImageProcessing on a random place qte
Replies: 7
Views: 1047

Re: ImageProcessing on a random place qte

My final code looks something like this : #NoEnv #MaxHotkeysPerInterval 99000000 #HotkeyInterval 99000000 #KeyHistory 0 ListLines Off Process, Priority, , A SetBatchLines, -1 SetKeyDelay, -1, -1 SetMouseDelay, -1 SetDefaultMouseSpeed, 0 SetWinDelay, -1 SetControlDelay, -1 SendMode Input plot(x1, y1,...
by vanker
13 Oct 2017, 17:48
Forum: Gaming
Topic: ImageProcessing on a random place qte
Replies: 7
Views: 1047

Re: ImageProcessing on a random place qte

A good read for you https://autohotkey.com/boards/viewtopic.php?t=4544 and in that read it mentions reducing the size/area of where you search.. You have it searching the whole screen which is a waste. My suggestion is to search the area around the circle only, but look for a solid white square big...
by vanker
12 Oct 2017, 17:24
Forum: Gaming
Topic: ImageProcessing on a random place qte
Replies: 7
Views: 1047

ImageProcessing on a random place qte

So, 1st time poster been a lurker for the most part, but now I'm stuck in this particular issue, let me explain for you guys. So in the game dead by daylight you have https://i.imgur.com/tfVfNIv.png those, those are called "Skill Checks" where if you press space bar inside the white block you get a ...

Go to advanced search