Search found 115 matches

by PipeDreams
11 Aug 2019, 21:32
Forum: Ask For Help
Topic: Can AHK PixelSearch look for multiple colors within a single variable? Topic is solved
Replies: 10
Views: 442

Re: Can AHK PixelSearch look for multiple colors within a single variable? Topic is solved

The issue is that you are acting as you cycle through the colors. You need to check all the colors, see if any of them are found, then act on whether any of them were found or not. The modification below does that. Note that as you move the cursor in an area with none of the search colors (especial...
by PipeDreams
11 Aug 2019, 17:13
Forum: Ask For Help
Topic: Can AHK PixelSearch look for multiple colors within a single variable? Topic is solved
Replies: 10
Views: 442

Re: Can AHK PixelSearch look for multiple colors within a single variable? Topic is solved

The reason is that you have a "Break" inside the If block which causes it to cycle to the next color and find that it's not there, and it continues until it cycles around and gets to the found color again. Ok, I understand that, but how do I get it to stop cycling true/false when colors 2-6 are fou...
by PipeDreams
11 Aug 2019, 14:39
Forum: Ask For Help
Topic: Can AHK PixelSearch look for multiple colors within a single variable? Topic is solved
Replies: 10
Views: 442

Re: Can AHK PixelSearch look for multiple colors within a single variable? Topic is solved

It works for all of them when RGB is added to the PixelSearch options: PixelSearch, X, Y, X-1, Y-1, X+1, Y+1, 0xED1B24, 10, RGB Fast The format is BGR by default, and your search colors are in RGB. It found white and black because they are symmetrical. Oh, alright I see, I have been placing the RGB...
by PipeDreams
11 Aug 2019, 03:53
Forum: Ask For Help
Topic: Can AHK PixelSearch look for multiple colors within a single variable? Topic is solved
Replies: 10
Views: 442

Re: Can AHK PixelSearch look for multiple colors within a single variable? Topic is solved

It appears that you expect LFColors to be a string that you parse, but it is actually an expression with a bunch of values that are OR'ed together using the | operator, which results in a value of 0xFFFFFF. Instead of: LFColors := (0xED1B24|0x23B14D|0x3F47CC|0xFEF200|0x000000|0xFFFFFF) it should be...
by PipeDreams
10 Aug 2019, 21:01
Forum: Ask For Help
Topic: Help with Image/Pixel Search
Replies: 6
Views: 380

Re: Help with Image/Pixel Search

The only way I know of to look for more than one specific color with Pixel Search is to use a loop and define what colors you are looking for with multiple instances of Pixel Search. It would be cool if multiple variables could be set into a master variable; but, I do not think AHK has that capabil...
by PipeDreams
10 Aug 2019, 20:54
Forum: Ask For Help
Topic: Can AHK PixelSearch look for multiple colors within a single variable? Topic is solved
Replies: 10
Views: 442

Can AHK PixelSearch look for multiple colors within a single variable? Topic is solved

How come white is the only color that is recognized, and how do i get it to recognize the other colors? #SingleInstance Force Process, Priority, , Above Normal SetControlDelay, -1 SetBatchLines, -1 SetWinDelay, -1 CoordMode, Pixel, Screen CoordMode, Mouse, Screen CoordMode, ToolTip, Screen MouseMove...
by PipeDreams
08 Aug 2019, 02:52
Forum: Ask For Help
Topic: Help with Image/Pixel Search
Replies: 6
Views: 380

Re: Help with Image/Pixel Search

Oh, :wtf: that is going to come in handy. Thanks SOTE! :bravo:
by PipeDreams
07 Aug 2019, 00:44
Forum: Gaming
Topic: Pixel Check use key
Replies: 4
Views: 405

Re: Pixel Check use key

That link just says, "The requested topic does not exist." Go ahead and post your script here, I'll try to help you out if I can.
by PipeDreams
07 Aug 2019, 00:38
Forum: Ask For Help
Topic: Help with Image/Pixel Search
Replies: 6
Views: 380

Re: Help with Image/Pixel Search

The only way I know of to look for more than one specific color with Pixel Search is to use a loop and define what colors you are looking for with multiple instances of Pixel Search. Loop, { X1:=649, Y1:=870, X2:=741, Y2:=882 PixelSearch, X, Y, X1, Y1, X2, Y2, 0x7FABBA, 10, RGB, Fast ;Color1 If (!Er...
by PipeDreams
15 Jul 2019, 17:09
Forum: Gaming
Topic: Why does this code bug out?
Replies: 1
Views: 175

Re: Why does this code bug out?

Sometimes when things are not blocked off correctly, scripts can get kinda wonky. Do you have the same issue with this? It seems to work fine if i use my CapsLock key, but my KB doesn't have a ScrollLock key so I can't test that. ~$1:: { Loop, { GetKeyState, state, 1, P if (state == "U") { break } E...
by PipeDreams
15 Jul 2019, 16:53
Forum: Gaming
Topic: Shift Click Down - Help
Replies: 3
Views: 378

Re: Shift Click Down - Help

so more like this then?

Code: Select all

~Shift & LButton::
{	While ((GetKeyState("Shift", "P")) AND (GetKeyState("LButton", "P")))
	{	Send, 3
		Sleep, 100
}	} Return
by PipeDreams
14 Jul 2019, 19:41
Forum: Gaming
Topic: Pixel Check use key
Replies: 4
Views: 405

Re: Pixel Check use key

Do you have a script you are currently working on? If so, post it and I'll see if I can help you out. Or perhaps some of the pixelsearch examples in my signature can help you out.
by PipeDreams
14 Jul 2019, 19:11
Forum: Gaming
Topic: Timed Loops on RButton Down
Replies: 7
Views: 417

Re: Timed Loops on RButton Down

Like this? `::Send, wr ^a:: { Reload } Return ~RButton:: Suspend, Permit ;Permits the Esc key to be excluded from suspension. { SetTimer, ], 100 ;On KeyWait, RButton SetTimer, ], OFF } Return ]:: { SetTimer, Loop1, 400 SetTimer, Loop2, 480 SetTimer, Loop3, 600 SetTimer, Loop4, 420 } Return Loop1: { ...
by PipeDreams
14 Jul 2019, 18:27
Forum: Gaming
Topic: battlefield 4 script ?
Replies: 1
Views: 173

Re: battlefield 4 script ?

maybe you'll have better luck on these forums. This is a place to request help for the scripts you are creating.
by PipeDreams
14 Jul 2019, 18:03
Forum: Gaming
Topic: Shift Click Down - Help
Replies: 3
Views: 378

Re: Shift Click Down - Help

if you want a loop you have to define it in the hotkey like this: $4:: { SoundBeep, 100, 10 ;Send, {LButton Down}{Shift Down} Loop, 4 ;How many times do you want the loop to run? { SoundBeep, 300, 10 ;Send, 3 } Sleep, 100 ;1000 = 1sec. SoundBeep, 500, 10 ;Send, {LButton Up}{Shift Up} } Return
by PipeDreams
12 Jul 2019, 12:03
Forum: Ask For Help
Topic: start and stop button gui
Replies: 2
Views: 121

Re: start and stop button gui

Like this? #SingleInstance,Force SetBatchLines,-1 SetWinDelay -1 Width:=800,Height:=500 global BB:=new BreakOut(Width,Height,25,20,100,30,5,3),ID BB.Zen:=0 ;Gui, Add, Button, x10 y90 h50 w114 gOnOff, On/Off ;SetTimer,Tick,10 return OnOff: { If !Tick { SetTimer,Tick,10 } Else, { SetTimer,Tick,OFF } }...
by PipeDreams
12 Jul 2019, 11:51
Forum: Ask For Help
Topic: Best way to get download folder path
Replies: 30
Views: 1204

Re: Best way to get download folder path

are you looking for something like this?

Code: Select all

%USERPROFILE%\AppData\Local\Temp
;or
%USERPROFILE%\Downloads\Testerpic.jpg
;as in
UrlDownloadToFile, https://www.autohotkey.com/boards/download/file.php?id=7460, %USERPROFILE%\Downloads\Testerpic.jpg
by PipeDreams
11 Jul 2019, 00:46
Forum: Ask For Help
Topic: Webstorm and Autohotkey
Replies: 2
Views: 165

Re: Webstorm and Autohotkey

have you tried using SendInput?
by PipeDreams
10 Jul 2019, 16:51
Forum: Scripts and Functions
Topic: PixelSearch & PixelGetColor with visual cues & multiple clipboard output tool.
Replies: 0
Views: 216

PixelSearch & PixelGetColor with visual cues & multiple clipboard output tool.

This is a tool I made for locating pixels in a game, for when I am building other scripts that use the PixelGetColor and PixelSearch command. Hold RButton to get a visual representation of a single pixel under the mouse pointer, or Double click and hold the Right Mouse Button on the second click to ...
by PipeDreams
10 Jul 2019, 15:48
Forum: Gaming
Topic: PixelSearch
Replies: 3
Views: 241

Re: PixelSearch

placing

Code: Select all

SetBatchLines, -1
at the top of you script might make it faster

Go to advanced search