Search found 1499 matches

by Chunjee
Today, 18:43
Forum: Ask for Help (v1)
Topic: create a script that can scan a certain region for a color range
Replies: 2
Views: 115

Re: create a script that can scan a certain region for a color range

S0uloooga wrote:
Yesterday, 19:40
I'm not sure the exact order but you can use pixelsearch for your color range or preferably imagesearch, but use a small image if you don't want it to be too picky
by Chunjee
Today, 14:36
Forum: Gaming Help (v1)
Topic: I need to manage two characters at the same time
Replies: 2
Views: 191

Re: I need to manage two characters at the same time

Best luck I've had with this kind of 'multiboxing' is one or more runs in its own Virtual Machine. Fully separating it from the host keyboard&mouse
by Chunjee
Today, 13:54
Forum: Ask for Help (v1)
Topic: Image Search returning both true and false
Replies: 11
Views: 328

Re: Image Search returning both true and false

bobstoner289 wrote:
Today, 09:32
Image Search returning both true and false
Imagesearch doesn't have a return value, it will set the output vars to "" when no match is found however :thumbup:
by Chunjee
Today, 13:50
Forum: Ask for Help (v1)
Topic: Prevent a script from creating multiple instances
Replies: 5
Views: 176

Re: Prevent a script from creating multiple instances

Most if my scripts start with #SingleInstance, force

This will close the existing instance of the script and replace it with the newest (when run)
by Chunjee
13 Jun 2024, 17:09
Forum: Ask for Help (v1)
Topic: Remove `n from the end of variable DRIVING ME CRAZY
Replies: 2
Views: 134

Re: Remove `n from the end of variable DRIVING ME CRAZY

https://biga-ahk.github.io/biga.ahk/#/?id=trimend will remove all whitespace on the end. Like you would expect from regexreplace(string, "(\s+)$")


ctrl-c might not be the most reliable way to get variables into your script. I also don't have that file so I can't remix your script easily.
by Chunjee
11 Jun 2024, 10:13
Forum: Ask for Help (v1)
Topic: looking for advice on exe to script communication
Replies: 3
Views: 216

Re: looking for advice on exe to script communication

That list of strategies is incredible. So nice to have all in one place.
by Chunjee
10 Jun 2024, 00:03
Forum: Ask for Help (v1)
Topic: RegExReplace - cannot replace when read from file? Topic is solved
Replies: 5
Views: 203

Re: RegExReplace - cannot replace when read from file? Topic is solved

Well done I'm glad you figured it out. The normal way I deal with this is to use a single `n exclusively. But saving with notepad always uses `r`n


I think
by Chunjee
09 Jun 2024, 23:05
Forum: Ask for Help (v1)
Topic: RegExReplace - cannot replace when read from file? Topic is solved
Replies: 5
Views: 203

Re: RegExReplace - cannot replace when read from file? Topic is solved

I think the main problem will be the newlines do not match between your hqystack and the needle
by Chunjee
09 Jun 2024, 09:58
Forum: Ich brauche Hilfe
Topic: AHK rechnen Topic is solved
Replies: 4
Views: 219

Re: AHK rechnen Topic is solved

Wenn Sie sich für Objektdatenstrukturen interessieren, ziehe ich es vor, so zu arbeiten: origin := {x: 960, y: 540} locations := [ {name: "Point 1", x: 1001, y: 539} , {name: "Point 2", x: 920, y: 538} , {name: "Point 8", x: 971, y: 542} , {name: "Point 9", x: 826, y: 548}] for key, value in locatio...
by Chunjee
09 Jun 2024, 09:19
Forum: Ich brauche Hilfe
Topic: AHK rechnen Topic is solved
Replies: 4
Views: 219

Re: AHK rechnen Topic is solved

