Search found 437 matches

by Chunjee
Yesterday, 19:34
Forum: Ask For Help
Topic: Trying to use for loop to structure redundant data
Replies: 4
Views: 83

Re: Trying to use for loop to structure redundant data

You got some legacy syntax in there and questionable indentation. I think this should help: random, diceroll, 1, 30 ; we need this later remainder := 30 - diceroll ; send tabs for the amount of diceroll result Loop, % diceroll { sleep 25 Send {Tab} } ; send only ONCE after a random amount of tabs Se...
by Chunjee
Yesterday, 12:47
Forum: Scripts and Functions
Topic: [Class] graphicsearch.ahk (ImageSearch strings)
Replies: 10
Views: 940

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: 14
Views: 399

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: 370

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: 89

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: 2624

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: 155

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??' ?
Replies: 6
Views: 124

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

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: 65

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: 365

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: 221

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: 221

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: 221

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: 144

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: 64

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: 288

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: 243

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: 288

Re: how to automate this

Looks for an ID? Where?



Not enough details

Go to advanced search