stumbled across this post randomly.
maybe you can get a list of the open Windows/processes that match what you want to run before actually running it, then keep on looping and checking if the number in the lists changed and you retrieve the new window/process that isn't on the previous lists.
Search found 79 matches
- 20 Oct 2024, 09:23
- Forum: Ask for Help (v1)
- Topic: I am using ShellRun to overcome an issue with Run - Is there a ShellRunWait to overcome the same issue with RunWait?
- Replies: 14
- Views: 2786
- 17 Oct 2024, 17:16
- Forum: Scripts and Functions (v1)
- Topic: Get current explorer window path
- Replies: 31
- Views: 18013
Re: Get current explorer window path
Skrell class #32770 is too general. I think you mean dialog boxes? in that case there are 2 types of dialog boxes, old and new. For the new type, you can send Ctrl+l to activate the address bar, get the hwnd of the active control and read its text. There are many gotchas while automating dialog box...
- 16 Oct 2024, 12:53
- Forum: Scripts and Functions (v1)
- Topic: Get current explorer window path
- Replies: 31
- Views: 18013
Re: Get current explorer window path
here are some fixes. I also added a check to see if the path has a "\" to make sure it's directory (e.g: not Control Panel window) ; ___________________________________ ; Get Explorer Path ; ___________________________________ GetExplorerPath(explorerHwnd=0){ if(!explorerHwnd) ExplorerHwnd:= winacti...
- 15 Oct 2024, 02:58
- Forum: Ask for Help (v1)
- Topic: How to properly automate "Save as..." window? Topic is solved
- Replies: 6
- Views: 1125
Re: How to properly automate "Save as..." window? Topic is solved
I'm a digital artist and I deal a lot with saving files. I save them according to a specific convention, so I automated the process and I kept on improving it for years. When it comes to automating the "Save as..." window reliably, you need to use the hotkey Ctrl+L to get to the address bar (F6 is n...
- 10 Apr 2024, 18:16
- Forum: Ask for Help (v1)
- Topic: Does com object library supports Premiere
- Replies: 1
- Views: 252
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 ...
- 16 Feb 2024, 21:35
- Forum: Ask for Help (v1)
- Topic: Color Blend Mode in Gdip library? - Grayscale conversion
- Replies: 2
- Views: 220
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...
- 16 Feb 2024, 17:53
- Forum: Ask for Help (v1)
- Topic: Color Blend Mode in Gdip library? - Grayscale conversion
- Replies: 2
- Views: 220
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 ...
- 16 Jul 2023, 00:14
- Forum: Ask for Help (v1)
- Topic: Reinstalling Keyboard or mouse hook?
- Replies: 2
- Views: 341
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...
- 06 Jun 2023, 08:06
- Forum: Scripts and Functions (v1)
- Topic: Screen clipping
- Replies: 310
- Views: 148775
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...
- 25 May 2023, 21:18
- Forum: Ask for Help (v1)
- Topic: How to send the original key?
- Replies: 3
- Views: 518
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.
- 25 May 2023, 21:11
- Forum: Ask for Help (v2)
- Topic: __New/__Init Questions
- Replies: 8
- Views: 2432
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...
- 21 May 2023, 13:31
- Forum: Ask for Help (v1)
- Topic: How to send the original key?
- Replies: 3
- Views: 518
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...
- 09 May 2023, 02:30
- Forum: Ask for Help (v1)
- Topic: Get DPI Scaling Awareness level? Topic is solved
- Replies: 2
- Views: 463
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...
- 05 May 2023, 02:21
- Forum: Ask for Help (v1)
- Topic: [COM] Help with the IDropSource and IDropTarget interfaces
- Replies: 62
- Views: 28667
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...
- 30 Apr 2023, 19:34
- Forum: Ask for Help (v1)
- Topic: ActiveX + tabs problem: Drag & Drop not working
- Replies: 0
- Views: 203
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...
- 28 Apr 2023, 22:28
- Forum: Scripts and Functions (v1)
- Topic: Screen clipping
- Replies: 310
- Views: 148775
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...
- 28 Apr 2023, 20:12
- Forum: Scripts and Functions (v1)
- Topic: Screen clipping
- Replies: 310
- Views: 148775
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...
- 26 Apr 2023, 14:44
- Forum: Scripts and Functions (v1)
- Topic: Screen clipping
- Replies: 310
- Views: 148775
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...
- 25 Apr 2023, 10:00
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 441
- Views: 273842
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...
- 25 Apr 2023, 08:17
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 441
- Views: 273842
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.