Search found 6220 matches

by swagfag
29 Jan 2020, 03:39
Forum: Gaming Help (v1)
Topic: Simultaneously running multiple subroutines
Replies: 2
Views: 640

Re: Simultaneously running multiple subroutines

convert these loops to quick firing settimers.
theres no simultaneously running multiple anything in ahk. ahk is single threaded. u need ahk_h for multi threading but thats overkill for what ure trying to do
by swagfag
28 Jan 2020, 12:19
Forum: Ask for Help (v2)
Topic: Gui not autosizing properly
Replies: 3
Views: 2143

Re: Gui not autosizing properly

u create the text control with the default font. its dimensions get calculated and the control is created. then u bump the text size up a notch and change the font face. the dimensions remain the same, but now the text has gotten bigger, some of it is no longer visible. u can setFont on the GUI, the...
by swagfag
28 Jan 2020, 09:02
Forum: Ask for Help (v1)
Topic: Function in external file with try/catch/Com Interface MUCH SLOWER
Replies: 22
Views: 3206

Re: Function in external file with try/catch/Com Interface MUCH SLOWER

the conclusion is "ahk is applicative." the explanation is the sentence that follows(or justmes explanation 10 posts ago) the contradiction is ur whole catch-block. the if-statement belongs to the catch-block, it is NOT a standalone if-statement(despite the dubious indentation suggesting otherwise) ...
by swagfag
27 Jan 2020, 16:53
Forum: Ask for Help (v1)
Topic: Function in external file with try/catch/Com Interface MUCH SLOWER
Replies: 22
Views: 3206

Re: Function in external file with try/catch/Com Interface MUCH SLOWER

ahk is applicative. function arguments are evaluated first, from inside out. u are wrong in assuming the inline code and the function u have written are equivalent. they are not. can u understand why( ByRef or not) try thisThrows() thisThrows() { throw } is NOT the same as myFunc(thisThrows()) myFun...
by swagfag
27 Jan 2020, 16:38
Forum: Ask for Help (v1)
Topic: What em I doing wrong? Topic is solved
Replies: 4
Views: 378

Re: What em I doing wrong? Topic is solved

just forget that legacy syntax exists and learn the expression syntax instead:

Code: Select all

body := 5
var := fileArray[body]
MsgBox % var
u wont be confused any more
by swagfag
27 Jan 2020, 13:40
Forum: Ask for Help (v1)
Topic: Calling a class object by string name
Replies: 7
Views: 1126

Re: Calling a class object by string name

its more likely to fail silently but rest assured, fail it shall
by swagfag
27 Jan 2020, 13:01
Forum: Ask for Help (v1)
Topic: Calling a class object by string name
Replies: 7
Views: 1126

Re: Calling a class object by string name

v1 makes no distinction between static methods. v2 does.
this method here is simply a method of the object(class is basically a made up construct) MyClass
by swagfag
24 Jan 2020, 18:05
Forum: Ask for Help (v1)
Topic: Is it possible to loop thru words ?
Replies: 2
Views: 423

Re: Is it possible to loop thru words ?

Code: Select all

for each, color in StrSplit("red green blue violet white black", " ")
	MsgBox % color
by swagfag
24 Jan 2020, 16:24
Forum: Ask for Help (v1)
Topic: Hard time understanding an object.
Replies: 4
Views: 521

Re: Hard time understanding an object.

u cant assign a button to an assoc. array's key(u can in v2), u can assign the button's hwnd instead and then exclusively use GuiControl and GuiControGet with the hwnd to interact with the button
by swagfag
23 Jan 2020, 18:24
Forum: Bug Reports
Topic: [v2.108 - BUG?] Slow Loop Parse for expression Topic is solved
Replies: 16
Views: 5351

Re: [v2.108 - BUG?] Slow Loop Parse for expression Topic is solved

theres some(up to) 10 second timer(what the fuck) that keeps firing if u give it too large a string https://i.imgur.com/m9me88B.png // For v1.0.31, this is no done right before returning so that any script function calls // made by our calls to ExpandExpression() will now be done. There might still ...
by swagfag
23 Jan 2020, 14:06
Forum: Gaming Help (v1)
Topic: Game blocking mouse clicks from AHK
Replies: 9
Views: 4978

Re: Game blocking mouse clicks from AHK

idk, try the AHI thread
so long as uve installed everything correctly, have placed all files in their correct locations, have not exceeded AHI's peripheral limit, have a recent enough dot net framework, are running as admin, have followed the code examples, it should work
by swagfag
23 Jan 2020, 04:16
Forum: Ask for Help (v1)
Topic: filereadline not work please help
Replies: 2
Views: 492

Re: filereadline not work please help

dont use loop+filereadline
use fileread+loopparse(on newlines)
by swagfag
23 Jan 2020, 02:47
Forum: Ask for Help (v1)
Topic: How do I iterate through a COM list? Topic is solved
Replies: 2
Views: 394

Re: How do I iterate through a COM list? Topic is solved

Code: Select all

for oFile in oFolder.Files
	... oFile.Name
by swagfag
22 Jan 2020, 19:21
Forum: Ask for Help (v1)
Topic: Writing a try/catch statement in ONE (1) line
Replies: 10
Views: 1828

Re: Writing a try/catch statement in ONE (1) line

at all, at all. something can work correctly and be misused still despite that

Code: Select all

loop
{
	try
	{
		X1.Range("A1").Value := "=ROW()"
		break
	}
	catch
		sleep 10
}
by swagfag
22 Jan 2020, 13:18
Forum: Ask for Help (v1)
Topic: Writing a try/catch statement in ONE (1) line
Replies: 10
Views: 1828

Re: Writing a try/catch statement in ONE (1) line

u can chain functions with a comma a(), b(), c() (not recommended) u can chain some commands, legacy IfEqual (super not recommended) u cant chain keywords also i dont understand ur construct, ure misusing the concept of try/catch: loop { try (X1.Range("A1").Value := "=ROW()", error:=0) catch error s...
by swagfag
22 Jan 2020, 12:04
Forum: Forum Issues
Topic: Tons of code = lag, Android Chrome bug resolved
Replies: 5
Views: 2665

Re: Tons of code = lag, Android Chrome bug resolved

tbf i had rage reported a bunch of ur threads when my phone crashed, so the apologies are indeed warranted
by swagfag
22 Jan 2020, 11:59
Forum: Scripts and Functions (v1)
Topic: Facade Functional Programming Suite
Replies: 80
Views: 27338

Re: Facade Functional Programming Suite

dict is a function, ure trying to apply ahk's object syntax. i dont know how dict works, but obviously thats the wrong way to call it
by swagfag
22 Jan 2020, 10:46
Forum: Ask for Help (v1)
Topic: Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved
Replies: 13
Views: 1873

Re: Possible to get as much debugging tips when handling exception as from unhandled crash? Topic is solved

i think lexikos needs to see this tutorial by nnnik. and also make it work for compiled scripts, and make it enabled by default. lol

Go to advanced search