initial commit
This commit is contained in:
commit
bac8299d5b
383
Atom-Launcher.ahk
Normal file
383
Atom-Launcher.ahk
Normal file
@ -0,0 +1,383 @@
|
||||
;---ENVIRONMENT---------------------------------------------------------------------
|
||||
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
||||
;#Warn ; Enable warnings to assist with detecting common errors.
|
||||
;DetectHiddenWindows, On
|
||||
#SingleInstance, Force
|
||||
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
||||
CoordMode, ToolTip, Screen
|
||||
CoordMode, Mouse, Screen
|
||||
|
||||
; #NoTrayIcon
|
||||
Menu, Tray, Icon, %A_scriptDir%\Graphics\Atom.ico
|
||||
AtomIconFP = %A_scriptDir%/Graphics/Atom.png
|
||||
|
||||
|
||||
|
||||
;---Notes/Extra Info/#Includes------------------------------------------------------
|
||||
; Original Script: https://github.com/plul/Public-AutoHotKey-Scripts
|
||||
|
||||
;---VARIABLES-----------------------------------------------------------------------
|
||||
Script_Name = Atom Launcher
|
||||
|
||||
; Read User Settings from .ini file
|
||||
; IniRead, SaveUsageStats, %A_scriptdir%\Lib\Settings.ini, AtomSearch, SaveUsageStats
|
||||
|
||||
SaveUsageStats=1
|
||||
|
||||
ScreenWidth := A_ScreenWidth
|
||||
ScreenDPI := A_ScreenDPI
|
||||
|
||||
GUIWidth := Round(ScreenWidth/3)
|
||||
|
||||
; GUI COLORS
|
||||
cBackground := "c" . "1d1f21"
|
||||
cCurrentLine := "c" . "282a2e"
|
||||
cSelection := "c" . "373b41"
|
||||
cForeground := "c" . "c5c8c6"
|
||||
cComment := "c" . "969896"
|
||||
cRed := "c" . "cc6666"
|
||||
cOrange := "c" . "de935f"
|
||||
cYellow := "c" . "f0c674"
|
||||
cGreen := "c" . "b5bd68"
|
||||
cAqua := "c" . "8abeb7"
|
||||
cBlue := "c" . "81a2be"
|
||||
cPurple := "c" . "b294bb"
|
||||
|
||||
|
||||
MarginSpace := 15 ; Margin size to be used in the gui
|
||||
|
||||
; Set Global Variables for ease of use and accessibility
|
||||
global SaveUsageStats ; usage stats setting
|
||||
global search_url
|
||||
global gui_state
|
||||
global gui_search_title
|
||||
global ExpandedMenu
|
||||
; -E0x200 removes border around Edit controls
|
||||
; gui_control_options := "x57" . "xm" . GUIWidth . cForeground . " -E0x200"
|
||||
Guiwidth = 550
|
||||
Icon_Size = 125
|
||||
; Icon_XPosition := Guiwidth / 2 - (Icon_Size / 2) + 10
|
||||
Icon_XPosition := 10
|
||||
gui_control_options := "x+10 y55 w" . Guiwidth . cForeground . " -E0x200"
|
||||
; gui_control_options = x+%MarginSpace% xm w%guiwidth% %cForeground% -E0x200
|
||||
|
||||
|
||||
; Initialize variable to keep track of the state of the GUI
|
||||
gui_state = closed
|
||||
|
||||
|
||||
;---MAIN SCRIPT---------------------------------------------------------------------
|
||||
|
||||
;---LAUNCH GUI----------------------------------------------------------------------------
|
||||
; !Space:: ; Alt + Space
|
||||
^E:: ; CapsLockeE
|
||||
; ^Q::
|
||||
|
||||
gui_spawn:
|
||||
if gui_state != closed
|
||||
{
|
||||
; If the GUI is already open, close it.
|
||||
gui_destroy()
|
||||
return
|
||||
}
|
||||
|
||||
; Otherwise create the menu
|
||||
gui_state = main
|
||||
|
||||
|
||||
Gui, Add, Picture, vIcon x%Icon_XPosition% w%Icon_Size% h%Icon_Size% +Center ,%AtomIconFP%
|
||||
|
||||
|
||||
Gui, Margin, 10, 10 ;Default was: 16, 16
|
||||
Gui, Color, 1d1f21, 282a2e ; Background and edit box color
|
||||
Gui, Font, cWhite ; Color of typed in letters
|
||||
|
||||
Gui, +AlwaysOnTop -SysMenu +ToolWindow -caption +Border
|
||||
Gui, Font, s30, Segoe UI
|
||||
Gui, Add, Text,center x145 y10 vgui_main_title w%Guiwidth% vGUITitle +Center, %Script_Name% ; Uncomment if you want a GUI title
|
||||
; Gui, Add, Text,center x80 y80 vgui_main_title, Atom ; Uncomment if you want a GUI title
|
||||
; Gui, Add, Text,center x300 y100 vgui_main_title2, Search ; Uncomment if you want a GUI title
|
||||
Gui, Font, s20, Segoe UI
|
||||
;gui, Add, Text,Center x250,Atom Search
|
||||
Gui, Add, Edit, x145 y80 w%Guiwidth% %cForeground% -E0x200 +Center vRMSearchTerm gFindus
|
||||
;Gui, Add, Picture, x+1 w45 h45,RMSearch_R.ico
|
||||
|
||||
Gui, Show,y25, %Script_Name%
|
||||
|
||||
if(A_ThisHotkey = "^q"){
|
||||
ControlSend, Edit1, t, %Script_Name%
|
||||
ControlSend, Edit1, {Space}, %Script_Name%
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
; GUI FUNCTIONS AND SUBROUTINES
|
||||
;------------------------------------------------
|
||||
; Automatically triggered on Escape key:
|
||||
GuiEscape:
|
||||
RMSearchTerm :=
|
||||
CustomTool :=
|
||||
gui_destroy()
|
||||
return
|
||||
|
||||
; The callback function when the text changes in the input field.
|
||||
Findus:
|
||||
Gui, Submit, NoHide
|
||||
|
||||
; Msgbox % "RMSearchTerm: " RMSearchTerm
|
||||
|
||||
; msgbox, herere
|
||||
|
||||
if RMSearchTerm = nothinghere%A_Space% ; Search Amazon
|
||||
{
|
||||
; do nothing for this one so the #includes can be organized in whichever order the user wants
|
||||
}
|
||||
#Include %A_ScriptDir%\Modules\Atom-Programs.ahk
|
||||
#Include %A_ScriptDir%\Modules\Atom-Folders.ahk
|
||||
#Include %A_ScriptDir%\Modules\Atom-Web-Searches.ahk
|
||||
#Include %A_ScriptDir%\Modules\Atom-Misc-Commands.ahk
|
||||
return
|
||||
|
||||
;
|
||||
; gui_destroy: Destroy the GUI after use.
|
||||
|
||||
; Skips the gentle method of activating a window and goes straight to the forceful method.
|
||||
#WinActivateForce
|
||||
gui_destroy() {
|
||||
gui_state = closed
|
||||
|
||||
; Forget search title variable so the next search does not re-use it
|
||||
; in case the next search does not set its own:
|
||||
gui_search_title =
|
||||
|
||||
; Clear the tooltip
|
||||
ToolTip
|
||||
|
||||
; Hide GUI
|
||||
Gui, Destroy
|
||||
|
||||
; Bring focus back to whatever window was active before Atom got activated
|
||||
WinActivate
|
||||
}
|
||||
|
||||
gui_change_title(message,color = "") {
|
||||
; If parameter color is omitted, the message is assumed to be an error
|
||||
; message, and given the color red.
|
||||
If color =
|
||||
{
|
||||
global cRed
|
||||
color := cRed
|
||||
}
|
||||
GuiControl,, gui_main_title, %message%
|
||||
Gui, Font, s11 %color%
|
||||
GuiControl, Font, gui_main_title
|
||||
Gui, Font, s10 cffffff ; reset
|
||||
}
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
; SEARCH ENGINES
|
||||
;-------------------------------------------------------------------------------
|
||||
;
|
||||
; Expands the GUI search display to show whatever specific search tool the user is going to search with
|
||||
gui_search_add_elements:
|
||||
|
||||
GuiControl,, Icon, %gui_search_icon%
|
||||
GuiControl, Text, GUITitle, %gui_search_title%
|
||||
Gui, Add, Edit, x145 y80 w%Guiwidth% -E0x200 %cYellow% +Center vgui_SearchEdit -WantReturn
|
||||
Gui, Add, Button, x-10 y-10 w1 h1 +default gSearchEnter ; hidden button gets activated when user hits [Enter]
|
||||
; GuiControl,, RMSearchTerm,
|
||||
GuiControl, Disable, RMSearchTerm
|
||||
|
||||
|
||||
; Gui, Show, AutoSize
|
||||
; msgbox
|
||||
return
|
||||
|
||||
|
||||
|
||||
|
||||
GuiSearch(url) {
|
||||
search_url := url
|
||||
|
||||
gui_state := "search"
|
||||
Gosub, gui_search_add_elements ; Add elements for search field
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
SearchEnter:
|
||||
Gui, Submit
|
||||
gui_destroy() ; destroy the gui and release all variables for next run
|
||||
|
||||
; encode and replace characters to browser format
|
||||
QuerySafeText := uriEncode(gui_SearchEdit)
|
||||
|
||||
; convert typed string into search engine URL using the usercommands.ahk commands
|
||||
FinalURl := StrReplace(search_url, "REPLACEME", QuerySafeText)
|
||||
|
||||
|
||||
; Msgbox % "CustomTool: " CustomTool
|
||||
|
||||
; execute the file with whatever the default program for the extension is
|
||||
if(CustomTool = ""){
|
||||
run, %FinalURl%
|
||||
}
|
||||
|
||||
; otherwise use custom tool
|
||||
else if(CustomTool != "")
|
||||
{
|
||||
; Msgbox % "CustomTool: " CustomTool
|
||||
|
||||
; Open Command Prompt
|
||||
if(CustomTool = "CMD_KeepOpen"){
|
||||
; msgbox % FinalURl
|
||||
Run, %ComSpec% /k %FinalURl%
|
||||
}
|
||||
|
||||
; OTHERWISE IFs
|
||||
; Otherwise run using custom tool as a filepath
|
||||
else if(CustomTool = "OpenFile"){
|
||||
run, "%gui_SearchEdit%"
|
||||
}
|
||||
else if(CustomTool = "JoplinNote"){
|
||||
run, "%gui_SearchEdit%"
|
||||
}
|
||||
else if(CustomTool = "Sublime"){
|
||||
run, "%A_sublimefilepath%" "%gui_SearchEdit%"
|
||||
}
|
||||
else if(CustomTool = "GIMP"){
|
||||
run, "%A_gimpfilepath% " "%gui_SearchEdit%"
|
||||
}
|
||||
else if(CustomTool = "RamMultiplier"){
|
||||
RAM := 1024 * GUI_SearchEdit
|
||||
Clipboard := RAM
|
||||
}
|
||||
else if(CustomTool = "AHKTimeMultiplier"){
|
||||
if(InStr(gui_SearchEdit, "H")){
|
||||
gui_SearchEdit := StrReplace(gui_SearchEdit, "H", "")
|
||||
MSTime := gui_SearchEdit*3600000
|
||||
MSTime := MSTime . " `; " . gui_SearchEdit . " Hours"
|
||||
Clipboard := MSTime
|
||||
}
|
||||
if(InStr(gui_SearchEdit, "M")){
|
||||
gui_SearchEdit := StrReplace(gui_SearchEdit, "M", "")
|
||||
MSTime := gui_SearchEdit*60000
|
||||
MSTime := MSTime . " `; " . gui_SearchEdit . " Minutes"
|
||||
Clipboard := MSTime
|
||||
}
|
||||
}
|
||||
|
||||
else, {
|
||||
; msgbox here
|
||||
; Msgbox % "customtool: " customtool . "FinalURl" . FinalURl
|
||||
; Clipboard := customtool . " " . FinalURl
|
||||
run, %CustomTool% %FinalURl%
|
||||
}
|
||||
}
|
||||
|
||||
; Msgbox % "CustomTool: " CustomTool
|
||||
; Msgbox % CustomTool = "CMD_KeepOpen"
|
||||
|
||||
; reset custom tool if one was used
|
||||
CustomTool =
|
||||
|
||||
return
|
||||
|
||||
|
||||
;
|
||||
;
|
||||
|
||||
|
||||
|
||||
|
||||
; Parse out User Commands and display them in sublime
|
||||
gui_commandlibrary:
|
||||
CoordMode, Tooltip, Screen ; To make sure the tooltip coordinates is displayed according to the screen and not active window
|
||||
Gui, 2:Font,s10, Lucida Console
|
||||
Gui, 2:Add, Text, HwndhwndStatic
|
||||
|
||||
tooltiptext =
|
||||
maxpadding = 0
|
||||
StringCaseSense, Off ; Matching to both if/If in the IfInString command below
|
||||
Loop, read, %A_ScriptDir%/AtomUserCommands.ahk
|
||||
{
|
||||
; search for the string If RMSearchTerm =, but search for each word individually because spacing between words might not be consistent. (might be improved with regex)
|
||||
If Substr(A_LoopReadLine, 1, 1) != ";" ; Do not display commented commands
|
||||
{
|
||||
If A_LoopReadLine contains if
|
||||
{
|
||||
IfInString, A_LoopReadLine, RMSearchTerm
|
||||
IfInString, A_LoopReadLine, =
|
||||
{
|
||||
StringGetPos, setpos, A_LoopReadLine,=
|
||||
StringTrimLeft, trimmed, A_LoopReadLine, setpos+1 ; trim everything that comes before the = sign
|
||||
StringReplace, trimmed, trimmed, `%A_Space`%,{space}, All
|
||||
tooltiptext .= trimmed
|
||||
tooltiptext .= "`n"
|
||||
|
||||
; The following is used to correct padding:
|
||||
StringGetPos, commentpos, trimmed,`;
|
||||
if (maxpadding < commentpos)
|
||||
maxpadding := commentpos
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
tooltiptextpadded =
|
||||
Loop, Parse, tooltiptext,`n
|
||||
{
|
||||
line = %A_LoopField%
|
||||
StringGetPos, commentpos, line, `;
|
||||
spaces_to_insert := maxpadding - commentpos
|
||||
Loop, %spaces_to_insert%
|
||||
{
|
||||
StringReplace, line, line,`;,%A_Space%`;
|
||||
}
|
||||
tooltiptextpadded .= line
|
||||
tooltiptextpadded .= "`n"
|
||||
}
|
||||
Sort, tooltiptextpadded
|
||||
FormatTime, TodayDate , YYYYMMDDHH24MISS, yyyyMMdd_hhmmss
|
||||
Append_Filepath = %A_scriptDir%\Lib\Atom_Commands.txt
|
||||
|
||||
FileAppend, %tooltiptextpadded%,%Append_Filepath%
|
||||
; Msgbox % "tooltiptextpadded: " tooltiptextpadded
|
||||
run, %Append_Filepath%
|
||||
;ToolTip %tooltiptextpadded%, 3, 3, 1
|
||||
return
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;---FUNCTIONS-----------------------------------------------------------------------
|
||||
; A function to escape characters like & for use in URLs.
|
||||
uriEncode(str) {
|
||||
f = %A_FormatInteger%
|
||||
SetFormat, Integer, Hex
|
||||
If RegExMatch(str, "^\w+:/{0,2}", pr)
|
||||
StringTrimLeft, str, str, StrLen(pr)
|
||||
StringReplace, str, str, `%, `%25, All
|
||||
Loop
|
||||
If RegExMatch(str, "i)[^\w\.~%/:]", char)
|
||||
StringReplace, str, str, %char%, % "%" . SubStr(Asc(char),3), All
|
||||
Else Break
|
||||
SetFormat, Integer, %f%
|
||||
Return, pr . str
|
||||
}
|
||||
|
||||
|
||||
|
||||
; Export usage statistics to .txt file within \Lib\ folder
|
||||
StatExport(SearchTitle) {
|
||||
if(!SaveUsageStats) ; quit early if usage stats are disabled
|
||||
Return
|
||||
|
||||
FormatTime, CurrentTime,,yyyyMMdd_hhmmss
|
||||
|
||||
StatsFile = %A_Scriptdir%\Lib\UsageStats_%A_ComputerName%.txt
|
||||
|
||||
FileAppend, `n%CurrentTime% - %SearchTitle% - %A_ComputerName%,%StatsFile%
|
||||
}
|
BIN
Graphics/Atom.ico
Normal file
BIN
Graphics/Atom.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 106 KiB |
BIN
Graphics/Atom.png
Normal file
BIN
Graphics/Atom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
BIN
Graphics/Screenshot.jpg
Normal file
BIN
Graphics/Screenshot.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 739 KiB |
48
Lib/RAMChart.txt
Normal file
48
Lib/RAMChart.txt
Normal file
@ -0,0 +1,48 @@
|
||||
GB MB
|
||||
1 1024
|
||||
|
||||
2 2048
|
||||
|
||||
3 3072
|
||||
|
||||
4 4096
|
||||
|
||||
5 5120
|
||||
|
||||
6 6144
|
||||
|
||||
7 7168
|
||||
|
||||
8 8192
|
||||
|
||||
9 9216
|
||||
|
||||
10 10240
|
||||
|
||||
11 11264
|
||||
|
||||
12 12288
|
||||
|
||||
13 13312
|
||||
|
||||
14 14336
|
||||
|
||||
15 15360
|
||||
|
||||
16 16384
|
||||
|
||||
17 17408
|
||||
|
||||
18 18432
|
||||
|
||||
19 19456
|
||||
|
||||
20 20480
|
||||
|
||||
21 21504
|
||||
|
||||
22 22528
|
||||
|
||||
23 23552
|
||||
|
||||
24 24576
|
3
Lib/Settings.ini
Normal file
3
Lib/Settings.ini
Normal file
@ -0,0 +1,3 @@
|
||||
[AtomSearch]
|
||||
; Save Search Statistics
|
||||
SaveUsageStats=1
|
290
Modules/Atom-AHK-Commands.ahk
Normal file
290
Modules/Atom-AHK-Commands.ahk
Normal file
@ -0,0 +1,290 @@
|
||||
; A note on how this works:
|
||||
; The function name GuiSearch()" is poorly chosen.
|
||||
; What you actually specify as the parameter value is a command to run. It does not have to be a URL.
|
||||
; Before the command is run, the word REPLACEME is replaced by your input.
|
||||
; It does not have to be a search url, that was just the application I had in mind when I originally wrote it.
|
||||
; So what this does is that it runs chrome with the arguments "-incognito" and the google search URL where REPLACEME in the URL has been replaced by your input.
|
||||
|
||||
|
||||
; Search Engines
|
||||
;------------------------------------------------
|
||||
if RMSearchTerm = az%A_Space% ; Search Amazon
|
||||
{
|
||||
gui_search_title = Amazon
|
||||
gui_search_icon = %A_ICODir%\Amazon.png
|
||||
GuiSearch("https://www.amazon.com/s?k=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
if RMSearchTerm = ahk%A_Space% ; Search autohotkey Userboards
|
||||
{
|
||||
gui_search_title = AutoHotKey Userboards
|
||||
gui_search_icon = %A_ICODir%\AutoHotKey7.png
|
||||
GuiSearch("https://www.autohotkey.com/boards/search.php?keywords=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
if RMSearchTerm = dic%A_Space% ; Search Dictionary
|
||||
{
|
||||
gui_search_title = Dictionary.com
|
||||
gui_search_icon = %A_ICODir%\Dictionary.png
|
||||
GuiSearch("https://www.dictionary.com/browse/REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = d%A_Space% ; Search Brave
|
||||
{
|
||||
gui_search_title = Brave
|
||||
gui_search_icon = %A_ICODir%\Jono_Brave.png
|
||||
GuiSearch("https://search.brave.com/search?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
; GuiSearch("https://duckduckgo.com/?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = b%A_Space% ; Search Duckduckgo
|
||||
{
|
||||
gui_search_title = DuckDuckGo
|
||||
gui_search_icon = %A_ICODir%\duckduckgo_bg_1.png
|
||||
GuiSearch("https://duckduckgo.com/?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
if RMSearchTerm = gp%A_Space% ; Google Play
|
||||
{
|
||||
gui_search_title = Google Play Store
|
||||
gui_search_icon = %A_ICODir%\PlayStore.png
|
||||
; GuiSearch("https://play.google.com/store/search?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
GuiSearch("https://play.google.com/store/search?q=REPLACEME&c=apps") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = gm%A_Space% ; Google Maps
|
||||
{
|
||||
gui_search_title = Google Maps
|
||||
gui_search_icon = %A_ICODir%\GoogleMaps.png
|
||||
GuiSearch("https://www.google.com/maps/search/REPLACEME/") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = r%A_Space% ; Search reddit
|
||||
{
|
||||
gui_search_title = reddit
|
||||
gui_search_icon = %A_ICODir%\reddit.png
|
||||
GuiSearch("https://old.reddit.com/search?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = sa%A_Space% ; Search reddit SysAdmin
|
||||
{
|
||||
gui_search_title = /r/sysAdmin
|
||||
gui_search_icon = %A_ICODir%\Reddit_Boost.png
|
||||
GuiSearch("https://old.reddit.com/r/sysadmin/search?q=REPLACEME&restrict_sr=on&sort=relevance&t=all") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = w%A_Space% ; Search Wikipedia
|
||||
{
|
||||
gui_search_title = White Mountain Paper Wiki
|
||||
; gui_search_icon = %A_ICODir%\wikipedia.png
|
||||
GuiSearch("http://wiki.wmpco.biz/search?term=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = imdb%A_Space% ; Search IDMB
|
||||
{
|
||||
gui_search_title = IMDB
|
||||
gui_search_icon = %A_ICODir%\imdb.png
|
||||
GuiSearch("https://www.imdb.com/find?q=REPLACEME&s=all") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = ff%A_Space% ; Search Firefox Addons
|
||||
{
|
||||
gui_search_title = Firefox Addons
|
||||
gui_search_icon = %A_ICODir%\firefox9.png
|
||||
GuiSearch("https://addons.mozilla.org/en-US/firefox/search/?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = cc%A_Space% ; Search Chrome Addons
|
||||
{
|
||||
gui_search_title = Chrome Addons
|
||||
gui_search_icon = %A_ICODir%\
|
||||
GuiSearch("https://chrome.google.com/webstore/search/REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
if RMSearchTerm = z%A_Space% ; Search Zoogle
|
||||
{
|
||||
gui_search_title = Zoogle
|
||||
gui_search_icon = %A_ICODir%\Zoogle.png
|
||||
GuiSearch("https://zooqle.com/search?=&q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = td%A_Space% ; Search TasteDive
|
||||
{
|
||||
gui_search_title = TasteDive
|
||||
gui_search_icon = %A_ICODir%\TasteDive.png
|
||||
GuiSearch("https://tastedive.com/movies/like/REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = ia%A_Space% ; Search IconArchive
|
||||
{
|
||||
gui_search_title = IconArchive
|
||||
gui_search_icon = %A_ICODir%\Jono_IconArchive.png
|
||||
GuiSearch("https://iconarchive.com/search?q=REPLACEME&items=max") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
if RMSearchTerm = ii%A_Space% ; Icon-Icons
|
||||
{
|
||||
gui_search_title = icon-icons.com
|
||||
gui_search_icon = %A_ICODir%\iconicon.png
|
||||
GuiSearch("https://icon-icons.com/search/icons/?filtro=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
if RMSearchTerm = e%A_Space% ; Search Ebay
|
||||
{
|
||||
gui_search_title = Ebay
|
||||
gui_search_icon = %A_ICODir%\apps_ebay.pngea
|
||||
GuiSearch("https://www.ebay.com/sch/i.html?&_nkw=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
if RMSearchTerm = choco%A_Space% ; Search Chocolatey
|
||||
{
|
||||
gui_search_title = Chocolatey
|
||||
gui_search_icon = %A_ICODir%\chocolatey.png
|
||||
GuiSearch("https://chocolatey.org/packages?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
|
||||
if RMSearchTerm = pip%A_Space% ; Search pypi
|
||||
{
|
||||
gui_search_title = pypi
|
||||
gui_search_icon = %A_ICODir%\
|
||||
GuiSearch("https://pypi.org/search/?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = sp%A_Space% ; Startpage
|
||||
{
|
||||
gui_search_title = Startpage
|
||||
gui_search_icon = %A_ICODir%\startpage.png
|
||||
GuiSearch("https://www.startpage.com/do/dsearch?query=REPLACEME&cat=web&pl=opensearch&language=english")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = g%A_Space% ; Google
|
||||
{
|
||||
gui_search_title = Google
|
||||
gui_search_icon = %A_ICODir%\Google.png
|
||||
GuiSearch("https://www.google.com/search?q=REPLACEME")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
if RMSearchTerm = gi%A_Space% ; Google Images
|
||||
{
|
||||
gui_search_title = Google Images
|
||||
gui_search_icon = %A_ICODir%\GoogleImages.png
|
||||
GuiSearch("https://www.google.com/images?q=REPLACEME")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
if RMSearchTerm = di%A_Space% ; Search DuckDuckGo Images
|
||||
{
|
||||
gui_search_title = DuckDuckGo Images
|
||||
gui_search_icon = %A_ICODir%\DuckDuckGo.png
|
||||
GuiSearch("https://duckduckgo.com/?q=REPLACEME&t=h_&ia=images&iax=images")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = a%A_Space% ; Search Google for AutoHotkey related results
|
||||
{
|
||||
gui_search_title = Autohotkey Google Search
|
||||
gui_search_icon = %A_ICODir%\imageeeewithpng
|
||||
GuiSearch("https://www.google.com/search?num=50&safe=off&site=&source=hp&q=autohotkey%20REPLACEME&btnG=Search&oq=&gs_l=")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
else if RMSearchTerm = gl%A_Space% ; Search Google with ImFeelingLucky
|
||||
{
|
||||
gui_search_title = I'm Feeling Lucky
|
||||
gui_search_icon = %A_ICODir%\imageeeewithpng
|
||||
GuiSearch("http://www.google.com/search?q=REPLACEME&btnI=Im+Feeling+Lucky")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
else if RMSearchTerm = multi%A_Space% ; Open more than one search
|
||||
{
|
||||
|
||||
gui_search_title = Google/Bing/DDG/Startpage
|
||||
GuiSearch("https://www.google.com/search?&q=REPLACEME")
|
||||
GuiSearch("https://www.bing.com/search?q=REPLACEME")
|
||||
GuiSearch("https://duckduckgo.com/?q=REPLACEME")
|
||||
GuiSearch("https://www.startpage.com/do/dsearch?query=REPLACEME&cat=web&pl=opensearch&language=english")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
else if RMSearchTerm = ci%A_Space% ; Search Google as Incognito
|
||||
{
|
||||
gui_search_title = Google - Chrome Incognito
|
||||
gui_search_icon = %A_ICODir%\Incognito.png
|
||||
GuiSearch("chrome.exe -incognito https://www.google.com/search?safe=off&q=REPLACEME")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
else if RMSearchTerm = y%A_Space% ; Search Youtube
|
||||
{
|
||||
gui_search_title = Youtube
|
||||
gui_search_icon = %A_ICODir%\Youtube_Jono.png
|
||||
GuiSearch("https://www.youtube.com/results?search_query=REPLACEME")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
else if RMSearchTerm = gt%A_Space% ; Google Translate English to Russian
|
||||
{
|
||||
gui_search_title = Google Translate
|
||||
gui_search_icon =
|
||||
; GuiSearch("https://translate.google.com/#en/RU/REPLACEME")
|
||||
; GuiSearch("https://translate.google.com/#en/ES/REPLACEME")
|
||||
GuiSearch("https://translate.google.com/#view=home&op=translate&sl=auto&tl=es&text=REPLACEME")
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
|
||||
else if RMSearchTerm = / ; Go to subreddit
|
||||
{
|
||||
gui_search_title := "/r/"
|
||||
gui_search_icon =
|
||||
GuiSearch("https://www.reddit.com/r/REPLACEME")
|
||||
}
|
||||
|
||||
else if RMSearchTerm = red ; reddit.com
|
||||
{
|
||||
gui_destroy()
|
||||
run www.reddit.com
|
||||
}
|
74
Modules/Atom-Folders.ahk
Normal file
74
Modules/Atom-Folders.ahk
Normal file
@ -0,0 +1,74 @@
|
||||
; Folder Shortcuts
|
||||
;------------------------------------------------
|
||||
if RMSearchTerm = dd%A_Space% ; downloads
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_Username%\Downloads
|
||||
}
|
||||
|
||||
else if RMSearchTerm = dl%A_Space% ; downloads
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_Username%\Downloads
|
||||
}
|
||||
|
||||
else if RMSearchTerm = gg%A_Space% ; Git
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_username%\Syncthing\Git
|
||||
}
|
||||
|
||||
else if RMSearchTerm = dc%A_Space% ; DCIM
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_Username%\Pictures
|
||||
}
|
||||
|
||||
else if RMSearchTerm = pic%A_Space% ;
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_Username%\Pictures
|
||||
}
|
||||
|
||||
else if RMSearchTerm = mus%A_Space% ;
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_Username%\Music
|
||||
}
|
||||
|
||||
else if RMSearchTerm = vids%A_Space% ;
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_Username%\Videos
|
||||
}
|
||||
|
||||
else if RMSearchTerm = doc%A_Space% ;
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_Username%\Documents
|
||||
}
|
||||
else if RMSearchTerm = desk%A_Space% ;
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_Username%\Desktop
|
||||
}
|
||||
|
||||
else if RMSearchTerm = ss%A_Space% ; Screenshots
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_Username%\Pictures\Screenshots
|
||||
|
||||
}
|
||||
else if RMSearchTerm = startup%A_Space% ; startup
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_Username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
|
||||
return
|
||||
}
|
||||
|
||||
else if RMSearchTerm = rb%A_Space% ; Recycle Bin
|
||||
{
|
||||
gui_destroy()
|
||||
Run ::{645FF040-5081-101B-9F08-00AA002F954E}
|
||||
; other clsid-key shortcuts: https://www.tenforums.com/tutorials/3123-clsid-key-guid-shortcuts-list-windows-10-a.html
|
||||
}
|
101
Modules/Atom-Misc-Commands.ahk
Normal file
101
Modules/Atom-Misc-Commands.ahk
Normal file
@ -0,0 +1,101 @@
|
||||
|
||||
; Interact with THIS AHK Script
|
||||
;------------------------------------------------
|
||||
|
||||
else if RMSearchTerm = rl%A_Space% ; Reload This script
|
||||
{
|
||||
gui_destroy()
|
||||
Reload
|
||||
}
|
||||
else if RMSearchTerm = dir%A_Space% ; Open the directory for this script
|
||||
{
|
||||
gui_destroy()
|
||||
Run, %A_ScriptDir%
|
||||
}
|
||||
else if RMSearchTerm = edit%A_Space% ; Edit host script
|
||||
{
|
||||
gui_destroy()
|
||||
run, "C:\Windows\notepad.exe" "%A_ScriptFullPath%"
|
||||
}
|
||||
|
||||
|
||||
|
||||
; Type Raw Text
|
||||
;------------------------------------------------
|
||||
else if RMSearchTerm = raw%A_Space% ; Paste clipboard content without formatting
|
||||
{
|
||||
gui_destroy()
|
||||
SendRaw, %ClipBoard%
|
||||
}
|
||||
|
||||
|
||||
else if RMSearchTerm = ram%A_Space% ; RAM Calculator
|
||||
{
|
||||
CustomTool = RamMultiplier
|
||||
|
||||
gui_search_title = How many GB? > clipboard
|
||||
gui_search_icon = %A_ICODir%\Ram_Metro.ico
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
else if RMSearchTerm = time%A_Space% ; Requests
|
||||
{
|
||||
CustomTool = AHKTimeMultiplier
|
||||
|
||||
gui_search_title = How much time? #M or #H > clipboard
|
||||
; gui_search_icon = %A_ICODir%\Ram_Metro.ico
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
else if RMSearchTerm = ada%A_Space% ; Adapters
|
||||
{
|
||||
gui_destroy()
|
||||
run, "C:\Windows\System32\ncpa.cpl" ; Network Adapters
|
||||
}
|
||||
else if RMSearchTerm = disk%A_Space% ; Disk Management
|
||||
{
|
||||
gui_destroy()
|
||||
run, "diskmgmt.msc" ; Windows Disk management
|
||||
}
|
||||
|
||||
else if RMSearchTerm = power ; Power down the pc
|
||||
{
|
||||
gui_destroy()
|
||||
Shutdown, 8 ; power off command
|
||||
}
|
||||
|
||||
else if RMSearchTerm = date ; What is the date?
|
||||
{
|
||||
gui_destroy()
|
||||
FormatTime, date,, LongDate
|
||||
MsgBox %date%
|
||||
date =
|
||||
}
|
||||
else if RMSearchTerm = week ; Which week is it?
|
||||
{
|
||||
gui_destroy()
|
||||
FormatTime, weeknumber,, YWeek
|
||||
StringTrimLeft, weeknumbertrimmed, weeknumber, 4
|
||||
if (weeknumbertrimmed = 53)
|
||||
weeknumbertrimmed := 1
|
||||
MsgBox It is currently week %weeknumbertrimmed%
|
||||
weeknumber =
|
||||
weeknumbertrimmed =
|
||||
}
|
||||
else if RMSearchTerm = ?%A_Space% ; Tooltip with list of commands
|
||||
{
|
||||
GuiControl,, RMSearchTerm, ; Clear the input box
|
||||
gui_destroy()
|
||||
Gosub, gui_commandlibrary
|
||||
}
|
||||
else if RMSearchTerm = a?%A_Space% ; Tooltip with list of commands
|
||||
{
|
||||
GuiControl,, RMSearchTerm, ; Clear the input box
|
||||
gui_destroy()
|
||||
Gosub, gui_commandlibrary
|
||||
}
|
||||
|
||||
return
|
||||
|
41
Modules/Atom-Programs.ahk
Normal file
41
Modules/Atom-Programs.ahk
Normal file
@ -0,0 +1,41 @@
|
||||
; Program Shortcuts
|
||||
;------------------------------------------------
|
||||
; first item has to be a "if" and all items below it are "else if"
|
||||
|
||||
else if RMSearchTerm = S%A_Space%
|
||||
{
|
||||
CustomTool = Sublime
|
||||
|
||||
gui_search_title = Sublime
|
||||
gui_search_icon = %A_ICODir%\Sublime.png
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
return
|
||||
}
|
||||
else if RMSearchTerm = gimp%A_Space%
|
||||
{
|
||||
CustomTool = GIMP
|
||||
|
||||
gui_search_title = Gimp
|
||||
gui_search_icon = %A_ICODir%\gimp.png
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
else if RMSearchTerm = dn%A_Space% ; Open up a joplin note using an eternal URL
|
||||
{
|
||||
|
||||
gui_destroy()
|
||||
run, joplin://x-callback-url/openNote?id=b0b578945bab49e4a118a5f2f8ff16db
|
||||
}
|
||||
|
||||
|
||||
else if RMSearchTerm = cmd%A_Space% ; Run CMD
|
||||
{
|
||||
gui_destroy()
|
||||
;run, %comspec% /k "C:\Users\me\Downloads\_Old Files"
|
||||
run, cmd.exe ;, C:\Users\me\Downloads\_Old Files
|
||||
}
|
||||
|
290
Modules/Atom-Web-Searches.ahk
Normal file
290
Modules/Atom-Web-Searches.ahk
Normal file
@ -0,0 +1,290 @@
|
||||
; A note on how this works:
|
||||
; The function name GuiSearch()" is poorly chosen.
|
||||
; What you actually specify as the parameter value is a command to run. It does not have to be a URL.
|
||||
; Before the command is run, the word REPLACEME is replaced by your input.
|
||||
; It does not have to be a search url, that was just the application I had in mind when I originally wrote it.
|
||||
; So what this does is that it runs chrome with the arguments "-incognito" and the google search URL where REPLACEME in the URL has been replaced by your input.
|
||||
|
||||
|
||||
; Search Engines
|
||||
;------------------------------------------------
|
||||
if RMSearchTerm = az%A_Space% ; Search Amazon
|
||||
{
|
||||
gui_search_title = Amazon
|
||||
gui_search_icon = %A_ICODir%\Amazon.png
|
||||
GuiSearch("https://www.amazon.com/s?k=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
if RMSearchTerm = ahk%A_Space% ; Search autohotkey Userboards
|
||||
{
|
||||
gui_search_title = AutoHotKey Userboards
|
||||
gui_search_icon = %A_ICODir%\AutoHotKey7.png
|
||||
GuiSearch("https://www.autohotkey.com/boards/search.php?keywords=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
if RMSearchTerm = dic%A_Space% ; Search Dictionary
|
||||
{
|
||||
gui_search_title = Dictionary.com
|
||||
gui_search_icon = %A_ICODir%\Dictionary.png
|
||||
GuiSearch("https://www.dictionary.com/browse/REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = d%A_Space% ; Search Brave
|
||||
{
|
||||
gui_search_title = Brave
|
||||
gui_search_icon = %A_ICODir%\Jono_Brave.png
|
||||
GuiSearch("https://search.brave.com/search?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
; GuiSearch("https://duckduckgo.com/?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = b%A_Space% ; Search Duckduckgo
|
||||
{
|
||||
gui_search_title = DuckDuckGo
|
||||
gui_search_icon = %A_ICODir%\duckduckgo_bg_1.png
|
||||
GuiSearch("https://duckduckgo.com/?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
if RMSearchTerm = gp%A_Space% ; Google Play
|
||||
{
|
||||
gui_search_title = Google Play Store
|
||||
gui_search_icon = %A_ICODir%\PlayStore.png
|
||||
; GuiSearch("https://play.google.com/store/search?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
GuiSearch("https://play.google.com/store/search?q=REPLACEME&c=apps") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = gm%A_Space% ; Google Maps
|
||||
{
|
||||
gui_search_title = Google Maps
|
||||
gui_search_icon = %A_ICODir%\GoogleMaps.png
|
||||
GuiSearch("https://www.google.com/maps/search/REPLACEME/") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = r%A_Space% ; Search reddit
|
||||
{
|
||||
gui_search_title = reddit
|
||||
gui_search_icon = %A_ICODir%\reddit.png
|
||||
GuiSearch("https://old.reddit.com/search?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = sa%A_Space% ; Search reddit SysAdmin
|
||||
{
|
||||
gui_search_title = /r/sysAdmin
|
||||
gui_search_icon = %A_ICODir%\Reddit_Boost.png
|
||||
GuiSearch("https://old.reddit.com/r/sysadmin/search?q=REPLACEME&restrict_sr=on&sort=relevance&t=all") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = w%A_Space% ; Search Wikipedia
|
||||
{
|
||||
gui_search_title = White Mountain Paper Wiki
|
||||
; gui_search_icon = %A_ICODir%\wikipedia.png
|
||||
GuiSearch("http://wiki.wmpco.biz/search?term=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = imdb%A_Space% ; Search IDMB
|
||||
{
|
||||
gui_search_title = IMDB
|
||||
gui_search_icon = %A_ICODir%\imdb.png
|
||||
GuiSearch("https://www.imdb.com/find?q=REPLACEME&s=all") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = ff%A_Space% ; Search Firefox Addons
|
||||
{
|
||||
gui_search_title = Firefox Addons
|
||||
gui_search_icon = %A_ICODir%\firefox9.png
|
||||
GuiSearch("https://addons.mozilla.org/en-US/firefox/search/?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = cc%A_Space% ; Search Chrome Addons
|
||||
{
|
||||
gui_search_title = Chrome Addons
|
||||
gui_search_icon = %A_ICODir%\
|
||||
GuiSearch("https://chrome.google.com/webstore/search/REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
if RMSearchTerm = z%A_Space% ; Search Zoogle
|
||||
{
|
||||
gui_search_title = Zoogle
|
||||
gui_search_icon = %A_ICODir%\Zoogle.png
|
||||
GuiSearch("https://zooqle.com/search?=&q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = td%A_Space% ; Search TasteDive
|
||||
{
|
||||
gui_search_title = TasteDive
|
||||
gui_search_icon = %A_ICODir%\TasteDive.png
|
||||
GuiSearch("https://tastedive.com/movies/like/REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = ia%A_Space% ; Search IconArchive
|
||||
{
|
||||
gui_search_title = IconArchive
|
||||
gui_search_icon = %A_ICODir%\Jono_IconArchive.png
|
||||
GuiSearch("https://iconarchive.com/search?q=REPLACEME&items=max") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
if RMSearchTerm = ii%A_Space% ; Icon-Icons
|
||||
{
|
||||
gui_search_title = icon-icons.com
|
||||
gui_search_icon = %A_ICODir%\iconicon.png
|
||||
GuiSearch("https://icon-icons.com/search/icons/?filtro=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
if RMSearchTerm = e%A_Space% ; Search Ebay
|
||||
{
|
||||
gui_search_title = Ebay
|
||||
gui_search_icon = %A_ICODir%\apps_ebay.pngea
|
||||
GuiSearch("https://www.ebay.com/sch/i.html?&_nkw=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
if RMSearchTerm = choco%A_Space% ; Search Chocolatey
|
||||
{
|
||||
gui_search_title = Chocolatey
|
||||
gui_search_icon = %A_ICODir%\chocolatey.png
|
||||
GuiSearch("https://chocolatey.org/packages?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
|
||||
if RMSearchTerm = pip%A_Space% ; Search pypi
|
||||
{
|
||||
gui_search_title = pypi
|
||||
gui_search_icon = %A_ICODir%\
|
||||
GuiSearch("https://pypi.org/search/?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = sp%A_Space% ; Startpage
|
||||
{
|
||||
gui_search_title = Startpage
|
||||
gui_search_icon = %A_ICODir%\startpage.png
|
||||
GuiSearch("https://www.startpage.com/do/dsearch?query=REPLACEME&cat=web&pl=opensearch&language=english")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = g%A_Space% ; Google
|
||||
{
|
||||
gui_search_title = Google
|
||||
gui_search_icon = %A_ICODir%\Google.png
|
||||
GuiSearch("https://www.google.com/search?q=REPLACEME")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
if RMSearchTerm = gi%A_Space% ; Google Images
|
||||
{
|
||||
gui_search_title = Google Images
|
||||
gui_search_icon = %A_ICODir%\GoogleImages.png
|
||||
GuiSearch("https://www.google.com/images?q=REPLACEME")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
if RMSearchTerm = di%A_Space% ; Search DuckDuckGo Images
|
||||
{
|
||||
gui_search_title = DuckDuckGo Images
|
||||
gui_search_icon = %A_ICODir%\DuckDuckGo.png
|
||||
GuiSearch("https://duckduckgo.com/?q=REPLACEME&t=h_&ia=images&iax=images")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
if RMSearchTerm = a%A_Space% ; Search Google for AutoHotkey related results
|
||||
{
|
||||
gui_search_title = Autohotkey Google Search
|
||||
gui_search_icon = %A_ICODir%\imageeeewithpng
|
||||
GuiSearch("https://www.google.com/search?num=50&safe=off&site=&source=hp&q=autohotkey%20REPLACEME&btnG=Search&oq=&gs_l=")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
else if RMSearchTerm = gl%A_Space% ; Search Google with ImFeelingLucky
|
||||
{
|
||||
gui_search_title = I'm Feeling Lucky
|
||||
gui_search_icon = %A_ICODir%\imageeeewithpng
|
||||
GuiSearch("http://www.google.com/search?q=REPLACEME&btnI=Im+Feeling+Lucky")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
else if RMSearchTerm = multi%A_Space% ; Open more than one search
|
||||
{
|
||||
|
||||
gui_search_title = Google/Bing/DDG/Startpage
|
||||
GuiSearch("https://www.google.com/search?&q=REPLACEME")
|
||||
GuiSearch("https://www.bing.com/search?q=REPLACEME")
|
||||
GuiSearch("https://duckduckgo.com/?q=REPLACEME")
|
||||
GuiSearch("https://www.startpage.com/do/dsearch?query=REPLACEME&cat=web&pl=opensearch&language=english")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
else if RMSearchTerm = ci%A_Space% ; Search Google as Incognito
|
||||
{
|
||||
gui_search_title = Google - Chrome Incognito
|
||||
gui_search_icon = %A_ICODir%\Incognito.png
|
||||
GuiSearch("chrome.exe -incognito https://www.google.com/search?safe=off&q=REPLACEME")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
else if RMSearchTerm = y%A_Space% ; Search Youtube
|
||||
{
|
||||
gui_search_title = Youtube
|
||||
gui_search_icon = %A_ICODir%\Youtube_Jono.png
|
||||
GuiSearch("https://www.youtube.com/results?search_query=REPLACEME")
|
||||
StatExport(gui_search_title)
|
||||
|
||||
}
|
||||
|
||||
else if RMSearchTerm = gt%A_Space% ; Google Translate English to Russian
|
||||
{
|
||||
gui_search_title = Google Translate
|
||||
gui_search_icon =
|
||||
; GuiSearch("https://translate.google.com/#en/RU/REPLACEME")
|
||||
; GuiSearch("https://translate.google.com/#en/ES/REPLACEME")
|
||||
GuiSearch("https://translate.google.com/#view=home&op=translate&sl=auto&tl=es&text=REPLACEME")
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
|
||||
else if RMSearchTerm = / ; Go to subreddit
|
||||
{
|
||||
gui_search_title := "/r/"
|
||||
gui_search_icon =
|
||||
GuiSearch("https://www.reddit.com/r/REPLACEME")
|
||||
}
|
||||
|
||||
else if RMSearchTerm = red ; reddit.com
|
||||
{
|
||||
gui_destroy()
|
||||
run www.reddit.com
|
||||
}
|
492
Modules/AtomUserCommands-01.ahk
Normal file
492
Modules/AtomUserCommands-01.ahk
Normal file
@ -0,0 +1,492 @@
|
||||
; Note: Save with encoding UTF-8 with BOM if possible.
|
||||
; I had issues with special characters like in ¯\_(ツ)_/¯ that wouldn't work otherwise.
|
||||
; Notepad will save UTF-8 files with BOM automatically (even though it does not say so).
|
||||
; Some editors however save without BOM, and then special characters look messed up in the AHK GUI.
|
||||
|
||||
; Write your own AHK commands in this file to be recognized by the GUI. Take inspiration from the samples provided here.
|
||||
|
||||
; A note on how this works:
|
||||
; The function name GuiSearch()" is poorly chosen.
|
||||
; What you actually specify as the parameter value is a command to run. It does not have to be a URL.
|
||||
; Before the command is run, the word REPLACEME is replaced by your input.
|
||||
; It does not have to be a search url, that was just the application I had in mind when I originally wrote it.
|
||||
; So what this does is that it runs chrome with the arguments "-incognito" and the google search URL where REPLACEME in the URL has been replaced by your input.
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
;;; Search Engines ;;;
|
||||
;-------------------------------------------------------------------------------
|
||||
;REPLACEME
|
||||
;https://www.startpage.com/do/dsearch?query=site%3Awww.reddit.com+EXCELCOM&cat=web&pl=opensearch&language=english
|
||||
|
||||
|
||||
; Search Engines
|
||||
;-----------------------------------------------
|
||||
|
||||
; global cYellow
|
||||
; global
|
||||
|
||||
; Gui, Add, Text, %gui_control_options% %cYellow% +Center, %gui_search_title%
|
||||
; Gui, Add, Picture, x2 h45 w45, %gui_search_icon%
|
||||
; Gui, Add, Edit, x+1 %gui_control_options% %cYellow%
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
;---AHK Scripts---
|
||||
;------------------------------------------------
|
||||
else if RMSearchTerm = bt%A_Space% ; Toggle Bluetooth
|
||||
{
|
||||
gui_destroy()
|
||||
run, "C:\Users\%A_username%\Syncthing\Scripts\AutoHotKey\Tools\Windows10\Bluetooth\ToggleBluetooth.ahk"
|
||||
}
|
||||
|
||||
|
||||
else if RMSearchTerm = cico%A_Space% ; Open Icons Folder
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_Username%\Syncthing\Scripts\AutoHotKey\Utilities\CreateICOIconUsingImageMagick.ahk
|
||||
}
|
||||
|
||||
else if RMSearchTerm = rla%A_Space% ; Reload ALL scripts
|
||||
{
|
||||
gui_destroy()
|
||||
run, "C:\Users\%A_username%\Syncthing\Scripts\AutoHotKey\Utilities\RMScriptManager.ahk" "ReloadAll"
|
||||
}
|
||||
|
||||
else if RMSearchTerm = kill%A_Space% ; Kill all ahk scripts
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_username%\Syncthing\Scripts\AutoHotKey\Tools\Kill & Close all running AHK scripts.ahk
|
||||
}
|
||||
else if RMSearchTerm = running%A_Space% ; Kill all ahk scripts
|
||||
{
|
||||
gui_destroy()
|
||||
run, "C:\Users\%A_Username%\Syncthing\Scripts\AutoHotKey\Utilities\Running Script Manager.exe"
|
||||
}
|
||||
|
||||
else if RMSearchTerm = tel%A_Space% ; run voidtools and search for executables
|
||||
{
|
||||
gui_destroy()
|
||||
run, "C:\Users\%A_username%\Syncthing\Scripts\AutoHotKey\Utilities\SendTelegramMessageToCheckNowChannel.ahk"
|
||||
}
|
||||
|
||||
;---/AHK Scripts---
|
||||
;------------------------------------------------
|
||||
|
||||
|
||||
|
||||
;---Other Tools---
|
||||
;------------------------------------------------
|
||||
|
||||
else if RMSearchTerm = uk%A_Space% ; uptime Kuma
|
||||
{
|
||||
gui_destroy()
|
||||
run, http://206.210.43.203:3001/dashboard
|
||||
}
|
||||
|
||||
else if RMSearchTerm = pf%A_Space% ; uptime Kuma
|
||||
{
|
||||
gui_destroy()
|
||||
run, http://206.210.36.1/
|
||||
}
|
||||
|
||||
|
||||
else if RMSearchTerm = sst%A_Space% ; IT Toolbox
|
||||
{
|
||||
gui_destroy()
|
||||
run, \\smb\Toolbox
|
||||
}
|
||||
else if RMSearchTerm = smb%A_Space% ; IT Toolbox
|
||||
{
|
||||
gui_destroy()
|
||||
run, \\smb\General\
|
||||
}
|
||||
else if RMSearchTerm = ww%A_Space% ;
|
||||
{
|
||||
gui_destroy()
|
||||
run, W:\
|
||||
}
|
||||
else if RMSearchTerm = ssg%A_Space% ;
|
||||
{
|
||||
gui_destroy()
|
||||
run, \\smb\general
|
||||
}
|
||||
|
||||
else if RMSearchTerm = nm%A_Space% ; nomachine
|
||||
{
|
||||
CustomTool = NoMachine
|
||||
gui_search_title = NoMachine
|
||||
|
||||
gui_search_icon = %A_ICODir%\NoMachine-icon.png
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
}
|
||||
|
||||
else if RMSearchTerm = nmt%A_Space% ; nomachine
|
||||
{
|
||||
CustomTool = NoMachine-Terminal
|
||||
gui_search_title = NoMachine (Terminal)
|
||||
|
||||
gui_search_icon = %A_ICODir%\NoMachine-icon.png
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
}
|
||||
|
||||
else if RMSearchTerm = p%A_Space% ; Ping in CMD and keep open
|
||||
{
|
||||
CustomTool = CMD_KeepOpen
|
||||
gui_search_title = Ping
|
||||
gui_search_icon = %A_ICODir%\Terminal.png
|
||||
GuiSearch("ping -n 9999 REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
; GuiSearch("https://duckduckgo.com/?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
else if RMSearchTerm = pg%A_Space% ; Ping in CMD and keep open
|
||||
{
|
||||
; CustomTool = CMD_KeepOpen
|
||||
gui_destroy()
|
||||
run, %comspec% /k ping 206.210.40.1 -n 9999
|
||||
; gui_search_title = Ping
|
||||
; gui_search_icon = %A_ICODir%\Terminal.png
|
||||
; GuiSearch("ping -n 10 206.210.40.1") ; REPLACEME text will be replaced with the text input
|
||||
; GuiSearch("https://duckduckgo.com/?q=REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
else if RMSearchTerm = u%A_Space%
|
||||
{
|
||||
CustomTool = "C:\Program Files\LibreWolf\librewolf.exe"
|
||||
|
||||
gui_search_title = Open URL in Librewolf
|
||||
gui_search_icon = %A_ICODir%\Librewolf.png
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
|
||||
else if RMSearchTerm = O%A_Space%
|
||||
{
|
||||
|
||||
CustomTool = OpenFile
|
||||
|
||||
gui_search_title = Open File
|
||||
gui_search_icon = %A_ICODir%\Files1.png
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
else if RMSearchTerm = dn%A_Space%
|
||||
{
|
||||
|
||||
gui_destroy()
|
||||
run, joplin://x-callback-url/openNote?id=b0b578945bab49e4a118a5f2f8ff16db
|
||||
}
|
||||
else if RMSearchTerm = dt%A_Space%
|
||||
{
|
||||
|
||||
gui_destroy()
|
||||
run, joplin://x-callback-url/openNote?id=89c905d6075c43a3a36c154d5b046d4e
|
||||
}
|
||||
else if RMSearchTerm = vlan%A_Space%
|
||||
{
|
||||
|
||||
gui_destroy()
|
||||
run, joplin://x-callback-url/openNote?id=0600aae9fa0e4dab936c9f125697cfbe
|
||||
}
|
||||
else if RMSearchTerm = octet%A_Space%
|
||||
{
|
||||
|
||||
gui_destroy()
|
||||
run, joplin://x-callback-url/openNote?id=f6429017ed194495a060930616a159edN
|
||||
}
|
||||
|
||||
else if RMSearchTerm = j%A_Space%
|
||||
{
|
||||
|
||||
CustomTool = Joplin
|
||||
|
||||
gui_search_title = Joplin
|
||||
gui_search_icon = %A_ICODir%\Files1.png
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
return
|
||||
}
|
||||
|
||||
else if RMSearchTerm = S%A_Space%
|
||||
{
|
||||
CustomTool = Sublime
|
||||
|
||||
gui_search_title = Sublime
|
||||
gui_search_icon = %A_ICODir%\Sublime.png
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
return
|
||||
}
|
||||
else if RMSearchTerm = gimp%A_Space%
|
||||
{
|
||||
CustomTool = GIMP
|
||||
|
||||
gui_search_title = Gimp
|
||||
gui_search_icon = %A_ICODir%\gimp.png
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
|
||||
; Interact with this AHK Script
|
||||
;------------------------------------------------
|
||||
|
||||
else if RMSearchTerm = rl%A_Space% ; Reload This script
|
||||
{
|
||||
gui_destroy()
|
||||
Reload
|
||||
}
|
||||
else if RMSearchTerm = dir%A_Space% ; Open the directory for this script
|
||||
{
|
||||
gui_destroy()
|
||||
Run, %A_ScriptDir%
|
||||
}
|
||||
else if RMSearchTerm = host%A_Space% ; Edit host script
|
||||
{
|
||||
gui_destroy()
|
||||
run, "C:\Program Files\Sublime Text\sublime_text.exe" "%A_ScriptFullPath%"
|
||||
}
|
||||
else if RMSearchTerm = edit%A_Space% ; Edit GUI user commands
|
||||
{
|
||||
gui_destroy()
|
||||
; run, "C:\Program Files\Sublime Text\sublime_text.exe" "%A_ScriptName%"
|
||||
run, "%A_sublimeFilepath%" "C:\Users\%A_username%\Syncthing\Scripts\AutoHotKey\Utilities\AtomSearch\AtomUserCommands.ahk"
|
||||
}
|
||||
else if RMSearchTerm = hotstrings%A_Space% ; Edit GUI user commands
|
||||
{
|
||||
gui_destroy()
|
||||
run, "%A_sublimeFilepath%" "C:\Users\%A_username%\Syncthing\Scripts\AutoHotKey\RadialMenu\My codes\My hotstrings.ahk"
|
||||
}
|
||||
else if RMSearchTerm = hotkeys%A_Space% ; Edit GUI user commands
|
||||
{
|
||||
gui_destroy()
|
||||
run, "%A_sublimeFilepath%" "C:\Users\%A_username%\Syncthing\Scripts\AutoHotKey\RadialMenu\My codes\My hotkeys.ahk"
|
||||
}
|
||||
else if RMSearchTerm = functions%A_Space% ; Edit GUI user commands
|
||||
{
|
||||
gui_destroy()
|
||||
run, "%A_sublimeFilepath%" "C:\Users\%A_username%\Syncthing\Scripts\AutoHotKey\RadialMenu\My codes\My functions.ahk"
|
||||
}
|
||||
else if RMSearchTerm = rufay%A_Space% ; Edit GUI user commands
|
||||
{
|
||||
gui_destroy()
|
||||
run, "%A_sublimeFilepath%" "C:\Users\%A_Username%\Syncthing\Scripts\AutoHotKey\Utilities\Rufaydium_Scripts\Fun_Rufaydium_LoginWebsites.ahk"
|
||||
}
|
||||
else if RMSearchTerm = browser%A_Space% ; Edit GUI user commands
|
||||
{
|
||||
gui_destroy()
|
||||
run, "%A_sublimeFilepath%" "C:\Users\%A_Username%\Syncthing\Scripts\AutoHotKey\Utilities\open-browser-tab-with\Open Browser Tab WITH.ahk"
|
||||
}
|
||||
else if RMSearchTerm = global%A_Space% ; Edit GUI user commands
|
||||
{
|
||||
gui_destroy()
|
||||
run, "%A_sublimeFilepath%" "C:\Users\%A_Username%\Syncthing\Scripts\AutoHotKey\RadialMenu\My codes\My Global Variables.ahk"
|
||||
}
|
||||
|
||||
; Type Raw Text
|
||||
;------------------------------------------------
|
||||
else if RMSearchTerm = clip%A_Space% ; Paste clipboard content without formatting
|
||||
{
|
||||
gui_destroy()
|
||||
SendRaw, %ClipBoard%
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
; Launch Software/Programs
|
||||
;------------------------------------------------
|
||||
else if RMSearchTerm = t%A_Space% ; ; SimpleTask append
|
||||
{
|
||||
CustomTool = ToDoTxt
|
||||
|
||||
gui_search_title = ToDo.txt Append
|
||||
gui_search_icon = %A_ICODir%\ToDoTXT.png
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
return
|
||||
}
|
||||
else if RMSearchTerm = fn%A_Space% ; ; SimpleTask append
|
||||
{
|
||||
gui_search_title = Append Fast Notepad
|
||||
gui_search_icon = %A_ICODir%\
|
||||
|
||||
Gui, Add, Text, %gui_control_options% %cYellow% +Center, %gui_search_title%
|
||||
Gui, Add, Picture, x2 h45 w45, %gui_search_icon%
|
||||
Gui, Add, Edit, x+1 %gui_control_options% %cYellow% +Center vgui_SearchEdit -WantReturn
|
||||
Gui, Add, Button, x-10 y-10 w1 h1 +default gAppendtoFastNotepad ; hidden button
|
||||
GuiControl, Disable, RMSearchTerm
|
||||
Gui, Show, AutoSize
|
||||
return
|
||||
|
||||
AppendtoFastNotepad:
|
||||
Gui, Submit
|
||||
gui_state = closed
|
||||
SaveLocation = C:\Users\%A_username%\Syncthing\Joplin\Resources\Text_Files\fastnote
|
||||
|
||||
if(!FileExist(SaveLocation)){
|
||||
MsgBox, Folder not found:`n %SaveLocation%
|
||||
return
|
||||
}
|
||||
FormatTime, TodayDate , YYYYMMDDHH24MISS, yyyyMMdd_hhmmss
|
||||
filename = %SaveLocation%\%TodayDate%_QuickNotepad.txt
|
||||
FileAppend,%gui_SearchEdit%, %filename%
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
else if RMSearchTerm = cmd%A_Space% ; Run CMD
|
||||
{
|
||||
gui_destroy()
|
||||
;run, %comspec% /k "C:\Users\me\Downloads\_Old Files"
|
||||
run, cmd.exe ;, C:\Users\me\Downloads\_Old Files
|
||||
}
|
||||
else if RMSearchTerm = clean%A_Space% ; Clean downloads folder
|
||||
{
|
||||
gui_destroy()
|
||||
run, "C:\Users\%A_username%\Syncthing\Scripts\AutoHotKey\Tools\FolderCleaner.ahk"
|
||||
}
|
||||
else if RMSearchTerm = write%A_Space% ; Libreoffice Writer
|
||||
{ gui_destroy()
|
||||
run, "C:\Program Files\LibreOffice\program\swriter.exe"
|
||||
}
|
||||
else if RMSearchTerm = writel%A_Space% ; Libreoffice Writer
|
||||
{ gui_destroy()
|
||||
run, "C:\Users\me\Documents\LibreOffice\BlankLandscape.odt"
|
||||
}
|
||||
else if RMSearchTerm = update%A_Space% ; Upgrade Chocolatey packages
|
||||
{
|
||||
gui_destroy()
|
||||
run, "C:\Users\%A_username%\Syncthing\Scripts\AutoHotKey\Tools\Chocolatey\ChocoUpgradeAll.ahk"
|
||||
}
|
||||
else if RMSearchTerm = xlsb%A_Space% ; Open Personal XLSB
|
||||
{
|
||||
gui_destroy()
|
||||
run, "C:\Users\%A_UserName%\AppData\Roaming\Microsoft\Excel\XLSTART\Personal.XLSB"
|
||||
}
|
||||
else if RMSearchTerm = req%A_Space% ; Requests
|
||||
{
|
||||
gui_destroy()
|
||||
run, "C:\Users\%A_username%\Syncthing\WhiteMountain\Requisitions\IT Requisitions wHistory.xlsm"
|
||||
}
|
||||
else if RMSearchTerm = new%A_Space% ; Requests
|
||||
{
|
||||
gui_destroy()
|
||||
run, "C:\Users\ity\Syncthing\WhiteMountain\General\New Employee New User Printout Template.xlsm"
|
||||
}
|
||||
else if RMSearchTerm = ram%A_Space% ; RAM Calculator
|
||||
{
|
||||
CustomTool = RamMultiplier
|
||||
|
||||
gui_search_title = How many GB? > clipboard
|
||||
gui_search_icon = %A_ICODir%\Ram_Metro.ico
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
else if RMSearchTerm = quad%A_Space% ; Requests
|
||||
{
|
||||
gui_destroy()
|
||||
clipboard := "149.112.112.112"
|
||||
; run, "C:\Users\%A_username%\Syncthing\WhiteMountain\Requisitions\IT Requisitions wHistory.xlsm"
|
||||
|
||||
}
|
||||
|
||||
|
||||
else if RMSearchTerm = time%A_Space% ; Requests
|
||||
{
|
||||
CustomTool = AHKTimeMultiplier
|
||||
|
||||
gui_search_title = How much time? #M or #H > clipboard
|
||||
; gui_search_icon = %A_ICODir%\Ram_Metro.ico
|
||||
GuiSearch("REPLACEME") ; REPLACEME text will be replaced with the text input
|
||||
StatExport(gui_search_title)
|
||||
}
|
||||
|
||||
else if RMSearchTerm = ramc%A_Space% ; Requests
|
||||
{
|
||||
gui_destroy()
|
||||
FileRead, RamChart, C:\Users\%A_Username%\Syncthing\Scripts\AutoHotKey\Utilities\AtomSearch\Lib\RAMChart.txt
|
||||
msgbox % RamChart
|
||||
; run, "C:\Users\%A_Username%\Syncthing\WhiteMountain\General\MbMegabyteToGBGigabyteConversionChart Ram Sizes.xlsx"
|
||||
}
|
||||
else if RMSearchTerm = ada%A_Space% ; Adapters
|
||||
{
|
||||
gui_destroy()
|
||||
run, "C:\Windows\System32\ncpa.cpl" ; Network Adapters
|
||||
}
|
||||
else if RMSearchTerm = disk%A_Space% ; Disk Management
|
||||
{
|
||||
gui_destroy()
|
||||
run, "diskmgmt.msc" ; Windows Disk management
|
||||
}
|
||||
else if RMSearchTerm = psdhcp%A_Space% ; Powershell - DHCP string Script
|
||||
{
|
||||
gui_destroy()
|
||||
run, C:\Users\%A_UserName%\Syncthing\Scripts\AutoHotKey\Utilities\DHCP_PS_StringGenerator.ahk
|
||||
}
|
||||
else if RMSearchTerm = ps%A_Space% ; OR RMSearchTerm = psprofile%A_Space% ; Powershell - DHCP string Script
|
||||
{
|
||||
gui_destroy()
|
||||
run, "%A_sublimeFilepath%" "C:\Users\%A_Username%\Syncthing\Configurations\WindowsPowerShell\Microsoft.PowerShell_profile.ps1"
|
||||
}
|
||||
|
||||
/*else if RMSearchTerm = power ; Power down the pc
|
||||
{
|
||||
gui_destroy()
|
||||
Shutdown, 8 ; power off command
|
||||
}
|
||||
|
||||
*/
|
||||
else if RMSearchTerm = ping ; Ping Google
|
||||
{
|
||||
gui_destroy()
|
||||
Run, cmd /K "ping www.google.com"
|
||||
Run, cmd /K "ping 8.8.8.8"
|
||||
}
|
||||
else if RMSearchTerm = hosts ; Open hosts file in Notepad
|
||||
{
|
||||
gui_destroy()
|
||||
Run notepad.exe C:\Windows\System32\drivers\etc\hosts
|
||||
}
|
||||
else if RMSearchTerm = date ; What is the date?
|
||||
{
|
||||
gui_destroy()
|
||||
FormatTime, date,, LongDate
|
||||
MsgBox %date%
|
||||
date =
|
||||
}
|
||||
else if RMSearchTerm = week ; Which week is it?
|
||||
{
|
||||
gui_destroy()
|
||||
FormatTime, weeknumber,, YWeek
|
||||
StringTrimLeft, weeknumbertrimmed, weeknumber, 4
|
||||
if (weeknumbertrimmed = 53)
|
||||
weeknumbertrimmed := 1
|
||||
MsgBox It is currently week %weeknumbertrimmed%
|
||||
weeknumber =
|
||||
weeknumbertrimmed =
|
||||
}
|
||||
else if RMSearchTerm = ?%A_Space% ; Tooltip with list of commands
|
||||
{
|
||||
GuiControl,, RMSearchTerm, ; Clear the input box
|
||||
gui_destroy()
|
||||
Gosub, gui_commandlibrary
|
||||
}
|
||||
else if RMSearchTerm = a?%A_Space% ; Tooltip with list of commands
|
||||
{
|
||||
GuiControl,, RMSearchTerm, ; Clear the input box
|
||||
gui_destroy()
|
||||
Gosub, gui_commandlibrary
|
||||
}
|
||||
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user