Search found 1471 matches

by iseahound
Yesterday, 13:41
Forum: Scripts and Functions (v2)
Topic: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)
Replies: 16
Views: 1723

Re: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)

That's actually amazing! Didn't expect you to find a solution. I've just been cleaning up your code so I can throw it into ImagePut. I'll stick with the D2D approach since it's native.

Super! :dance:
by iseahound
13 Jun 2024, 18:15
Forum: Scripts and Functions (v2)
Topic: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)
Replies: 16
Views: 1723

Re: svgToHBITMAP.ah2 (AddPicture an SVG to Gui)

Can't get transparency to work for some reason Added: D2D1_RENDER_TARGET_PROPERTIES := Buffer(0x1c, 0) NumPut("int", 87, D2D1_RENDER_TARGET_PROPERTIES, 0x4) ; DXGI_FORMAT_B8G8R8A8_UNORM NumPut("int", 1, D2D1_RENDER_TARGET_PROPERTIES, 0x8) ; D2D1_ALPHA_MODE_PREMULTIPLIED Save this as a svg. <svg xmln...
by iseahound
13 Jun 2024, 16:55
Forum: Bug Reports
Topic: [v2.1-alpha.9] Disabled modifier keys seem to lag OS
Replies: 0
Views: 85

[v2.1-alpha.9] Disabled modifier keys seem to lag OS

Script 1 A_HotkeyInterval := 0 #WheelUp:: Send '{Blind}{WheelLeft}' #WheelDown:: Send '{Blind}{WheelRight}' #HotIf GetKeyState("CapsLock", "P") Alt:: return ; Disables Alt menu when CapsLock + Alt is pressed. LWin:: return ; Suppresses the Start Menu. RWin:: return #HotIf Script 2 #h:: { } To reprod...
by iseahound
10 Jun 2024, 23:23
Forum: Tutorials (v2)
Topic: Communicating between scripts (IPC, inter-process communication)
Replies: 10
Views: 2842

Re: Communicating between scripts (IPC, inter-process communication)

I think what I was describing earlier was a protocol for automatically getting the name of the shared resource by broadcasting PostMessage to all active AHK scripts. In any case, I finally got around to fully implementing sharing images between processes in ImagePut . Main Script #include ImagePut.a...
by iseahound
10 Jun 2024, 22:13
Forum: Ask for Help (v2)
Topic: extract info about the cursor's ICON
Replies: 7
Views: 335

Re: extract info about the cursor's ICON

We're all a little confused by this question as A_Cursor should already be the information you're looking for. If you need like the actual hIcon you'll have to use a DllCall for that. One solution that some people found useful for automating games or Photoshop or anything with a custom cursor is wit...
by iseahound
07 Jun 2024, 23:50
Forum: Ask for Help (v2)
Topic: CreateFormData file format and name Topic is solved
Replies: 11
Views: 421

Re: CreateFormData file format and name Topic is solved

teadrinker wrote:
07 Jun 2024, 23:15
it would be better to first estimate the total size of the data, then create a SafeArray of the right size at once, and then fill it with data without first creating an additional buffer.
Yep, I was thinking along the same lines.
by iseahound
07 Jun 2024, 23:04
Forum: Ask for Help (v2)
Topic: CreateFormData file format and name Topic is solved
Replies: 11
Views: 421

Re: CreateFormData file format and name Topic is solved

My main concern is that: The buffer's address typically changes whenever its size is changed. which implies the buffer is constantly being reallocated similar to SKAN's original version. Given the large file sizes, excessive reallocations could bottleneck memory or slow down uploading. I can't test ...
by iseahound
07 Jun 2024, 21:22
Forum: Ask for Help (v2)
Topic: CreateFormData file format and name Topic is solved
Replies: 11
Views: 421

Re: CreateFormData file format and name Topic is solved

teadrinker What do you mean by semantically incorrect? The only error I see is that GlobalSize requires a handle hData . As far as I can see, aside from the addition of SplitPath the code is semantically identical. I never liked the class-based structure but kept it for backwards compatibility. Lik...
by iseahound
06 Jun 2024, 14:13
Forum: Bug Reports
Topic: Crash with dereference in #include
Replies: 5
Views: 541

Re: Crash with dereference in #include

I can't locate the specific thread, but the problem was that if there are two libraries for different versions of AutoHotkey, how can I include both of them such that the other is invisible? Imagine a starter script that includes v1.ahk and v2.ahk. The solution I was using was provided by Lexikos a ...
by iseahound
05 Jun 2024, 09:59
Forum: Bug Reports
Topic: Crash with dereference in #include
Replies: 5
Views: 541

