Search found 516 matches

by Chunjee
02 Jun 2020, 12:47
Forum: Scripts and Functions
Topic: [Class] graphicsearch.ahk (ImageSearch strings)
Replies: 23
Views: 4064

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

v0.3.0 was published on 05.13.20 I made .searchAgain take two optional parameters. This way you can change the search image (the documentation calls these "GraphicSearch queries") or the options object, or change nothing. The string and options are kept in memory so they'll just be re-used in the ev...
by Chunjee
31 May 2020, 22:23
Forum: Ask For Help
Topic: Need help web scraping
Replies: 20
Views: 888

Re: Need help web scraping

This script got on my clipboard at some point: ^Space:: if (Clipboard != "") { ;if cliboard data is not an image or blank SearchUrl := "http://jisho.org/search/" . Clipboard ; Search text gets appended to the end of the string Run, %SearchUrl% } else { Msgbox, your clipboard doesn't have recognised ...
by Chunjee
31 May 2020, 22:20
Forum: Gaming
Topic: Factorio
Replies: 4
Views: 758

Re: Factorio

I play Factorio but I don't know why you would dispose of the ore. Dare I say you may even be playing Factorio WRONG!?
by Chunjee
31 May 2020, 13:15
Forum: Ask For Help
Topic: JSON Problem
Replies: 3
Views: 129

Re: JSON Problem

msgbox the WebRequest.ResponseText and show what you are trying to parse. I suspect you will find an empty string or some other error.
by Chunjee
25 May 2020, 15:20
Forum: Ask For Help
Topic: Subtracting/comparing two objects?
Replies: 12
Views: 2846

Re: Subtracting/comparing two objects?

@Odlanir Your code works great for me, thanks, but could you explain what is the purpose of arrA[v] := 1 and arrB[v] := 1 ? In that example it creates two intermediate arrays where the value is stored as the key arrA[v] := 1 can be thought of as {"Apple": 1} The two intermediate arrays are then com...
by Chunjee
25 May 2020, 10:03
Forum: Ask For Help
Topic: Code on a single line
Replies: 4
Views: 202

Re: Code on a single line

Could do something like:

Code: Select all

fn_SpeakAndClick(text, x:="", y:="")
{
	if (x != "" && y != "") {
		Click, Left, %x%, %y%
	}
	return DllCall("nvdaControllerClient" A_PtrSize*8 ".dll\nvdaController_speakText", "wstr", 	text)
}
by Chunjee
25 May 2020, 09:15
Forum: Ask For Help
Topic: how to grab part of the string before 'S??E??' ? Topic is solved
Replies: 9
Views: 818

Re: how to grab part of the string before 'S??E??' ? Topic is solved

brotherS wrote:
25 May 2020, 08:01
It's probably really easy with RegEx, but how?
Use the right Regex pattern

https://regex101.com/ may help visualize
by Chunjee
24 May 2020, 08:39
Forum: Ask For Help
Topic: Variable name inside a variable
Replies: 2
Views: 131

Re: Variable name inside a variable

I believe these are called Dynamic Variables in the documentation: https://www.autohotkey.com/docs/Language.htm#dynamic-variables
by Chunjee
24 May 2020, 00:30
Forum: Ask For Help
Topic: Split String by RegEx Topic is solved
Replies: 11
Views: 637

Re: Split String by RegEx Topic is solved

https://biga-ahk.github.io/biga.ahk/#/?id=split does this I believe. Though regex patterns currently need to be specified with surrounding / characters A := new biga() ; requires https://www.npmjs.com/package/biga.ahk A.split("a--b-c", "/[\-]+/") ; => ["a", "b", "c"] currently no way to specify "i" ...
by Chunjee
22 May 2020, 19:07
Forum: Ask For Help
Topic: Can't get my variables right to send email with AHK
Replies: 8
Views: 365

Re: Can't get my variables right to send email with AHK

When I insert that line i get a error regarding my quotes located at "<HTML><BODY>. That error is trying to tell you it doesn't understand the line. ahk doesn't immediately understand that your string from the line line above hasn't ended yet. There are a few ways to make multi-line strings, (LTrim...
by Chunjee
22 May 2020, 15:17
Forum: Ask For Help
Topic: Can't get my variables right to send email with AHK
Replies: 8
Views: 365

Re:

I don't understand the question.

Code: Select all

var := "<p>Logical Access has reviewed your ticket # " strTicket "</p>"
maybe?
by Chunjee
22 May 2020, 11:18
Forum: Ask For Help
Topic: Can't get my variables right to send email with AHK
Replies: 8
Views: 365

Re:

I believe that would be:
email.Subject := "Logical Access has reviewed your ticket # " strTicket

https://www.autohotkey.com/docs/commands/SetExpression.htm
by Chunjee
21 May 2020, 10:36
Forum: Ask For Help
Topic: Help a noob! Topic is solved
Replies: 5
Views: 236

Re: Help a noob! Topic is solved

Yes it is possible. You will need a counter at the global scope to increment each time the hotkey is pressed and what to do inside the hotkey for each increment. Don't forget you will need to reset it back to 1 at the end of the last option.
by Chunjee
20 May 2020, 15:37
Forum: Ask For Help
Topic: Kill Facebook Ads
Replies: 2
Views: 97

Re: Kill Facebook Ads

Suggestion: Browser Extension



ahk only mentality: ImageSearch or Image graphicsearch.ahk
by Chunjee
20 May 2020, 15:34
Forum: Ask For Help
Topic: how to automate this
Replies: 9
Views: 388

Re: how to automate this

I would capture all the ID numbers in an array, then just prepend them with https://steamid.io/lookup/ and send them off the the browser.



Any other way is a fools errand and I will fight this point to the end.
by Chunjee
20 May 2020, 15:20
Forum: Ask For Help
Topic: Help with sum and dividing numbers? Topic is solved
Replies: 8
Views: 404

Re: Help with sum and dividing numbers? Topic is solved

I don't understand this German number format or whatever it is; but this seems to work: A := new biga() ; requires https://www.npmjs.com/package/biga.ahk values := "14 374,00 21 487,00 22 460,00 21 562,00" values := A.replace(values, "/\s/") ;remove whitespace values := A.compact(A.split(values, ",0...
by Chunjee
20 May 2020, 05:11
Forum: Ask For Help
Topic: how to automate this
Replies: 9
Views: 388

Re: how to automate this

Looks for an ID? Where?



Not enough details
by Chunjee
19 May 2020, 16:19
Forum: Scripts and Functions
Topic: [Class] biga.ahk (utilities mirroring Lodash)
Replies: 50
Views: 8241

Re: [Class] biga.ahk (utilities mirroring Lodash)

0.29.1 is now on npm and github

fixes a small issue with .count

When used with a string, it was previously not possible to search for more than a single character. Now any length is acceptable.

Code: Select all

A.count("pebbles", "bb")
; => 1

Go to advanced search