Search found 4139 matches
- 24 Feb 2021, 05:27
- Forum: Ask For Help
- Topic: Get task scheduler jobs using WMI Topic is solved
- Replies: 2
- Views: 75
Re: Get task scheduler jobs using WMI Topic is solved
read what the page says: ...return a list of all the scheduled tasks on a computer? [...] Use the Win32_ScheduledJob class. Note that this class can only return jobs that are created using either a script or AT.exe. It cannot return information about jobs that are either created by or modified by th...
- 23 Feb 2021, 19:53
- Forum: AutoHotkey v2 Help
- Topic: plz help me convert V1 code to V2 Topic is solved
- Replies: 1
- Views: 101
Re: plz help me convert V1 code to V2 Topic is solved
HideShowTaskbar(shouldHide) { static size := 2*A_PtrSize + 2*4 + 16 + A_PtrSize APPBARDATA := BufferAlloc(size, 0) NumPut('UInt', size, APPBARDATA) NumPut('Ptr', WinExist('ahk_class Shell_TrayWnd'), APPBARDATA, A_PtrSize) static ABS_AUTOHIDE := 0x1, ABS_ALWAYSONTOP := 0x2 NumPut('Ptr', shouldHide ?...
- 23 Feb 2021, 19:42
- Forum: Ask For Help
- Topic: Defaulting Values (on missing object Key_ Topic is solved
- Replies: 7
- Views: 214
Re: Defaulting Values (on missing object Key_ Topic is solved
1. Is there a preferred "pattern" for defaulting values when a key can't be found in an object? u could create ur own custom associative array class implementing meta- __Get() and meta- __Set() and make it return some default values. the problem is this is hard to implement fully/correctly in v1 du...
- 23 Feb 2021, 19:21
- Forum: AutoHotkey v2 Help
- Topic: Weird COM behavior - msgbox causes crash Topic is solved
- Replies: 5
- Views: 179
Re: Weird COM behavior - msgbox causes crash Topic is solved
If a wrapper object's VarType is VT_UNKNOWN (13) or VT_DISPATCH (9) .... Once assigned (if non-null), the pointer will be released automatically when the wrapper object is freed. u first do ObjRelease(test.obj.ptr) which drops the refcount(1 -> 0) and thus the IUnknown::Release() actually frees the...
- 23 Feb 2021, 11:37
- Forum: Wish List
- Topic: Built in Chromium Support
- Replies: 8
- Views: 244
Re: Built in Chromium Support
the issue is not that its not useful. the issue is that lexikos is one guy and he has to juggle both v1 and v2. i think having to also maintain on top of implementing this in the first place would simply be too much. and maintain it ull have to, when google inevitably breaks something and microsoft ...
- 22 Feb 2021, 19:45
- Forum: Bug Reports
- Topic: AHK v2 a124 - Radio value can't be set Topic is solved
- Replies: 5
- Views: 190
Re: AHK v2 a124 - Radio value can't be set Topic is solved
looks like its been fixed already
- 22 Feb 2021, 19:40
- Forum: Ask For Help
- Topic: Doesn't this class create a dangling pointer? Topic is solved
- Replies: 2
- Views: 86
Re: Doesn't this class create a dangling pointer? Topic is solved
yeah, ud have to replace VarSetCapacity with any of the XXXAlloc memory management functions. accessing .__Value after the constructor has returned is undefined behavior
or if ure porting to v2, BufferAlloc doesnt suffer from that issue
or if ure porting to v2, BufferAlloc doesnt suffer from that issue
- 21 Feb 2021, 21:36
- Forum: Ask For Help
- Topic: Noob to DllCalls Topic is solved
- Replies: 3
- Views: 187
Re: Noob to DllCalls Topic is solved
if u got documentation, u read the documentation. if the documentation sucks or u aing got none(which u dont), u read the source. if cant read the source, aint got it(which luckily isnt the case) or cant reverse it, then ure SOL windows is a pointer to a caller(read: you)-allocated array of HWND s(a...
- 21 Feb 2021, 20:59
- Forum: Ask For Help
- Topic: Using regexmatch for and/or searches.
- Replies: 5
- Views: 111
Re: Using regexmatch for and/or searches.
for efficiency
this says:
Code: Select all
if var ~= "\A(?=[^\t]*\t)(?=[^[\]\*]*[[\]\*])"
- check if there's at least one tab. if there is, proceed
- check if there's at least one of [, ] or *
- 21 Feb 2021, 20:37
- Forum: Bug Reports
- Topic: AHK v2 a124 - Radio value can't be set Topic is solved
- Replies: 5
- Views: 190
Re: AHK v2 a124 - Radio value can't be set Topic is solved
its due to a refactoring that left the radio-ctrl case to now incorrectly fallthrough to the picture-ctrl case, instead of the checkbox-ctrl case as it used to be compare old / new u could swap the lines around (and add an additional one in the case further below) and recompile, if u dont want to wa...
- 21 Feb 2021, 12:13
- Forum: AutoHotkey v2 Help
- Topic: Detect keyboard layout code needs fix for v2-a124 Topic is solved
- Replies: 3
- Views: 119
Re: Detect keyboard layout code needs fix for v2-a124 Topic is solved
u need to stop using VatSetXXX and replace them with BufferAlloc.
NumPut calls need to obey the proper signature
NumPut calls need to obey the proper signature
- 19 Feb 2021, 13:52
- Forum: Gaming
- Topic: Auto healing bot
- Replies: 3
- Views: 74
Re: Auto healing bot
for each party member, track the pixels along this x axis: image.png u need to account for the variation in the red shades as they dont seem to be uniform(unless its due to jpeg compression) ull also have to probably use gdip to take snapshots of many pixels at a time rather than looking at them ind...
- 19 Feb 2021, 10:29
- Forum: Ask For Help
- Topic: how does DllCall work?
- Replies: 1
- Views: 94
Re: how does DllCall work?
there are apparently C# libraries that would allow u to dllexport functions from assemblies. how that works exactly is something ull have to research on ur own otherwise, u can load C# code from memory in an AHK script using Lexikos' CLR AHK libraries another way to interop with C# code is to write ...
- 17 Feb 2021, 17:31
- Forum: Gaming
- Topic: accessing a function variable in main script
- Replies: 4
- Views: 55
Re: accessing a function variable in main script
well, if u want to keep using Detect_Window() as both an instance and a static method, ud have to change ur code to something along the lines of: Class Window { Static x := 5 __New(WinTitle := "Calculator", screen_size := "small") { this.w := this.Detect_Window(WinTitle,screen_size).w } Detect_Windo...
- 17 Feb 2021, 05:58
- Forum: Suggestions on documentation improvements
- Topic: SETTIMER definition is not complete
- Replies: 3
- Views: 111
Re: SETTIMER definition is not complete
i think subroutine refers to the piece of code the timer is meant to execute in general
not labels per se
not labels per se
- 17 Feb 2021, 05:50
- Forum: Gaming
- Topic: accessing a function variable in main script
- Replies: 4
- Views: 55
Re: accessing a function variable in main script
w = width u arent saving the width anywhere(except in the local variable w which will be cleared as soon as the function goes out of scope) save it in the class's instance that u have instantiated( win ): this.w := width (and stop using legacy-assignment and other legacy syntax leftovers) only then...
- 17 Feb 2021, 05:35
- Forum: AutoHotkey v2 Help
- Topic: V ...124... error misssing comma
- Replies: 2
- Views: 46
Re: V ...124... error misssing comma
uve inadvertently downloaded the experimental a124-22-g0a70f190 build instead of the regular a124-b53c1e78 due to a temporary mixup
download the correct normal version from here: https://www.autohotkey.com/download/2.0/AutoHotkey_2.0-a124-b53c1e78.zip
download the correct normal version from here: https://www.autohotkey.com/download/2.0/AutoHotkey_2.0-a124-b53c1e78.zip
- 17 Feb 2021, 05:30
- Forum: Bug Reports
- Topic: Settimer not working in v2.0-a124 Topic is solved
- Replies: 6
- Views: 177
Re: Settimer not working in v2.0-a124 Topic is solved
@lexikos or @joedf or whoever is responsible for the ahk frontpage
is where the problem seems to originate from
- 17 Feb 2021, 04:22
- Forum: Bug Reports
- Topic: Version 2.0-a124 Not Defined Topic is solved
- Replies: 2
- Views: 90
Re: Version 2.0-a124 Not Defined Topic is solved
there is no IsFunc in experimental builds per:
lexikos wrote:... IsFunc("name") has also been removed; ...
- 17 Feb 2021, 04:21
- Forum: Bug Reports
- Topic: Settimer not working in v2.0-a124 Topic is solved
- Replies: 6
- Views: 177
Re: Settimer not working in v2.0-a124 Topic is solved
ure running the experimental a124 build, where SetTimer accepts function references only, which is a plain variable reference:
change ur code or download the regular, non-experimental build
Code: Select all
SetTimer(f, 1000)