Search found 3974 matches

by swagfag
Today, 01:59
Forum: Ask For Help
Topic: How can i adapt this code to another language?
Replies: 2
Views: 109

Re: How can i adapt this code to another language?

u lookup in AHK's source how the commands/functions are implemented and reimplement them natively(if possible) in ur target language
another way is linking(if possible) to autohotkey.dll and have it launch a plain ahk script
by swagfag
Today, 01:50
Forum: AutoHotkey v2 Help
Topic: Getting a function reference to a method in a class you are writing
Replies: 2
Views: 66

Re: Getting a function reference to a method in a class you are writing

Code: Select all

global MyGuiObj := MyGUIClass.New()

class MyGUIClass extends Gui
{
	__New() {
		super.__New(, , this)
		this.Add('Edit').OnEvent('Change', 'mycallback')
		this.Show()
	}

	mycallback(GuiCtrlObj, Info){
	}
}
by swagfag
23 Sep 2020, 19:41
Forum: Bug Reports
Topic: [a122] wrong string property call when string is name of func
Replies: 1
Views: 259

Re: [a122] wrong string property call when string is name of func

id consider it a bug. its not expected nor is it documented
by swagfag
06 Sep 2020, 23:58
Forum: Bug Reports
Topic: #MaxThreadsPerHotkey rejects starting of new thread (when limit not reached yet) Topic is solved
Replies: 3
Views: 131

Re: #MaxThreadsPerHotkey rejects starting of new thread (when limit not reached yet) Topic is solved

u press F12 , a thread is started, a MsgBox is displayed u press F12 , the first thread is interrupted, a new second thread is started, a MsgBox is displayed u press F12 , the second thread is interrupted, a new third thread is started, a MsgBox is displayed u dismiss MsgBox es 1 and 2 and (incorre...
by swagfag
05 Sep 2020, 03:25
Forum: Ask For Help
Topic: Need Help On ClassMemory
Replies: 4
Views: 175

Re: NEED HELP ON CLASSMEMORY (RHCP!)

Code: Select all

f() {
    static _ := f()
    ListLines Off
}
has to be placed before any other static initializers in the autoexec section
by swagfag
04 Sep 2020, 12:14
Forum: Ask For Help
Topic: Translate from C# to AHK complicated?
Replies: 6
Views: 204

Re: Translate from C# to AHK complicated?

why dont u use the apparently available c api instead?
http://csdklab.com/WebHelp/recapi/PLRECOG.html
by swagfag
04 Sep 2020, 07:28
Forum: AutoHotkey v2 Help
Topic: OnMessage unregister Topic is solved
Replies: 2
Views: 53

Re: OnMessage unregister Topic is solved

pass the same reference u used to register the message with.
dont create a new reference
by swagfag
03 Sep 2020, 05:39
Forum: Ask For Help
Topic: Double condition?
Replies: 3
Views: 61

Re: Double condition?

Code: Select all

Loop
	Sleep 100
until GetKeyState("Esc") || WinExist("window's name")
by swagfag
29 Aug 2020, 09:52
Forum: Ask For Help
Topic: AutoIt to AutoHotkey
Replies: 2
Views: 81

Re: AutoIt to AutoHotkey

the code uve posted is truncated explicitly link(if needed) hModule := DllCall("LoadLibrary", "Str", "lib\HelpSDK.dll", "Ptr") allocate space for ur struct, the exact space needed is up to u to figure out VarSetCapacity(struct, theSizeInBytes) ret := DllCall("lib\HelpSDK.dll\helpID", "Ptr", &struct)...
by swagfag
28 Aug 2020, 06:59
Forum: Ask For Help
Topic: Only trigger a function in the last iteration of a forEach loop
Replies: 19
Views: 584

Re: Only trigger a function in the last iteration of a forEach loop

pool callbacks arriving in a short time frame, defer their handling until later on ReportFunction(Directory, Changes) { static Events := {} if Events.HasKey(Directory) Events[Directory].Push(Changes*) else Events[Directory] := Changes SetTimer ProcessEvents, -100 return ProcessEvents: for dir, Chang...
by swagfag
25 Aug 2020, 17:42
Forum: AutoHotkey v2 Help
Topic: Do you believe empty string is false ?
Replies: 4
Views: 168

Re: Do you believe empty string is false ?

in the context of a conditional expression, evaluating an empty string is fals y (read: the else-branch is taken), but in no way does that imply that the empty string is (the built-in variable, containing the integer 0 ) false . dogs breathe. people breathe. therefore, dogs are people. the premise "...
by swagfag
24 Aug 2020, 16:52
Forum: Ask For Help
Topic: Keyboard Light Scripts Not Working
Replies: 1
Views: 86

Re: Keyboard Light Scripts Not Working

autohotkey doesnt have anything led-related builtin, so what is it exactly that u have tried? u can: use whatever functions the device driver/software's SDK exposes(if any) reverse the data packets the device's driver/software sends and send them urself instead(eg with WinUSB, libusb, other usb driv...
by swagfag
23 Aug 2020, 16:18
Forum: Ich brauche Hilfe
Topic: Verständnisproblem von #Warn-Meldung Topic is solved
Replies: 7
Views: 1719

Re: Verständnisproblem von #Warn-Meldung Topic is solved

spurious warning, suppress it with local b
its in the english docs, its probably in the german docs too if u lookup warn
by swagfag
22 Aug 2020, 21:03
Forum: AutoHotkey v2 Help
Topic: [a122] InputHook issues
Replies: 6
Views: 1954

Re: [a122] InputHook issues

u mark ur autoexec thread Critical (which in turn renders any newly spawned threads Critical as well) u start a blocking InputHook (inside the a Critical thread) u hit a bunch of keys a bunch of would-be Critical OnChar callbacks get buffered(since ure still in a blocking wait inside ur Critical , ...
by swagfag
22 Aug 2020, 16:10
Forum: Bug Reports
Topic: FileRecycleEmpty command in recycle bin already empty's behavior
Replies: 4
Views: 1979

Re: FileRecycleEmpty command in recycle bin already empty's behavior

If recyclebin is empty FileRecycleEmpty command will show "Failed". it will... but so what? microsoft coded it to do that. u cant empty an already empty bin. what bug are u reporting here? that it shows "Failed"? it throws if it cant carry out the operation. this is consistent with the already docu...
by swagfag
22 Aug 2020, 15:56
Forum: Ask For Help
Topic: Sorting Objects in an Array by a property Topic is solved
Replies: 8
Views: 2046

Re: Arrays of Arrays complex issue Topic is solved

id sooner switch to using a rdbms rather than attempting to emulate one in code
by swagfag
22 Aug 2020, 15:53
Forum: Ask For Help
Topic: Object syntax enclosed in percent signs %obj.member%
Replies: 5
Views: 1447

Re: Object syntax enclosed in percent signs %obj.member%

Code: Select all

Gui, % this.idGUITemp ":Show", % "X" this.pxX " Y" this.pxY " NoActivate"
by swagfag
19 Aug 2020, 13:27
Forum: General Discussion
Topic: We just broke the most users online number again!
Replies: 5
Views: 1005

Re: We just broke the most users online number again!

bots or someone mentioning ahk on social media
i wonder if theres a certain thread whose views have spiked

Go to advanced search