Skip to content
Tomshi edited this page May 31, 2024 · 16 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.


settingsGUI()

This GUI allows the user to adjust almost all user adjustable settings all within one place. It can be accessed by either pressing the activation hotkey (Win + F1 by default) or by right clicking on the My Scripts.ahk tray icon in the task bar, then selecting Settings

image

*settingsGUI() as of v2.14.7

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 Game List.ahk 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.12.1


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

Clone this wiki locally