Search found 75 matches

by Flowgun
10 Apr 2024, 18:16
Forum: Ask for Help (v1)
Topic: Does com object library supports Premiere
Replies: 1
Views: 200

Re: Does com object library supports Premiere

Hello, did you find any solution for this? I tried different names but I can't get the premiere pro application object. I'm sure it has a COM object and VSCode can communicate with it via ExtendedScript extension. There has to be a way to do it directly with Autohotkey, but there's no documentation ...
by Flowgun
16 Feb 2024, 21:35
Forum: Ask for Help (v1)
Topic: Color Blend Mode in Gdip library? - Grayscale conversion
Replies: 2
Views: 130

Re: Color Blend Mode in Gdip library? - Grayscale conversion

I want to convert pictures into Grayscale using autohotkey, but preserve the current values. What are you referring to here (current values)? Luminosity values? As far as I know, the green channel is the closest luminosity approximation to the original color image. But of course it is not exact for...
by Flowgun
16 Feb 2024, 17:53
Forum: Ask for Help (v1)
Topic: Color Blend Mode in Gdip library? - Grayscale conversion
Replies: 2
Views: 130

Color Blend Mode in Gdip library? - Grayscale conversion

Hello everyone, I want to convert pictures into Grayscale using autohotkey, but preserve the current values. I tried desaturating the picture with Gdip_BitmapConvertGray , but it messes up the values a bit. I know that the way to do in Photoshop and preserve values is to create a grayscale layer on ...
by Flowgun
16 Jul 2023, 00:14
Forum: Ask for Help (v1)
Topic: Reinstalling Keyboard or mouse hook?
Replies: 2
Views: 263

Reinstalling Keyboard or mouse hook?

Hello, I just updated to 1.1.37.01. In the previous versions, the mouse hotkeys wouldn't work for me after I lock the pc or put it to sleep, so I modified my scripts to restart automatically after logging in (suspending and resuming the hotkeys doesn't fix the issue). I believe the issue happens als...
by Flowgun
06 Jun 2023, 08:06
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 307
Views: 135996

Re: Screen clipping

Avastgard There are different ways to do this. one good way is to use "GroupAdd" to group all of "ScreenClipper" windows, then use "GroupActivate". This would automatically activate the one below. Sorry I'm too busy to provide you with the code, but you should be able to figure it out by yourself e...
by Flowgun
25 May 2023, 21:18
Forum: Ask for Help (v1)
Topic: How to send the original key?
Replies: 3
Views: 439

Re: How to send the original key?

Hallo, perhaps?: #IF condition_2 ;under certain conditions s::SoundBeep ;do some actions I thought of this, but I'm already under another directive. splitting my code under multiple directives with multiple conditions would make it extremely hard to manage, so I thought maybe there's a better way.
by Flowgun
25 May 2023, 21:11
Forum: Ask for Help (v2)
Topic: __New/__Init Questions
Replies: 8
Views: 2143

Re: __New/__Init Questions

I haven't dabbled much in Autohotkey's OOP, but since Autohotkey is what I learned programming with, I read many tutorials about it. Then I started learning Python. I'm finding many things confusing. "__init" in Autohotkey is somehow equivalent to "__new__" in Python (runs first, and almost never us...
by Flowgun
21 May 2023, 13:31
Forum: Ask for Help (v1)
Topic: How to send the original key?
Replies: 3
Views: 439

How to send the original key?

