Search found 4412 matches
- 24 May 2024, 08:37
- Forum: Ask for Help (v2)
- Topic: Where to find CLSID, IID
- Replies: 11
- Views: 832
Re: Where to find CLSID, IID
#Requires AutoHotkey v2 str1 := 'Windows.Win32.Foundation.Metadata.Guid(2559676844u, 10495, 19696, 149, 132, 224, 208, 120, 188, 35, 150)' str2 := 'Guid(753369104u, 29915, 18620, 156, 106, 16, 243, 114, 73, 87, 35)' str3 := 'GUID ExampleGUID = {0x12345678, 0x1234, 0x5678, {0x12, 0x34, 0x56, 0x78, 0...
- 24 May 2024, 03:30
- Forum: Ask for Help (v1)
- Topic: How to save image in clipboard.
- Replies: 90
- Views: 14667
- 23 May 2024, 21:10
- Forum: Ask for Help (v2)
- Topic: Different output depends on how long to hold a key Topic is solved
- Replies: 5
- Views: 420
Re: Different output depends on how long to hold a key Topic is solved
You can make it a little easier:
![Smile :)](./images/smilies/icon_e_smile.gif)
Code: Select all
F3:: {
BlockInput('MouseMove'),
KeyWait('F3', 'T.3') && Send('{Enter}')
KeyWait 'F3'
BlockInput 'MouseMoveOff'
}
![Smile :)](./images/smilies/icon_e_smile.gif)
- 23 May 2024, 17:03
- Forum: Ask for Help (v1)
- Topic: How to save image in clipboard.
- Replies: 90
- Views: 14667
- 22 May 2024, 18:27
- Forum: Ask for Help (v2)
- Topic: Where to find CLSID, IID
- Replies: 11
- Views: 832
Re: Where to find CLSID, IID
Thanks, figured it out, it's all showing up now! ![O7 < I Salute thee! :salute:](./images/smilies/salute.gif)
![O7 < I Salute thee! :salute:](./images/smilies/salute.gif)
- 22 May 2024, 10:59
- Forum: Ask for Help (v2)
- Topic: Where to find CLSID, IID
- Replies: 11
- Views: 832
Re: Where to find CLSID, IID
gekunfei https://www.magnumdb.com/ https://www.magnumdb.com/search?q=*LaunchSourceAppUserModelId thqby I tried to install ILSpy, however: 2024.05.22-18.47.14.2.png .NET 8.0 was also installed. What could be the problem? Other constants are found, but sometimes in this form: 2024.05.22-19.01.56.8.png
- 21 May 2024, 16:40
- Forum: Ask for Help (v1)
- Topic: How to save image in clipboard.
- Replies: 90
- Views: 14667
Re: How to save image in clipboard.
There is no difference in using "Ptr" inside or outside functions. With handles and pointers you must always use "Ptr". So the correct option is to always use "Ptr": DllCall("DeleteObject", "Ptr", hbm) as much as DllCall("SetClipboardData","uint",0x2," Ptr ",hbm) Also, if the return value of DllCall...
- 20 May 2024, 20:13
- Forum: Ask for Help (v2)
- Topic: Reopen Last closed window script (v1 -> v2) Topic is solved
- Replies: 9
- Views: 676
Re: Reopen Last closed window script (v1 -> v2) Topic is solved
But somehow the script throws no error and works regardless? If you run your variant, open any folder with other folders inside it, and in the same window go to another folder, then close that window, then try to open the last closed one by hotkey - you will see what the problem is. My attempt I'd ...
- 17 May 2024, 18:52
- Forum: Ask for Help (v2)
- Topic: Clear Win10 notification alert history from v1 to v2.
- Replies: 7
- Views: 510
Re: Clear Win10 notification alert history from v1 to v2.
f := {Close:10, get_Count:7, get_Current:6, get_Id:8, get_Item:6, get_Status:7, GetNotificationsAsync:10, GetResults:8, RemoveNotification:13, RequestAccessAsync:6} This approach won't always work because code may use interfaces whose some methods have the same names but different offsets, for exam...
- 17 May 2024, 18:35
- Forum: Ask for Help (v1)
- Topic: How to save image in clipboard.
- Replies: 90
- Views: 14667
Re: How to save image in clipboard.
Whether "Ptr" or "Int" is used depends on the size of the data that is specified after it. DllCall("DeleteObject","uint",hbm) Here hbm refers to the "handle" data type. In 32-bit processes this type occupies 32 bits and in 64-bit processes it occupies 64 bits. That's why it is always better to speci...
- 17 May 2024, 03:52
- Forum: Ask for Help (v2)
- Topic: ComObjectArray how to Topic is solved
- Replies: 2
- Views: 211
Re: ComObjectArray how to Topic is solved
The object returned by the ResponseBody method is not what you are assuming. It is a SafeArray , which is an array of bytes. However, if the site returns a JSON string, you may well be able to turn it into an AHK object using libraries, of which there are several on our site. #Requires AutoHotkey v2...
- 17 May 2024, 03:45
- Forum: Ask for Help (v2)
- Topic: Tray app to change power plans
- Replies: 10
- Views: 571
Re: Tray app to change power plans
Solving this task, it is quite possible to do without external applications and libraries. :) #Requires AutoHotkey v2 class PowerSchemeSwitch { /* This class modifies the script's tray icon menu so that you can switch the computer's power scheme through it. */ static __New() { Persistent this.knownP...
- 16 May 2024, 14:39
- Forum: Ask for Help (v1)
- Topic: How to save image in clipboard.
- Replies: 90
- Views: 14667
Re: How to save image in clipboard.
So regarding BOTH the above TWO codes, CODE 1 & CODE 2, the DeleteObject() is correctly used in BOTH CODES, so i must not worry for any memory leak, please? Correct. Now, the reason you answer that the variable name does not matter, it is because the (i) is the ONLY one variable in the "MAIN" code ...
- 16 May 2024, 14:23
- Forum: Ask for Help (v2)
- Topic: Clear Win10 notification alert history from v1 to v2.
- Replies: 7
- Views: 510
Re: Clear Win10 notification alert history from v1 to v2.
It looks like you are defining a meta-function that gets called when a ComValue is called in order to implement a ComCall. Yeah, that's right. When we use the ComCall() function, we need to specify the method offset in the vtable in the first parameter. To avoid using "magic numbers", I wrote the c...
- 14 May 2024, 12:55
- Forum: Ask for Help (v2)
- Topic: Clear Win10 notification alert history from v1 to v2.
- Replies: 7
- Views: 510
Re: Clear Win10 notification alert history from v1 to v2.
#Requires AutoHotkey v2 ClearNotifications() ClearNotifications() { static COMClass := 'Windows.UI.Notifications.Management.UserNotificationListener' , IID_IUserNotificationListenerStatics := '{FF6123CF-4386-4AA3-B73D-B804E5B63B23}' , UserNotificationListenerAccessStatus := ['Unspecified', 'Allowed...
- 13 May 2024, 14:44
- Forum: Ask for Help (v2)
- Topic: String Manipulation between ^ and /
- Replies: 22
- Views: 1466
Re: String Manipulation between ^ and /
@sofista
You have extra parentheses: RegExMatch(str, "=(?<year>..)(?<month>..)", &m)
You have extra parentheses: RegExMatch(str, "=(?<year>..)(?<month>..)", &m)
- 13 May 2024, 14:38
- Forum: Ask for Help (v1)
- Topic: How to save image in clipboard.
- Replies: 90
- Views: 14667
Re: How to save image in clipboard.
If we decide to not use it, does it will cause any problems to anywhere (memory problems etc or any other problems)? The DeleteObject() function should be used by hBitmap when hBitmap has been created and is no longer needed. Failure to use DeleteObject() in this case will result in a memory leak. ...
- 13 May 2024, 12:19
- Forum: Ask for Help (v2)
- Topic: Make ListView selection toggle individual selection Topic is solved
- Replies: 5
- Views: 415
Re: Make ListView selection toggle individual selection Topic is solved
#Requires AutoHotkey v2 wnd := Gui() lv := wnd.Add('ListView', 'r10 w400', ['Name','Size (KB)']) Loop Files, A_MyDocuments . '\*.*' { lv.Add(, A_LoopFileName, A_LoopFileSizeKB) } lv.ModifyCol(1, 'AutoHdr') lv.ModifyCol(2, 'AutoHdr Integer') wnd.Show() OnMessage(0x201, WM_LBUTTONDOWN) WM_LBUTTONDOWN...
- 10 May 2024, 14:04
- Forum: Ask for Help (v2)
- Topic: Any way to determine which control of a webform has focus? Topic is solved
- Replies: 8
- Views: 594
Re: Any way to determine which control of a webform has focus? Topic is solved
The title of the browser window corresponds to the name of the active tab, you can see this if you enable the title bar display in the settings.
- 09 May 2024, 19:30
- Forum: Ask for Help (v1)
- Topic: Break chained Scripts' tray icon - UngruppingTrayIcon doesn't work consistently.
- Replies: 2
- Views: 454
Re: Break chained Scripts' tray icon - UngruppingTrayIcon doesn't work consistently.
This approach only separates the icons of such scripts from the rest of the scripts where this method is not applied. However, the icons of scripts where this method is used remain linked. There is currently no known way to separate them other than renaming the exe file.