Search found 251 matches
- 22 May 2024, 13:00
- Forum: Ask for Help (v2)
- Topic: Animating a GUI with rounded corners not rendering properly.
- Replies: 3
- Views: 321
Re: Animating a GUI with rounded corners not rendering properly.
rommmcek Thanks for the help. The same issue: it works at 100% scaling, but not at any other scaling. I believe I've identified the problem: using GetPos instead of WinGetPos. GetPos seems to work better with controls, while WinGetPos seems to work better with windows. This works at any scaling. #R...
- 21 May 2024, 15:53
- Forum: Ask for Help (v2)
- Topic: Animating a GUI with rounded corners not rendering properly.
- Replies: 3
- Views: 321
Re: Animating a GUI with rounded corners not rendering properly.
I'm trying attempt to manually recreate this animation below with Loop and Move. At 100% scaling, it works without issues. However, there is a small problem when the scaling is not at 100%. Can anyone identify the issue? DllCall('AnimateWindow', 'Ptr', g.hwnd, 'Int', 1500, 'Int', '0x50001') ; Slide ...
- 20 May 2024, 08:59
- Forum: Ask for Help (v2)
- Topic: Animating a GUI with rounded corners not rendering properly.
- Replies: 3
- Views: 321
Animating a GUI with rounded corners not rendering properly.
Hi, I’m trying to animate a GUI with rounded corners using the FrameShadow function by Klark92 and the AnimateWindow function, but they don't seem to work well together. Only the "text layer" moves, not the entire GUI. Is there a solution? I'd like to know before I attempt to manually recreate the a...
- 18 May 2024, 15:51
- Forum: Scripts and Functions (v2)
- Topic: Notify - Display Notifications GUIs
- Replies: 8
- Views: 1372
Re: Notify - Display Notifications GUIs
Updated to 1.2.0 WARNING! This version introduces BREAKING CHANGES if GUIs were created using the previous versions. - Reduced number of parameters from 18 to 6. - Added methods for destroying GUIs. - Added center positioning. - Added animate window duration option. - Duration option now in seconds ...
- 18 May 2024, 08:49
- Forum: Ask for Help (v2)
- Topic: Calculating visible screen width with DPI Considerations Topic is solved
- Replies: 1
- Views: 236
Re: Calculating Text Control Width with DPI Considerations Topic is solved
This was the simple calculation I was looking for. ChatGPT to the rescue!
Code: Select all
dpiScaling := A_ScreenDPI / 96
visibleScreenWidth := A_ScreenWidth / dpiScaling
- 17 May 2024, 16:46
- Forum: Ask for Help (v2)
- Topic: Calculating visible screen width with DPI Considerations Topic is solved
- Replies: 1
- Views: 236
Calculating visible screen width with DPI Considerations Topic is solved
Hi, How should I calculate the visible screen width, taking DPI into account. If the GUI is too large for the screen, set a control's width to ensure all content is visible. Will these calculations work consistently across all resolutions and scaling settings? I have gone through this page, but it's...
- 16 May 2024, 19:33
- Forum: Ask for Help (v2)
- Topic: Tray app to change power plans
- Replies: 10
- Views: 403
Re: Tray app to change power plans
I've created a script that I'm using to automatically change power plans when windows/processes are detected. WinExeCommander viewtopic.php?f=83&t=128956"
- 16 May 2024, 19:27
- Forum: Ask for Help (v2)
- Topic: Tray app to change power plans
- Replies: 10
- Views: 403
Re: Tray app to change power plans
Proof of concept from an intermediate user. Not extensively tested. Requires RunCMD by SKAN. https://www.autohotkey.com/boards/viewtopic.php?p=448912#p448912 #Requires AutoHotkey v2.0 #SingleInstance Persistent #Include <v2\RunCMD\RunCMD> listPowerPlan := RunWaitOne('powercfg /list') m := Map() whil...
- 15 May 2024, 05:58
- Forum: Scripts and Functions (v2)
- Topic: Notify - Display Notifications GUIs
- Replies: 8
- Views: 1372
Re: Notify - Display Notifications GUIs
Delta Pythagorean I weighed the pros and cons of passing a single object versus passing multiple parameters and hesitated about which one to choose. Ultimately, I chose individual parameters because the thqby v2 language support extension has intelligent prompts for function parameters, which allow...
- 14 May 2024, 04:10
- Forum: Ask for Help (v2)
- Topic: Can the text color of a radio button be changed? Topic is solved
- Replies: 8
- Views: 454
Re: Can the text color of a radio button be changed? Topic is solved
The SetFont method does not appear to work to change radio buttons text color. I'm not sure. One workaround is to associate text controls to the radio buttons. #Requires AutoHotkey v2.0 #SingleInstance g := Gui() g.OnEvent('Close', (*) => ExitApp()) g.Add('Radio', 'w15 h15').OnEvent('Click', SetRadi...
- 11 May 2024, 04:37
- Forum: Ask for Help (v2)
- Topic: A problem of uncheck all checkboxes of a listview Topic is solved
- Replies: 4
- Views: 339
Re: A problem of uncheck all checkboxes of a listview Topic is solved
As stated by vmech , the LV parameter represents the text Gui Control object, not the ListView Gui Control object. I highly recommend using VSCode alongside the Debugger extension. By hovering over variables, you can examine both their type and content. You will save a ton of time. https://i.imgur.c...
- 10 May 2024, 08:10
- Forum: Scripts and Functions (v2)
- Topic: Notify - Display Notifications GUIs
- Replies: 8
- Views: 1372
Re: Notify - Display Notifications GUIs
Updated to 1.1.0
- Added a new parameter for destroying currently existing GUIs or not when a new GUI is created.
- Added a GUI to list and hear all the available sounds. Call Notify.SoundsList()
- Sound parameter. Allow using 'Windows Ding', for instance, instead of Notify.mSounds['Windows Ding'].
- Added a new parameter for destroying currently existing GUIs or not when a new GUI is created.
- Added a GUI to list and hear all the available sounds. Call Notify.SoundsList()
- Sound parameter. Allow using 'Windows Ding', for instance, instead of Notify.mSounds['Windows Ding'].
- 07 May 2024, 14:26
- Forum: Scripts and Functions (v2)
- Topic: Notify - Display Notifications GUIs
- Replies: 8
- Views: 1372
Re: Notify - Display Notifications GUIs
Hi @reddyshyam. Thanks for the suggestion! I’ve updated my post with screenshots.reddyshyam wrote: ↑07 May 2024, 10:49It would be nice to show some screenshots too so that we know what we get before we start using it. Hope this is ok.
- 06 May 2024, 17:24
- Forum: Ask for Help (v2)
- Topic: Is it possible to pass named parameters? e.g. create_GUI(name: "status_GUI", bgcolor: "blue")
- Replies: 4
- Views: 458
Re: Is it possible to pass named parameters? e.g. create_GUI(name: "status_GUI", bgcolor: "blue")
I've just shared the script I use to create notification GUIs. Feel free to check it out. https://www.autohotkey.com/boards/viewtopic.php?f=83&t=129635 Features Changing text, icon, font, color etc. Positioning at different locations on the screen. Duration before it disappears. Playing sound when i...
- 06 May 2024, 17:20
- Forum: Scripts and Functions (v2)
- Topic: Notify - Display Notifications GUIs
- Replies: 8
- Views: 1372
Notify - Display Notifications GUIs
Notify This class makes it easier to create and display notification GUIs. Features Changing text, image, font, color. Rounded or edged corners. Positioning at different locations on the screen. Playing sound when it appears. Call function when clicking on it. Inspired by the Automator Notify Class...
- 05 May 2024, 12:51
- Forum: Ask for Help (v2)
- Topic: Auto unmute a specific program upon launching this program
- Replies: 13
- Views: 847
Re: Auto unmute a specific program upon launching this program
WilliamLeGod 1- Delete everything from "WinExeCommander.ahk", paste this and save: #Requires AutoHotkey v2.0 #SingleInstance #Include '.\Lib\WinExeCmd.ahk' Calculator_AlwaysOnTop_Created(mEvent) { if WinExist('ahk_id ' mEvent['id']) WinSetAlwaysOnTop(1, 'ahk_id ' mEvent['id']) else WinExeCmd.MsgBox...
- 05 May 2024, 03:51
- Forum: Ask for Help (v2)
- Topic: Auto unmute a specific program upon launching this program
- Replies: 13
- Views: 847
Re: Auto unmute a specific program upon launching this program
@WilliamLeGod
Like that.
Make sure the function name associated with the event is "Mute_Unmute". Can you make the "Calculator_AlwaysOnTop" example function properly?
Like that.
Code: Select all
Mute_Unmute_Created(mEvent) {
Run('H:\Playnite\Console\Mute on Focus\nircmd.exe muteappvolume ' mEvent['processName'] ' 0')
}
- 04 May 2024, 05:59
- Forum: Ask for Help (v2)
- Topic: Auto unmute a specific program upon launching this program
- Replies: 13
- Views: 847
Re: Auto unmute a specific program upon launching this program
If you want to unmute specific windows when they're activated and mute them when they're deactivated, you can try my script, WinExeCommander . Create events for active windows and call these functions. You'll need Nircmd and changing the path accordingly. Mute_Unmute_Created(mEvent) => Run('D:\Progr...
- 30 Apr 2024, 15:31
- Forum: Ask for Help (v2)
- Topic: How to provide a gui interface for modify a row's text in a ListView Topic is solved
- Replies: 6
- Views: 512
Re: How to provide a gui interface for modify a row's text in a ListView Topic is solved
There is also this script by just me.
LVICE_XXS - LV in-cell editing minimal version
viewtopic.php?f=83&t=94046
LVICE_XXS - LV in-cell editing minimal version
viewtopic.php?f=83&t=94046
- 30 Apr 2024, 14:28
- Forum: Ask for Help (v2)
- Topic: How to provide a gui interface for modify a row's text in a ListView Topic is solved
- Replies: 6
- Views: 512
Re: How to provide a gui interface for modify a row's text in a ListView Topic is solved
An example. Modifications can be made via double-clicking or the right-click context menu. #Requires AutoHotkey v2.0 #SingleInstance gMain := Gui(, 'gMainTitle') gMain.OnEvent('Close', (*) => ExitApp()) gMain.lv := gMain.Add('ListView', 'Grid Sort', ['Col1', 'Col2']) gMain.lv.OnEvent('ContextMenu', ...