Ich hoffe, dies ist hilfreich: msgbox, % fn_distance(x, y, x1x, y1y) ; => 41.012193 msgbox, % fn_distance(x, y, x2x, y2y) ; => 40.049969 msgbox, % fn_distance(x, y, x8x, y8y) ; => 11.180340 msgbox, % fn_distance(x, y, x9x, y9y) ; => 34.238594 fn_distance(x1, y1, x2, y2) { return Sqrt((x2 - x1) ** 2 ...
by Chunjee
08 Jun 2024, 13:45
Forum: Scripts and Functions (v1)
Topic: [Base] array.ahk
Replies: 17
Views: 10357

Re: [Base] array.ahk

added to docs:
:india: हिन्दी
by Chunjee
07 Jun 2024, 09:01
Forum: Ask for Help (v1)
Topic: Convert python to AutoHotKey
Replies: 1
Views: 198

Re: Convert python to AutoHotKey

Could be a fun project


Code: Select all

import heapq

Hope you find this useful, https://github.com/Chunjee/permutations.ahk
by Chunjee
05 Jun 2024, 15:31
Forum: Scripts and Functions (v1)
Topic: [Class] graphicsearch.ahk (ImageSearch strings)
Replies: 39
Views: 15401

Re: [Class] graphicsearch.ahk (ImageSearch strings)

I edited test-all.ahk to be indeterminant on the user's current screen size for sorting. The defaults measure from the center of a_screenwidth/height so depending on the desktop size the outputs could differ. v0.5.0 was re-published. I noticed a small bug in an undocumented part of the code. graphic...
by Chunjee
05 Jun 2024, 07:14
Forum: Scripts and Functions (v1)
Topic: [Class] graphicsearch.ahk (ImageSearch strings)
Replies: 39
Views: 15401

Re: [Class] graphicsearch.ahk (ImageSearch strings)

dev dependencies are listed in package.json: "dependencies": {}, "devDependencies": { "unit-testing.ahk": "github:chunjee/unit-testing.ahk" }, if you have npm installed you can install it to the correct location with simply: npm install It is not the easiest test to run however: ; this testing shoul...
by Chunjee
04 Jun 2024, 23:17
Forum: Scripts and Functions (v1)
Topic: GuiDrop Json to AHK to Listview
Replies: 1
Views: 255

Re: GuiDrop Json to AHK to Listview

Cool I will give this a try. Thank you :thumbsup:
by Chunjee
04 Jun 2024, 14:34
Forum: Ask for Help (v1)
Topic: Read / Write to Memory
Replies: 5
Views: 456

Re: Read / Write to Memory

As AutoHotkey is single threaded I don't believe it would be able to easily be used in either of those experiments. For one script to share data to another script. I recommend reading and writing to a file or other dedicated database. Ideally two scripts should not depend on each other's data. A Mon...
by Chunjee
04 Jun 2024, 13:42
Forum: Scripts and Functions (v1)
Topic: [Class] graphicsearch.ahk (ImageSearch strings)
Replies: 39
Views: 15401

Re: [Class] graphicsearch.ahk (ImageSearch strings)

v0.5.0 has been published it is a direct fork of FindText v9.6 with graphicsearch's convenient methods. Not included in the main package: classes; Class Thread , Class GuiCreate , Class Control functions; Gui() , GuiFromHwnd() , GuiCtrlFromHwnd() , GuiCreate_Close() , GuiCreate_ContextMenu() , GuiCr...
by Chunjee
04 Jun 2024, 13:26
Forum: Scripts and Functions (v1)
Topic: [Class] graphicsearch.ahk (ImageSearch strings)
Replies: 39
Views: 15401

Re: [Class] graphicsearch.ahk (ImageSearch strings)

Sorry I couldn't fully understand what the clipboard means in this case.

The screenshot argument:
Whether or not to capture a new screenshot. When the value is 0, the last captured screenshot will be used
by Chunjee
04 Jun 2024, 09:07
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1092
Views: 595399

Re: FindText - Capture screen image into text and then find it Topic is solved

Very cool new version I am having fun exploring it :clap: Well done :thumbup: I noticed .Floor at the very top of the class and I found it to be an odd name choice Floor(i) { if i is number return i+0 else return 0 } floor("hello") ; => 0 FindTextClass.Floor("hello") ; => 0 floor(10.00001) ; => 10 F...

Go to advanced search