Crash with dereference in #include

I've been using this code to lead either a v1 or v2 version of an AutoHotkey library, and it's been causing the latest alphas to crash. I don't mind if this gets removed but at least a warning should appear.

Code: Select all

#include *i %A_TrayMenu%.ahk
msgbox
by iseahound
04 Jun 2024, 14:16
Forum: Tutorials (v2)
Topic: How to use CapsLock as a modifier key in ahk v2 Topic is solved
Replies: 2
Views: 2505

Re: How to use CapsLock as a modifier key in ahk v2 Topic is solved

mini update where I added the below code to block the Windows Start menu and the Alt bar from appearing. Alt:: return ; Disables Alt menu when CapsLock + Alt is pressed. LWin:: return ; Suppresses the Start Menu. RWin:: return
by iseahound
03 Jun 2024, 16:36
Forum: Ask for Help (v2)
Topic: Detect if a bitmap has a drawn image.
Replies: 1
Views: 253

Re: Detect if a bitmap has a drawn image.

First you'll have to allocate a buffer of size 4 * width * height. THen you'll throw GdipCreateBitmapFromScan0 over the buffer. After that you just scan the buffer pointer for changes. You'll ideally use C (machine code) to accomplish this.
by iseahound
26 May 2024, 11:36
Forum: AutoHotkey Development
Topic: Modules
Replies: 12
Views: 1343

Re: Modules

I'm just a little skeptical of import a.b may load Lib\a\b\__init.ahk, Lib\a\b.ahk or Lib\a\__init.ahk . Is there truly a need to use . as a substitute for \ to parse subdirectories? Specifically, since AutoHotkey lacks a package manager, and is commonly used by newer users to programming in general...
by iseahound
25 May 2024, 07:18
Forum: AutoHotkey Development
Topic: Modules
Replies: 12
Views: 1343

Re: Modules

Python's package syntax requires empty __init__.py files. This is one feature I would delete from python. https://stackoverflow.com/questions/37139786/is-init-py-not-required-for-packages-in-python-3-3

Appreciate the great work!
by iseahound
25 May 2024, 06:30
Forum: Ask for Help (v2)
Topic: How to suppress Ctrl + shift hotkey for notepad that enables right to left text formatting?
Replies: 3
Views: 393

Re: Possible bug when suppressing modifier hotkeys

Is it possible to block the action tied to the hotkey Ctrl + Shift without interacting with the other hotkeys then? Looks like any "suppression" fails with send inside the hotkey. #Requires AutoHotkey v2.0 ~>^RShift:: ; Notepad Right to Left reading order ~>+RCtrl:: Send '{Blind}{vk07}' >^+Left:: Se...
by iseahound
20 May 2024, 23:25
Forum: Wish List
Topic: A_Downloads might be a nice thing to have at some point.
Replies: 15
Views: 1584

Re: A_Downloads might be a nice thing to have at some point.

Actually just use this code if you need the actual path: viewtopic.php?p=286094#p286094

Make sure to rewrite this into 4 lines max
by iseahound
20 May 2024, 23:09
Forum: Wish List
Topic: A_Downloads might be a nice thing to have at some point.
Replies: 15
Views: 1584

Re: A_Downloads might be a nice thing to have at some point.

Sometimes you can also do:

Code: Select all

Run "::{374DE290-123F-4565-9164-39C4925E467B}"
Someone needs to boot up an old version of Windows 7/10 to test which one is the best for compatibility
by iseahound
20 May 2024, 23:06
Forum: Wish List
Topic: A_Downloads might be a nice thing to have at some point.
Replies: 15
Views: 1584

Re: A_Downloads might be a nice thing to have at some point.

https://www.elevenforum.com/t/list-of-windows-11-shell-commands-for-shell-folder-shortcuts.1080/

If you need these to work on an older version of windows,

Code: Select all

Run "shell:::{374DE290-123F-4565-9164-39C4925E467B}"
should work as well.
by iseahound
20 May 2024, 17:13
Forum: Ask for Help (v2)
Topic: How to suppress Ctrl + shift hotkey for notepad that enables right to left text formatting?
Replies: 3
Views: 393

How to suppress Ctrl + shift hotkey for notepad that enables right to left text formatting?

[Moderator's note: Topic moved from Bug Reports.]

1. Suppressing Right Control and Shift disables the RCtrl + Shift + a hotkey.

Code: Select all

>^+a:: msgbox
>^Shift::    Send '{Blind}{vk07}'   
2. Removing the right specifier for control works perfectly.

Code: Select all

>^+a:: msgbox
^Shift::    Send '{Blind}{vk07}'

Go to advanced search