Search found 251 matches

by XMCQCX
Yesterday, 13:00
Forum: Ask for Help (v2)
Topic: Animating a GUI with rounded corners not rendering properly.
Replies: 3
Views: 313

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...
by XMCQCX
21 May 2024, 15:53
Forum: Ask for Help (v2)
Topic: Animating a GUI with rounded corners not rendering properly.
Replies: 3
Views: 313

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 ...
by XMCQCX
20 May 2024, 08:59
Forum: Ask for Help (v2)
Topic: Animating a GUI with rounded corners not rendering properly.
Replies: 3
Views: 313

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...
by XMCQCX
18 May 2024, 15:51
Forum: Scripts and Functions (v2)
Topic: Notify - Display Notifications GUIs
Replies: 8
Views: 1348

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 ...
by XMCQCX
18 May 2024, 08:49
Forum: Ask for Help (v2)
Topic: Calculating visible screen width with DPI Considerations Topic is solved
Replies: 1
Views: 231

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
by XMCQCX
17 May 2024, 16:46
Forum: Ask for Help (v2)
Topic: Calculating visible screen width with DPI Considerations Topic is solved
Replies: 1
Views: 231

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...
by XMCQCX
16 May 2024, 19:33
Forum: Ask for Help (v2)
Topic: Tray app to change power plans
Replies: 10
Views: 399

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"
by XMCQCX
16 May 2024, 19:27
Forum: Ask for Help (v2)
Topic: Tray app to change power plans
Replies: 10
Views: 399

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...
by XMCQCX
15 May 2024, 05:58
Forum: Scripts and Functions (v2)
Topic: Notify - Display Notifications GUIs
Replies: 8
Views: 1348

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...
by XMCQCX
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...
by XMCQCX
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: 328

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...
by XMCQCX
10 May 2024, 08:10
Forum: Scripts and Functions (v2)
Topic: Notify - Display Notifications GUIs
Replies: 8
Views: 1348

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'].
by XMCQCX
07 May 2024, 14:26
Forum: Scripts and Functions (v2)
Topic: Notify - Display Notifications GUIs
Replies: 8
Views: 1348

Re: Notify - Display Notifications GUIs

reddyshyam wrote:
07 May 2024, 10:49
It would be nice to show some screenshots too so that we know what we get before we start using it. :) Hope this is ok.
Hi @reddyshyam. Thanks for the suggestion! I’ve updated my post with screenshots.
by XMCQCX
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: 455

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...
by XMCQCX
06 May 2024, 17:20
Forum: Scripts and Functions (v2)
Topic: Notify - Display Notifications GUIs
Replies: 8
Views: 1348

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...
by XMCQCX
05 May 2024, 12:51
Forum: Ask for Help (v2)
Topic: Auto unmute a specific program upon launching this program
Replies: 13
Views: 843

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...
by XMCQCX
05 May 2024, 03:51
Forum: Ask for Help (v2)
Topic: Auto unmute a specific program upon launching this program
Replies: 13
Views: 843

Re: Auto unmute a specific program upon launching this program

@WilliamLeGod
Like that.

Code: Select all

Mute_Unmute_Created(mEvent) {

    Run('H:\Playnite\Console\Mute on Focus\nircmd.exe muteappvolume ' mEvent['processName'] ' 0')
}
Make sure the function name associated with the event is "Mute_Unmute". Can you make the "Calculator_AlwaysOnTop" example function properly?
by XMCQCX
04 May 2024, 05:59
Forum: Ask for Help (v2)
Topic: Auto unmute a specific program upon launching this program
Replies: 13
Views: 843

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...
by XMCQCX
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: 511

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', ...

Go to advanced search