Hello everyone, I want a key (let's say "s") to do some actions under certain conditions, or send what it originally would send without the script (ex: under "condition 2"). sending it as a key under "condition 2" wouldn't consider Capslock state ("s" or "S", it'll always send "s"). It also wouldn't...
by Flowgun
09 May 2023, 02:30
Forum: Ask for Help (v1)
Topic: Get DPI Scaling Awareness level? Topic is solved
Replies: 2
Views: 361

Re: Get DPI Scaling Awareness level? Topic is solved

dllcall this https://learn.microsoft.com/en-us/windows/win32/api/shellscalingapi/nf-shellscalingapi-getprocessdpiawareness (and whatever other additional functions it requires, OpenProcess/CloseHandle) Sorry, I missed the reply. This function is what I was looking for. I also had to calculate the D...
by Flowgun
05 May 2023, 02:21
Forum: Ask for Help (v1)
Topic: [COM] Help with the IDropSource and IDropTarget interfaces
Replies: 62
Views: 26583

Re: [COM] Help with the IDropSource and IDropTarget interfaces

is there a way to make the drop and drag work from apps with lower elevation to a script run as admin? Changing the UAC filter with these has an effect on the regular GUIDropFiles, but not on drag and dropping that is registered with this class :crazy: DllCall("ChangeWindowMessageFilter", "uint", 0x...
by Flowgun
30 Apr 2023, 19:34
Forum: Ask for Help (v1)
Topic: ActiveX + tabs problem: Drag & Drop not working
Replies: 0
Views: 167

ActiveX + tabs problem: Drag & Drop not working

Hello everyone, I'm writing a script to allow me to drag links from a browser into my GUI to get them. the script I found here works great: https://www.autohotkey.com/board/topic/80066-gui-drop-text-that-is-browser-url-from-addressbar/?p=508755 but when I add a tab control to it, it doesn't work any...
by Flowgun
28 Apr 2023, 22:28
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 307
Views: 135996

Re: Screen clipping

Updates to Resizer to also support Juho's double-click function if it's used before resizing, and to maintain GrayScale. For Grayscale, I use ToGrayscaleI() by Skan since it supports x64bit: https://www.autohotkey.com/boards/viewtopic.php?t=81203 I also use Gdip_All library (but haven't converted ev...
by Flowgun
28 Apr 2023, 20:12
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 307
Views: 135996

Re: Screen clipping

I upgraded SCW_Win2Clipboard() to work with Speedmaster's resizer and Juho's double-click function. SCW_Win2File() can be upgraded by the same way in retrieving pBitmap: SCW_Win2Clipboard(DeleteBorders:=1, Hwnd := ""){ Global pTokenState:= pToken resized := "" ;; waits for the right click menu to fa...
by Flowgun
26 Apr 2023, 14:44
Forum: Scripts and Functions (v1)
Topic: Screen clipping
Replies: 307
Views: 135996

Re: Screen clipping

my improvements to "Hide Borders Plugin". Added function: ToggleAllBorders() /*-------------------------------------------------------------------------------------------------------------------- Hide Borders Plugin (by Speedmaster) - Improved by Flowgun File Name : SM_Borders.ahk version: 1.1 (?) t...
by Flowgun
25 Apr 2023, 10:00
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 441
Views: 254856

Re: GDI+ standard library 1.45 by tic

for Webp, I'm using Teadrinker's functions: https://www.autohotkey.com/boards/viewtopic.php?t=66335 the "CreateBitmapFromScan0" that he is using doesn't default "Stride" to "0", but it does this calculation: bpp := (PixelFormat & 0xFF00) >> 8 Stride := ((Width * bpp + 31) & ~31) >> 3 I don't know if...
by Flowgun
25 Apr 2023, 08:17
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 441
Views: 254856

Re: GDI+ standard library 1.45 by tic

btw, I noticed that the library doesn't have "Gdip_CreateBitmapFromScan0" as a function. I needed it to read webp files. maybe there's something equivalent to use and it's just my noobness. otherwise, I recommend adding it to the library.
by Flowgun
25 Apr 2023, 08:01
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 441
Views: 254856

Re: GDI+ standard library 1.45 by tic

hmmm fair enough. it's just that I was having some problems with the library, and they disappeared when I updated a few functions to have that condition. I'll investigate the issue further.
by Flowgun
25 Apr 2023, 07:11
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 441
Views: 254856

Re: GDI+ standard library 1.45 by tic

Marius, your version of the library breaks compatibility with x64. it always uses "UPtr" while x64 version uses "UInt" (among some other changes. in an old library made by tic, you can find code like this: A_PtrSize ? "UPtr" : "UInt" this allows it to use UPtr or UInt depending on the bitness to be ...
by Flowgun
22 Apr 2023, 10:14
Forum: Ask for Help (v1)
Topic: how can i with pressing 1 load a image in to Clipboard and Paste it?
Replies: 24
Views: 3268

Re: how can i with pressing 1 load a image in to Clipboard and Paste it?

These functions don't support Webp format. Anyone knows how to get them to work with Webp?
by Flowgun
22 Apr 2023, 09:59
Forum: Scripts and Functions (v1)
Topic: Is picture? Know it before calling LoadPicture()
Replies: 21
Views: 5954

Re: Is picture? Know it before calling LoadPicture()

Great function. Can you please add "Webp" format? It's getting more and more popular.

Go to advanced search