Search found 6220 matches

by swagfag
10 Apr 2023, 08:34
Forum: Ask for Help (v2)
Topic: Simple AHK wrapper for SDL2 joystick Topic is solved
Replies: 11
Views: 720

Re: Simple AHK wrapper for SDL2 joystick Topic is solved

no, like this:

Code: Select all

joystick := SDL2.SDL_JoystickOpen(0)
guid := Buffer(16,0)
pguid := DllCall("SDL2.dll\SDL_JoystickGetGUID", 'Ptr', guid, "Ptr", joystick,"CDecl Ptr")
also a GUID is not a string, so trying to use StrGet on it makes no sense
by swagfag
10 Apr 2023, 08:23
Forum: Ask for Help (v1)
Topic: Help binding RegisterCallback to a method inside a class Topic is solved
Replies: 9
Views: 2181

Re: Help binding RegisterCallback to a method inside a class Topic is solved

things to fix remove CoUn/Inititalize (ahk has already called this internally via OleInitialize ) fix all DllCall parameter types to match the parameter types of whatever function ure trying to invoke, according to that particular function's signature (ie if something is meant to be a pointer type, ...
by swagfag
10 Apr 2023, 02:18
Forum: Ask for Help (v2)
Topic: Simple AHK wrapper for SDL2 joystick Topic is solved
Replies: 11
Views: 720

Re: Simple AHK wrapper for SDL2 joystick Topic is solved

pass a pointer to a caller-allocated(ie by you) 16byte Buffer as the first hidden parameter
by swagfag
08 Apr 2023, 19:27
Forum: Ask for Help (v2)
Topic: How do we get the object that registered the callback? Topic is solved
Replies: 3
Views: 316

Re: How do we get the object that registered the callback? Topic is solved

Code: Select all

LeftArrow.OnEvent("Click",ArrowClicked)
RightArrow.OnEvent("Click",ArrowClicked)

ArrowClicked(this, *)
{
	debug(this)
}
by swagfag
07 Apr 2023, 19:57
Forum: Ask for Help (v1)
Topic: gLables in Groupbox?
Replies: 3
Views: 195

Re: gLables in Groupbox?

u write

Code: Select all

Gui, Add, GroupBox, y+15 w80 h50 Section, OUTS
and then u align whatever controls follow according to the "Section" coordinate system, ie xs ys etc
by swagfag
07 Apr 2023, 19:52
Forum: Ask for Help (v2)
Topic: [V2] Gui in class
Replies: 7
Views: 865

Re: [V2] Gui in class

the Delete method should not be called, because its just a method u wrote, whose name has no special significance to ahk the __Delete method should not be called either, even if uve already cleared the variable that holds a reference to ur object, since in the process of writing all this code, uve i...
by swagfag
07 Apr 2023, 18:24
Forum: Ask for Help (v1)
Topic: Hotkey at specific coordinates Topic is solved
Replies: 6
Views: 520

Re: Hotkey at specific coordinates Topic is solved

depends what the "job" is
by swagfag
07 Apr 2023, 17:53
Forum: Ask for Help (v2)
Topic: [v2] Gui Event Size is blocking underlying thread
Replies: 2
Views: 595

[v2] Gui Event Size is blocking underlying thread

#Requires AutoHotkey v2.0.2 qpcNow() => (DllCall('QueryPerformanceCounter', 'Int64*', &ticksNow := 0), ticksNow) tool(msg, y, whichTooltip) => ToolTip(msg A_Tab qpcNow(), 200, y, whichTooltip) G := Gui('+Resize') G.OnEvent('Size', OnSize) OnSize(*) { tool('sizeINIT', 200, 1) tool('sizeEND', 240, 2)...
by swagfag
07 Apr 2023, 10:56
Forum: Ask for Help (v1)
Topic: Convert cURL to AHK for TVDB API Topic is solved
Replies: 13
Views: 1478

Re: Convert cURL to AHK for TVDB API Topic is solved

in postman ure sending multipart formdata. in ahk ure sending json. clearly the api endpoint doesnt expect to receive json. u need to send multipart formdata instead
by swagfag
07 Apr 2023, 05:53
Forum: Ask for Help (v1)
Topic: stop loop
Replies: 4
Views: 367

Re: stop loop

i dont see how having read the documentation and having looked at the examples in the documentation u would get such an impression. unless of course u didnt do any of that.. u cant force loops to break externally due to the single threaded nature of ahk. u can only interrupt the pseudothread that th...
by swagfag
06 Apr 2023, 12:42
Forum: Ask for Help (v1)
Topic: Does AHK support other languages?
Replies: 5
Views: 365

Re: Does AHK support other languages?

so long as ure using the Unicode interpreters and saving ur script file as UTF-8 WITH BOM
by swagfag
06 Apr 2023, 12:39
Forum: Ask for Help (v1)
Topic: AHK Portable , where to download? Topic is solved
Replies: 5
Views: 13320

Re: AHK Portable , where to download? Topic is solved

because its not implemented. ignore it. use the zip
by swagfag
05 Apr 2023, 20:03
Forum: Ask for Help (v2)
Topic: Excel formatted cells (testing needed) Topic is solved
Replies: 1
Views: 236

Re: Excel formatted cells (testing needed) Topic is solved

its working in Excel 365 Version 2208 Build 16.0.15601.20540
by swagfag
05 Apr 2023, 18:29
Forum: Ask for Help (v1)
Topic: Help with UIA library
Replies: 2
Views: 314

Re: Help with UIA library

for all i care "Name=Sign" may be fetching some element other than a Button (or even the Button)
by swagfag
05 Apr 2023, 18:13
Forum: Ask for Help (v1)
Topic: Simple IE-GUI stops working after 9968 times create + destroy
Replies: 6
Views: 388

Re: Simple IE-GUI stops working after 9968 times create + destroy

the script is logical nonsense. the first if-statement can only ever be entered-into and executed once
anyway, "stop working" and "file will not be written anymore" are two very different concepts, lightyears apart. u can check ListLines and see what the script is doing once it "stops working" again
by swagfag
05 Apr 2023, 17:42
Forum: Ask for Help (v1)
Topic: Regex: trying to make part optional... Topic is solved
Replies: 2
Views: 307

Re: Regex: trying to make part optional... Topic is solved

(:(\*|\?|\w)*:)(..*)(::)(.*?)(?=\s;|$)\s*(;.*)? ^^^^^ - start matching the 'ReplacementText' lazily... ^^^^^^^^^ - ...until u find what would be the start of a single line comment or the end of the string ^^^ - discard trailing whitespace after 'ReplacementText' ^^^^^^ - match a single-line comment...
by swagfag
05 Apr 2023, 17:00
Forum: Ask for Help (v2)
Topic: ComObject WinHttp - return has capped variable?
Replies: 1
Views: 197

Re: ComObject WinHttp - return has capped variable?

no, ur api "return has capped variable" https://airtable.com/developers/web/api/list-records The server returns one page of records at a time. Each page will contain pageSize records, which is 100 by default. If there are more records, the response will contain an offset. To fetch the next page of r...
by swagfag
05 Apr 2023, 16:19
Forum: Ask for Help (v2)
Topic: Converting from v1 to v2 help needed
Replies: 2
Views: 193

Re: Converting from v1 to v2 help needed

it would be probably because ur N++ is running as admin, whereas ur ahk script is not
either make both run as admin, none run as admin, or at least the ahk run as admin

Go to advanced search