Search found 2609 matches

by swagfag
04 Jul 2019, 10:56
Forum: Ask For Help
Topic: Change the field delimiter to ","
Replies: 5
Views: 233

Re: Change the field delimiter to ","

if u managed to do that(turn whatever random delimiter into a comma), u wouldnt need to use the csv parsing loop. the file will have already had to have been parsed by that point
by swagfag
03 Jul 2019, 10:52
Forum: Ask For Help
Topic: Crashing with exception code c00000fd (Stack Overflow) after trying to create instance of class Topic is solved
Replies: 2
Views: 128

Re: Crashing with exception code c00000fd (Stack Overflow) after trying to create instance of class Topic is solved

Code: Select all

Press[]
    {
        get {
            return this.Press
        }
        set {
            return this.Press := value
        }
    }
ur property has no backing field. once u do instance.Press := "something" its infinite recursion time
by swagfag
03 Jul 2019, 08:57
Forum: Ask For Help
Topic: Duplicate an array and change the value Topic is solved
Replies: 11
Views: 429

Re: Duplicate an array and change the value Topic is solved

uhhhhh nononoononononono, waitaminute holdon.. .Clone() doesnt accept any parameters, does it? i think ur arr2 only contains [["hello"]] and even if u were to clone the outer array, its elements would still point to the same 2 inner arrays, so ud be changing the value in both of them regardless u ne...
by swagfag
03 Jul 2019, 08:44
Forum: Ask For Help
Topic: Passing Multiple Variables into Function
Replies: 3
Views: 154

Re: Passing Multiple Variables into Function

it doesnt make any sense to me. id have to see how u tried to use/call the function
by swagfag
02 Jul 2019, 15:11
Forum: Ask For Help
Topic: Passing Multiple Variables into Function
Replies: 3
Views: 154

Re: Passing Multiple Variables into Function

Code: Select all

MsgBox % MultiStrReplace(" &@^", [A_Space, "+"], ["&", "%26"], ["@", "%40"], ["^", "%5E"])

MultiStrReplace(str, Replacements*) {
	for each, Pair in Replacements
		str := StrReplace(str, Pair[1], Pair[2])

	return str
}
by swagfag
02 Jul 2019, 03:32
Forum: Ask For Help
Topic: String as parameter cannot be read by Run?
Replies: 6
Views: 578

Re: String as parameter cannot be read by Run?

u can try one of these

Code: Select all

runFolder(A_Desktop)
runFolder("explorer %USERPROFILE%\Desktop")
by swagfag
02 Jul 2019, 02:29
Forum: Ask For Help
Topic: How to move the mouse to a certain pixel color and again move to few pixels on right and send leftclick? Topic is solved
Replies: 2
Views: 332

Re: How to move the mouse to a certain pixel color and again move to few pixels on right and send leftclick? Topic is solved

CoordMode Mouse CoordMode Pixel F1:: PixelSearch x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, 0x0000FF, 0, Fast RGB if (ErrorLevel = 0) { MouseMove x, y MsgBox nd again move to 200 px right and click left mouse button. MouseMove 200, 0, , R Click } else if (ErrorLevel = 1) MsgBox it was not found, el...
by swagfag
02 Jul 2019, 02:23
Forum: Ask For Help
Topic: String as parameter cannot be read by Run?
Replies: 6
Views: 578

Re: String as parameter cannot be read by Run?

its runFolder("C:\Users\" A_UserName "\Desktop")
by swagfag
30 Jun 2019, 09:32
Forum: Ask For Help
Topic: Passing variables between scripts Topic is solved
Replies: 16
Views: 698

Re: Passing variables between scripts Topic is solved

if u want to do multithreading, port ur script over to ahk_h and do multithreading. dont come up with the code-equivalent of a convoluted rube goldberg machine held up by nothing but spit and prayers. there's no getting around not using any of the advanced/sophisticated stuff because the very thing ...
by swagfag
29 Jun 2019, 08:20
Forum: Ask For Help
Topic: Retrieve string used for creating a thread
Replies: 12
Views: 755

Re: Retrieve string used for creating a thread

u could pass MyScript as a command line argument to the thread, then later use a combination of AhkGetVar and Alias to retrieve the thread's A_Args[1] which will contain the script u passed in but why tho? u can simply store MyScript in ur main script when u create the thread for the first time. und...
by swagfag
28 Jun 2019, 12:03
Forum: Ask For Help
Topic: Is there a simple and reliable way to process JSON data? Topic is solved
Replies: 48
Views: 1715

Re: Is there a simple and reliable way to process JSON data? Topic is solved

well whatever, this thread has run its course
ill acknowledge that ur lib also handles slavic runes whereas cocos does not(although i havent run the examples, just going off of what u said) and we can conclude this
by swagfag
28 Jun 2019, 10:32
Forum: AutoHotkey v2 Help
Topic: [v2] ComObjConnect not working
Replies: 9
Views: 503

Re: [v2] ComObjConnect not working

I think it'll get more traction in bugs
by swagfag
28 Jun 2019, 08:41
Forum: Ask For Help
Topic: VarSetCapacity & Struct size
Replies: 24
Views: 918

Re: VarSetCapacity & Struct size

yes, use dependencywalker to find out which functions are exported and what theyre called
by swagfag
28 Jun 2019, 05:38
Forum: Ask For Help
Topic: How do you update a global variable from inside a function
Replies: 4
Views: 207

Re: How do you update a global variable from inside a function

there are no functions in this script. the code can be reduced to this: count := 0 NumpadPgUp:: ;cycles through the first 3 video tracks and assigns the source video to them if (count = 0) { ;the first time it runs it should do this ; ... count := 1 ;updates the variable count so next time the funct...
by swagfag
28 Jun 2019, 05:25
Forum: Ask For Help
Topic: Is there a simple and reliable way to process JSON data? Topic is solved
Replies: 48
Views: 1715

Re: Is there a simple and reliable way to process JSON data? Topic is solved

is the example provided not real enough? ignore the fact that its generated and pretend it was a thousand element collection returned by a web api or a shitty single player rpg's save file as json with all ur characters, with all their items and whatnot in it. doubt ud fancy going through it with Ge...
by swagfag
28 Jun 2019, 05:05
Forum: Forum Issues
Topic: v2 help subforum Topic is solved
Replies: 10
Views: 571

Re: v2 help subforum Topic is solved

awesome, now people can find it more easily
by swagfag
27 Jun 2019, 12:47
Forum: Ask For Help
Topic: Is there a simple and reliable way to process JSON data? Topic is solved
Replies: 48
Views: 1715

Re: Is there a simple and reliable way to process JSON data? Topic is solved

of course, speed depends on the use case, but it isnt something to ignore either. if there are many json files that need loaded, or a single big one, or a single one that needs constantly reloaded, then i sure wouldn't want to spend the rest of eternity waiting on GetKey to return

Go to advanced search