Search found 27 matches
- 18 May 2024, 10:27
- Forum: Ask for Help (v1)
- Topic: Most efficient method for updating tool tip
- Replies: 2
- Views: 321
Re: Most efficient method for updating tool tip
ah thank you. I meant for the updatetooltip call to come before the break. After the break it will return to the main loop
- 15 May 2024, 11:11
- Forum: Ask for Help (v1)
- Topic: Most efficient method for updating tool tip
- Replies: 2
- Views: 321
Most efficient method for updating tool tip
I'm trying to figure out what is the best method for updating a tool tip. My loop runs fine but its difficult to know what's going on, so I'm trying to add a tooltip that will display what function is being called. However when called in each function at the end of the actions, it just shows "Functi...
- 29 Apr 2024, 10:37
- Forum: Ask for Help (v1)
- Topic: Pixel searching finding incorrect colour Topic is solved
- Replies: 2
- Views: 301
Pixel searching finding incorrect colour Topic is solved
I am testing a number of pixel searches and the below test keep registering on black (000000) or rather than the colour I'm searching for. With the variation set to missing (0) I would assume it's not that causing the issue. This seems to happen no matter what colour I have it search for. #Requires ...
- 26 Apr 2024, 12:44
- Forum: Ask for Help (v1)
- Topic: Loop: Sequential Pixelsearch's not working
- Replies: 10
- Views: 531
Re: Loop: Sequential Pixelsearch's not working
mikeyww I've tried a few different things and not had much success. I've gone back to simpler code but am stuck here: CallALoop() { Random, RandomInterval, 3500, 4000 ; Adjust the range (in milliseconds) as needed SetTimer, ALoop, % RandomInterval } ; Press F1 to start/stop F1:: IsClicking := !IsCl...
- 26 Apr 2024, 12:44
- Forum: Forum Issues
- Topic: Chrome block AHK forums with "NOT SECURE" Error
- Replies: 2
- Views: 354
Chrome block AHK forums with "NOT SECURE" Error
Chrome is constantly blocking access to AHK forums and documentation sites due to the connection not being secure due to lack of https. I've cleared my cache and cookies and allowed all permission as extensively as I can. Is anyone else experiencing this?
- 10 Apr 2024, 08:10
- Forum: Ask for Help (v1)
- Topic: Loop: Sequential Pixelsearch's not working
- Replies: 10
- Views: 531
Re: Loop: Sequential Pixelsearch's not working
Ok will test and report back if needed, thnak you
- 10 Apr 2024, 07:43
- Forum: Ask for Help (v1)
- Topic: Loop: Sequential Pixelsearch's not working
- Replies: 10
- Views: 531
Re: Loop: Sequential Pixelsearch's not working
Sorry I'm not quite following what you mean. Each pixel search has a different colour but the same start and end coordinates. Are you meaning change each pixel searches starting coordinates to a more specific area?
- 10 Apr 2024, 07:23
- Forum: Ask for Help (v1)
- Topic: Loop: Sequential Pixelsearch's not working
- Replies: 10
- Views: 531
Re: Loop: Sequential Pixelsearch's not working
I guess I thought it would move sequentially once the condition was found, bad assumption it seems. By change of coordinates do you mean the area I'm searching over? All 4 colours will be present somewhat randomly within the defined rectangular area.
- 10 Apr 2024, 07:13
- Forum: Ask for Help (v1)
- Topic: Loop: Sequential Pixelsearch's not working
- Replies: 10
- Views: 531
Re: Loop: Sequential Pixelsearch's not working
So i define this "ALoop" to then be called here, and repeated until stopped: ActionLoop() { Random, RandomInterval, 25000, 35000 ; Adjust the range (in milliseconds) as needed SetTimer, ALoop, % RandomInterval } ; Press F1 to start/stop random clicking F1:: IsClicking := !IsClicking if (IsClicking) ...
- 10 Apr 2024, 06:25
- Forum: Ask for Help (v1)
- Topic: Loop: Sequential Pixelsearch's not working
- Replies: 10
- Views: 531
Loop: Sequential Pixelsearch's not working
I have a loop with a number of sequential pixel searches but the loop does not proceed past the first pixelsearch and its actions. Once it has found the colour 000000 , it repeatedly clicks at Bx By instead of going onto the next search. Here is my script: ALoop: ; click pixelsearch, Bx, By, 200, 15...
- 17 Feb 2024, 10:35
- Forum: Ask for Help (v1)
- Topic: How to correctly use Pixel search with multiple If Else statements
- Replies: 3
- Views: 147
Re: How to correctly use Pixel search with multiple If Else statements
@Rohwedder , sorry it should be Px1 Py1 and Px2 Py2. It is two different sets of coordinates so the statement you wrote wouldn't fully work.
Code: Select all
Else Click
- 16 Feb 2024, 08:36
- Forum: Ask for Help (v1)
- Topic: How to correctly use Pixel search with multiple If Else statements
- Replies: 3
- Views: 147
How to correctly use Pixel search with multiple If Else statements
I am trying to scan for 3 colours and depending on what colour is found, perform an action. Roughly the process should be: 1) scan for colour 1, if found perform actions 1 2) if colour1 is missing, scan for colour 2, if found perform action2 3) if colour1 and colour 2 are missing, scan for colour3, ...
- 12 Jan 2024, 17:52
- Forum: Ask for Help (v1)
- Topic: Unrelated section of script breaking expression & tooltip
- Replies: 1
- Views: 150
Unrelated section of script breaking expression & tooltip
I am attempting to merge 2 separate scripts together. However when joining them I found the order of seemingly unrelated bits of script seemed to matter as depending on the order one of the functions would cease to occur but cause no errors. Section 1: ui +AlwaysOnTop Gui Font, s10 Gui Add, Button, ...
- 12 Jan 2024, 10:02
- Forum: Ask for Help (v1)
- Topic: How to store recorded coordinates for later reference Topic is solved
- Replies: 9
- Views: 626
Re: How to store recorded coordinates for later reference Topic is solved
mikeyww Hi, if i wanted to adjust the script to store the X and Y separately and then select each coordinate individually is this the most efficient way? I have tested it with the message box and it works but I feels inefficient as I'm repeating the code for each X and Y. Gui +AlwaysOnTop Gui Font,...
- 10 Jan 2024, 17:50
- Forum: Ask for Help (v1)
- Topic: How to store recorded coordinates for later reference Topic is solved
- Replies: 9
- Views: 626
Re: How to store recorded coordinates for later reference Topic is solved
I manage to get it working using: If (++n = 3) GuiControl Enable, Begin ; Extract coordinates from ed coordinates := StrSplit(ed, "`n") c1 := coordinates[1] c2 := coordinates[2] c3:= coordinates[3] ; Display coordinates MsgBox, Coordinates: `nC1=%c1% `nC2=%c2%` `nC3=%c3% Return Placing the msgbox te...
- 10 Jan 2024, 16:58
- Forum: Ask for Help (v1)
- Topic: How to store recorded coordinates for later reference Topic is solved
- Replies: 9
- Views: 626
Re: How to store recorded coordinates for later reference Topic is solved
so I added the extraction and this message box, but nothing happened after I ran the program, pressed the button and clicked 3 times. I then tried to run the msgbox in a separate script and the value for x1 y1 were all blank. MsgBox, Coordinates: x1=%x1% y1=%y1%`nx2=%x2% y2=%y2%`nx3=%x3% y3=%y3% Ret...
- 10 Jan 2024, 16:43
- Forum: Ask for Help (v1)
- Topic: How to store recorded coordinates for later reference Topic is solved
- Replies: 9
- Views: 626
Re: How to store recorded coordinates for later reference Topic is solved
Like this?
Code: Select all
; Extract coordinates from ed
coordinates := StrSplit(ed, "`n")
x1 := coordinates[1, 1]
y1 := coordinates[1, 2]
x2 := coordinates[2, 1]
y2 := coordinates[2, 2]
x3 := coordinates[3, 1]
y3 := coordinates[3, 2]
- 10 Jan 2024, 15:35
- Forum: Ask for Help (v1)
- Topic: How to store recorded coordinates for later reference Topic is solved
- Replies: 9
- Views: 626
Re: How to store recorded coordinates for later reference Topic is solved
@mikeyww thank you. Does this save the coordinates in a variable or does it just show them in the GUI? I'd like to reference them later in a loop.
- 09 Jan 2024, 17:13
- Forum: Ask for Help (v1)
- Topic: How to store recorded coordinates for later reference Topic is solved
- Replies: 9
- Views: 626
How to store recorded coordinates for later reference Topic is solved
Im trying to write a programme that will record the coordinates of mouse clicks. I'd like it to store only 3 instances, but once I click a 4th time it resets and I usually have to click once to get onto the right window which counts as a click. How can I adjust this code so that it only starts savin...
- 02 Jan 2024, 12:20
- Forum: Ask for Help (v1)
- Topic: Sleep, % Random Syntax error
- Replies: 4
- Views: 242
Re: Sleep, % Random Syntax error
I'm a little bit lost on this, could you explain it a bit more?
How does it differ to something like?Try:Code: Select all
Sleep, % Random(2000, 5000) Random(Min:="", Max:="") { Random OutputVar, %Min%, %Max% return OutputVar }
Code: Select all
Random, rand, 2000, 5000
Sleep rand