Skip to content

ptf.ahk

Tomshi edited this page Jan 9, 2023 · 5 revisions

This script contains a stew of classes and group declarations to make file and name management throughout my scripts easier and more consistent.


class ptf {

Point to File, this class contains all directory and file locations that I can possibly assign. Keeping all definitions in the one place allows for easier adjusting of file locations in the future, as well as an easier time for another user to come through and adjust.

ptf.Variable

Example #1

;for directory locations
ptf.SupportFiles ;passes: A_WorkingDir "\Support Files"

ptf["variable"]

Example #1

;for absolute file locations
ptf["settings"] ;passes: A_MyDocuments "\tomshi\settings.ini"

class browser {

This class contains a set of objects to define browser winTitles & classes. Currently contains information for; firefox, chrome, msedge & vscode

Example #1

;for winTitle
broswer.firefox.winTitle ;passes: ahk_exe firefox.exe

;for class
browser.firefox.class ;passes: ahk_class MozillaWindowClass

class Editors {

This class contains a set of objects to define Editor winTitles & classes. Currently contains information for; Adobe Premiere Pro, Adobe After Effects, Adobe Photoshop & Davinci Resolve

Example #1

;for winTitle
editor.Premiere.winTitle ;passes: ahk_exe Adobe Premiere Pro.exe

;for class
editor.Premiere.class ;passes: ahk_class Premiere Pro

GroupAdd

The script then goes on to define a browser group, and an editor group.


Clone this wiki locally