Search found 4127 matches
- Yesterday, 21:48
- Forum: AutoHotkey v2 Help
- Topic: v2 a125 FileInstall WinGetTransparent cant work? Topic is solved
- Replies: 8
- Views: 201
Re: v2 a125 FileInstall WinGetTransparent cant work? Topic is solved
When I decide to deal with these errors, some situations can be resolved I use "if A_Args.Length" to deal with "if InStr(A_Args[1]" Use "if FileExist" before "FileDelete" if the successful execution of the function is integral to ur script working properly, that's a poor way of handling errors. tak...
- Yesterday, 20:50
- Forum: Other Utilities & Resources
- Topic: Windows 10 Global (App Registered) Hotkeys listing
- Replies: 9
- Views: 4263
Re: Windows 10 Global (App Registered) Hotkeys listing
on my Windows 10, I won't find my registered Vlc global hotkeys in the list (typically, I use Ctrl+Alt+RightKey for next song) on mine it does I can 't imagine there's no central routing registry into which Windows looks up in order to dispatch keyboard events to those apps having registered a call...
- Yesterday, 19:22
- Forum: AutoHotkey v2 Help
- Topic: Window Active or Focus Event?
- Replies: 1
- Views: 50
Re: Window Active or Focus Event?
this sounds like an optimization u'd be wasting ur time implementing. even if u had a thousand callback per hotkey to evaluate, were still talking sub millisecond ranges here u can monitor events by installing either a Shell Hook or a WinEvent Hook: https://docs.microsoft.com/en-us/windows/win32/api...
- 25 Feb 2021, 03:08
- Forum: AutoHotkey v2 Development
- Topic: Unable to change MouseSpeed in a122-123 [SOLVED]
- Replies: 4
- Views: 131
Re: Unable to change MouseSpeed in a122-123 [SOLVED]
thats because depending on what scripts are currently running, SendMode Input might not actually be in effect: https://lexikos.github.io/v2/docs/commands/Send.htm#SendInputUnavail
- 24 Feb 2021, 15:30
- Forum: Bug Reports
- Topic: SetKeyDelay is not applied
- Replies: 7
- Views: 240
Re: SetKeyDelay is not applied
i dont get what ure asking the auto-execute thread A is currently running the user presses the context-sensitive hook hotkey Q the auto-execute thread A is suspended a new thread is launched B , responsible for evaluating the hotkey conditions . this thread inherits any settings the auto-execute thr...
- 24 Feb 2021, 15:06
- Forum: AutoHotkey v2 Development
- Topic: Unable to change MouseSpeed in a122-123 [SOLVED]
- Replies: 4
- Views: 131
Re: Unable to change MouseSpeed in a122-123
SendMode('Input') being the default in v2Speed is ignored for SendInput/Play modes; they move the mouse instantaneously
- 24 Feb 2021, 07:40
- Forum: Bug Reports
- Topic: SetKeyDelay is not applied
- Replies: 7
- Views: 240
Re: SetKeyDelay is not applied
what is it that u think is wrong here? the thread responsible for running hotkey conditionals is not the thread the hotkey is going to be launched in(assuming the conditions are met) nor is it the auto-execute thread(so u can modify other newly-launched threads' settings like u presumably intended t...
- 24 Feb 2021, 05:42
- Forum: AutoHotkey v2 Help
- Topic: v2 a125 FileInstall WinGetTransparent cant work? Topic is solved
- Replies: 8
- Views: 201
Re: v2 a125 FileInstall WinGetTransparent cant work? Topic is solved
none of the functions require it, per se u can have a general error sink handler installed, or even multiple of them, or u can even have none at all and let the user decide at runtime how the script should proceed when an unhandled exception is thrown I want to know whether to use try is a normal op...
- 24 Feb 2021, 05:27
- Forum: Ask For Help
- Topic: Get task scheduler jobs using WMI Topic is solved
- Replies: 2
- Views: 71
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: 93
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: 192
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: 167
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: 226
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
- Replies: 5
- Views: 180
Re: AHK v2 a124 - Radio value can't be set
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: 83
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: 174
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: 104
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
- Replies: 5
- Views: 180
Re: AHK v2 a124 - Radio value can't be set
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
- Replies: 3
- Views: 110
Re: Detect keyboard layout code needs fix for v2-a124
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: 62
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...