Skip to content
Tomshi edited this page Mar 23, 2025 · 23 revisions

..\lib\GUIs\ contains all GUI functions not defined within another function.

class tomshiBasic {

tomshiBasic is a small class used to share a few settings across all GUIs in my scripts. This class helps me keep a relatively consistent GUI look across all my scripts, and in the event I want to ever change a setting it can be done here and be shared basically project wide.

Using this gui will automatically do the following:

  • Generate an invisible button to steal focus away from any user generated controls
  • Set the titlebar to dark mode if enabled
  • Set all user generated buttons to dark mode if enabled
  • Set all drop down menus to dark mode if enabled
MyGui := tomshiBasic( [{FontSize, FontWeight, options, title}] )

FontSize

Type: Number

Allows you to pass in a custom default GUI font size. Defaults to 11, can be omitted.

FontWeight

Type: Integer

Allows you to pass in a custom default GUI font weight. Defaults to 500, can be omitted.

options

Type: String

Allows you to pass in all GUI options that you would normally pass to a GUI. Can be omitted.

title

Type: String

Allows you to pass in a title for the GUI. Can be omitted.


class gameCheckGUI {

Within settingsGUI() is the ability to call another GUI, gameCheckGUI which is defined in a class in ..\lib\GUIs\gameCheckGUI.ahk and can be accessed by pressing the Add game to 'gameCheck.ahk' menu option button within settingsGUI() or by right clicking on the gameCheck.ahk tray icon in the taskbar. This GUI is designed to allow the user to quickly add games to the games.txt file that is read by gameCheck.ahk. When the user opens settingsGUI() it grabs the winTitle and winProcess of the active window and stores that information, if the user then opens gameCheckGUI() that information is prefilled into the edit boxes so the user can edit it accordingly - if gameCheckGUI is called via the tray icon, that prefill information is generated then.

image

gameCheckGUI() as of v2.6.1


musicGUI()

This GUI offers the user a selection of audio programs at their fingertips. This function is used within switchToMusic().

image

*musicGUI() as of v2.6.1


hotkeysGUI()

This function produces a GUI to remind the user of some helpful macros and their default hotkey combination.

image

hotkeysGUI() as of v2.6.1


todoGUI()

This GUI is an informational GUI presented to the user as an option during their first time running My Scripts.ahk and is called from firstCheck().

This GUI gives the user instructions on where to start with these scripts and is aimed at helping point the user in the right direction.

image

todoGUI() as of v2.11


activeScripts()

This GUI gives the user quick access to not only see which of my scripts are currently active, but also gives the user the ability to quickly close/open any of them at the click of a checkbox.

The scripts/checkboxes presented in this GUI are hard coded and not generated at runtime.

image

activeScripts() as of v2.9.2


class trimGUI {

A class to encapsulate a GUI that allows the user to quickly and easily Trim a file using ffmpeg

image

trimGUI as of v2.15.2


remapDrive.ahk

A GUI that allows the user to quickly and easily remap a network location to a drive.

image

remapDrive.ahk as of v2.12.1


reencodeGUI.ahk

image

reencodeGUI.ahk as of v2.14.2


enable unsigned extensions.ahk

image

enable unsigned extensions.ahk as of v2.14.12


adjust audio.ahk

image

adjust audio.ahk as of v2.15.3


multi-dl.ahk

image

multi-dl.ahk as of v2.15.4

  • check dev branch

Enabling this checkbox will instruct the compiled version of this script to optionally check the dev branch for any updates instead of only checking the main branch. Enabling it for the .ahk script will have no effect as it does not look for updates to itself as later changes to my yt-dlp.ahk or ffmpeg.ahk may also be required.

  • avoid reencode

Enabling this checkbox will make yt-dlp only download h264 or h265 codecs, this will skip the usual required reencoding step - however due to youtube only storing lower quality versions of videos in these formats, this option will likely result in lower quality (and is usually capped at 1080p).


Clone this wiki locally