Compare commits

..

10 Commits

10 changed files with 216 additions and 610 deletions

View File

@ -24,7 +24,7 @@ A_ICODir = %A_scriptDir%\Graphics
; Read User Settings from .ini file
; IniRead, SaveUsageStats, %A_scriptdir%\Lib\Settings.ini, AtomSearch, SaveUsageStats
SaveUsageStats=1
SaveUsageStats=0
ScreenWidth := A_ScreenWidth
ScreenDPI := A_ScreenDPI
@ -101,7 +101,7 @@ Gui, Add, Text,center x145 y10 vgui_main_title w%Guiwidth% vGUITitle +Center, %S
; 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, Edit, x145 y80 w%Guiwidth% %cForeground% -E0x200 +Center vAtomSearchTerm gFindus
;Gui, Add, Picture, x+1 w45 h45,RMSearch_R.ico
Gui, Show,y25, %Script_Name%
@ -117,7 +117,7 @@ return
;------------------------------------------------
; Automatically triggered on Escape key:
GuiEscape:
RMSearchTerm :=
AtomSearchTerm :=
CustomTool :=
gui_destroy()
return
@ -126,11 +126,11 @@ return
Findus:
Gui, Submit, NoHide
; Msgbox % "RMSearchTerm: " RMSearchTerm
; Msgbox % "AtomSearchTerm: " AtomSearchTerm
; msgbox, herere
if RMSearchTerm = nothinghere%A_Space% ; Search Amazon
if AtomSearchTerm = nothinghere%A_Space% ; Search Amazon
{
; do nothing for this one so the #includes can be organized in whichever order the user wants
}
@ -187,8 +187,8 @@ 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
; GuiControl,, AtomSearchTerm,
GuiControl, Disable, AtomSearchTerm
; Gui, Show, AutoSize
@ -304,12 +304,12 @@ 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)
; search for the string If AtomSearchTerm =, 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, AtomSearchTerm
IfInString, A_LoopReadLine, =
{
StringGetPos, setpos, A_LoopReadLine,=

21
LICENSE.txt Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 Asger Juul Brunshøj
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,12 +0,0 @@
20230818_103450 - Brave - WLATITUDE16
20230818_103458 - DuckDuckGo - WLATITUDE16
20230818_103502 - Sublime - WLATITUDE16
20230818_103916 - Brave - WLATITUDE16
20230818_103919 - Google - WLATITUDE16
20230818_103944 - Brave - WLATITUDE16
20230818_103948 - DuckDuckGo - WLATITUDE16
20230818_103951 - Google Images - WLATITUDE16
20230818_104055 - Brave - WLATITUDE16
20230818_104059 - DuckDuckGo - WLATITUDE16
20230818_104103 - Google - WLATITUDE16

View File

@ -8,7 +8,7 @@
; Search Engines
;------------------------------------------------
if RMSearchTerm = az%A_Space% ; Search Amazon
if AtomSearchTerm = az%A_Space% ; Search Amazon
{
gui_search_title = Amazon
gui_search_icon = %A_ICODir%\Amazon.png
@ -16,7 +16,7 @@ if RMSearchTerm = az%A_Space% ; Search Amazon
StatExport(gui_search_title)
}
if RMSearchTerm = ahk%A_Space% ; Search autohotkey Userboards
if AtomSearchTerm = ahk%A_Space% ; Search autohotkey Userboards
{
gui_search_title = AutoHotKey Userboards
gui_search_icon = %A_ICODir%\AutoHotKey7.png
@ -24,7 +24,7 @@ if RMSearchTerm = ahk%A_Space% ; Search autohotkey Userboards
StatExport(gui_search_title)
}
if RMSearchTerm = dic%A_Space% ; Search Dictionary
if AtomSearchTerm = dic%A_Space% ; Search Dictionary
{
gui_search_title = Dictionary.com
gui_search_icon = %A_ICODir%\Dictionary.png
@ -33,7 +33,7 @@ if RMSearchTerm = dic%A_Space% ; Search Dictionary
}
if RMSearchTerm = d%A_Space% ; Search Brave
if AtomSearchTerm = d%A_Space% ; Search Brave
{
gui_search_title = Brave
gui_search_icon = %A_ICODir%\Jono_Brave.png
@ -43,7 +43,7 @@ if RMSearchTerm = d%A_Space% ; Search Brave
}
if RMSearchTerm = b%A_Space% ; Search Duckduckgo
if AtomSearchTerm = b%A_Space% ; Search Duckduckgo
{
gui_search_title = DuckDuckGo
gui_search_icon = %A_ICODir%\duckduckgo_bg_1.png
@ -51,7 +51,7 @@ if RMSearchTerm = b%A_Space% ; Search Duckduckgo
StatExport(gui_search_title)
}
if RMSearchTerm = gp%A_Space% ; Google Play
if AtomSearchTerm = gp%A_Space% ; Google Play
{
gui_search_title = Google Play Store
gui_search_icon = %A_ICODir%\PlayStore.png
@ -61,7 +61,7 @@ if RMSearchTerm = gp%A_Space% ; Google Play
}
if RMSearchTerm = gm%A_Space% ; Google Maps
if AtomSearchTerm = gm%A_Space% ; Google Maps
{
gui_search_title = Google Maps
gui_search_icon = %A_ICODir%\GoogleMaps.png
@ -70,7 +70,7 @@ if RMSearchTerm = gm%A_Space% ; Google Maps
}
if RMSearchTerm = r%A_Space% ; Search reddit
if AtomSearchTerm = r%A_Space% ; Search reddit
{
gui_search_title = reddit
gui_search_icon = %A_ICODir%\reddit.png
@ -79,7 +79,7 @@ if RMSearchTerm = r%A_Space% ; Search reddit
}
if RMSearchTerm = sa%A_Space% ; Search reddit SysAdmin
if AtomSearchTerm = sa%A_Space% ; Search reddit SysAdmin
{
gui_search_title = /r/sysAdmin
gui_search_icon = %A_ICODir%\Reddit_Boost.png
@ -88,7 +88,7 @@ if RMSearchTerm = sa%A_Space% ; Search reddit SysAdmin
}
if RMSearchTerm = w%A_Space% ; Search Wikipedia
if AtomSearchTerm = w%A_Space% ; Search Wikipedia
{
gui_search_title = White Mountain Paper Wiki
; gui_search_icon = %A_ICODir%\wikipedia.png
@ -97,7 +97,7 @@ if RMSearchTerm = w%A_Space% ; Search Wikipedia
}
if RMSearchTerm = imdb%A_Space% ; Search IDMB
if AtomSearchTerm = imdb%A_Space% ; Search IDMB
{
gui_search_title = IMDB
gui_search_icon = %A_ICODir%\imdb.png
@ -106,7 +106,7 @@ if RMSearchTerm = imdb%A_Space% ; Search IDMB
}
if RMSearchTerm = ff%A_Space% ; Search Firefox Addons
if AtomSearchTerm = ff%A_Space% ; Search Firefox Addons
{
gui_search_title = Firefox Addons
gui_search_icon = %A_ICODir%\firefox9.png
@ -115,7 +115,7 @@ if RMSearchTerm = ff%A_Space% ; Search Firefox Addons
}
if RMSearchTerm = cc%A_Space% ; Search Chrome Addons
if AtomSearchTerm = cc%A_Space% ; Search Chrome Addons
{
gui_search_title = Chrome Addons
gui_search_icon = %A_ICODir%\
@ -123,7 +123,7 @@ if RMSearchTerm = cc%A_Space% ; Search Chrome Addons
StatExport(gui_search_title)
}
if RMSearchTerm = z%A_Space% ; Search Zoogle
if AtomSearchTerm = z%A_Space% ; Search Zoogle
{
gui_search_title = Zoogle
gui_search_icon = %A_ICODir%\Zoogle.png
@ -132,7 +132,7 @@ if RMSearchTerm = z%A_Space% ; Search Zoogle
}
if RMSearchTerm = td%A_Space% ; Search TasteDive
if AtomSearchTerm = td%A_Space% ; Search TasteDive
{
gui_search_title = TasteDive
gui_search_icon = %A_ICODir%\TasteDive.png
@ -141,7 +141,7 @@ if RMSearchTerm = td%A_Space% ; Search TasteDive
}
if RMSearchTerm = ia%A_Space% ; Search IconArchive
if AtomSearchTerm = ia%A_Space% ; Search IconArchive
{
gui_search_title = IconArchive
gui_search_icon = %A_ICODir%\Jono_IconArchive.png
@ -149,7 +149,7 @@ if RMSearchTerm = ia%A_Space% ; Search IconArchive
StatExport(gui_search_title)
}
if RMSearchTerm = ii%A_Space% ; Icon-Icons
if AtomSearchTerm = ii%A_Space% ; Icon-Icons
{
gui_search_title = icon-icons.com
gui_search_icon = %A_ICODir%\iconicon.png
@ -157,7 +157,7 @@ if RMSearchTerm = ii%A_Space% ; Icon-Icons
StatExport(gui_search_title)
}
if RMSearchTerm = e%A_Space% ; Search Ebay
if AtomSearchTerm = e%A_Space% ; Search Ebay
{
gui_search_title = Ebay
gui_search_icon = %A_ICODir%\apps_ebay.pngea
@ -165,7 +165,7 @@ if RMSearchTerm = e%A_Space% ; Search Ebay
StatExport(gui_search_title)
}
if RMSearchTerm = choco%A_Space% ; Search Chocolatey
if AtomSearchTerm = choco%A_Space% ; Search Chocolatey
{
gui_search_title = Chocolatey
gui_search_icon = %A_ICODir%\chocolatey.png
@ -175,7 +175,7 @@ if RMSearchTerm = choco%A_Space% ; Search Chocolatey
}
if RMSearchTerm = pip%A_Space% ; Search pypi
if AtomSearchTerm = pip%A_Space% ; Search pypi
{
gui_search_title = pypi
gui_search_icon = %A_ICODir%\
@ -184,7 +184,7 @@ if RMSearchTerm = pip%A_Space% ; Search pypi
}
if RMSearchTerm = sp%A_Space% ; Startpage
if AtomSearchTerm = sp%A_Space% ; Startpage
{
gui_search_title = Startpage
gui_search_icon = %A_ICODir%\startpage.png
@ -193,7 +193,7 @@ if RMSearchTerm = sp%A_Space% ; Startpage
}
if RMSearchTerm = g%A_Space% ; Google
if AtomSearchTerm = g%A_Space% ; Google
{
gui_search_title = Google
gui_search_icon = %A_ICODir%\Google.png
@ -201,7 +201,7 @@ if RMSearchTerm = g%A_Space% ; Google
StatExport(gui_search_title)
}
if RMSearchTerm = gi%A_Space% ; Google Images
if AtomSearchTerm = gi%A_Space% ; Google Images
{
gui_search_title = Google Images
gui_search_icon = %A_ICODir%\GoogleImages.png
@ -209,7 +209,7 @@ if RMSearchTerm = gi%A_Space% ; Google Images
StatExport(gui_search_title)
}
if RMSearchTerm = di%A_Space% ; Search DuckDuckGo Images
if AtomSearchTerm = di%A_Space% ; Search DuckDuckGo Images
{
gui_search_title = DuckDuckGo Images
gui_search_icon = %A_ICODir%\DuckDuckGo.png
@ -218,7 +218,7 @@ if RMSearchTerm = di%A_Space% ; Search DuckDuckGo Images
}
if RMSearchTerm = a%A_Space% ; Search Google for AutoHotkey related results
if AtomSearchTerm = a%A_Space% ; Search Google for AutoHotkey related results
{
gui_search_title = Autohotkey Google Search
gui_search_icon = %A_ICODir%\imageeeewithpng
@ -226,7 +226,7 @@ if RMSearchTerm = a%A_Space% ; Search Google for AutoHotkey related results
StatExport(gui_search_title)
}
else if RMSearchTerm = gl%A_Space% ; Search Google with ImFeelingLucky
else if AtomSearchTerm = gl%A_Space% ; Search Google with ImFeelingLucky
{
gui_search_title = I'm Feeling Lucky
gui_search_icon = %A_ICODir%\imageeeewithpng
@ -235,7 +235,7 @@ else if RMSearchTerm = gl%A_Space% ; Search Google with ImFeelingLucky
}
else if RMSearchTerm = multi%A_Space% ; Open more than one search
else if AtomSearchTerm = multi%A_Space% ; Open more than one search
{
gui_search_title = Google/Bing/DDG/Startpage
@ -247,7 +247,7 @@ else if RMSearchTerm = multi%A_Space% ; Open more than one search
}
else if RMSearchTerm = ci%A_Space% ; Search Google as Incognito
else if AtomSearchTerm = ci%A_Space% ; Search Google as Incognito
{
gui_search_title = Google - Chrome Incognito
gui_search_icon = %A_ICODir%\Incognito.png
@ -256,7 +256,7 @@ else if RMSearchTerm = ci%A_Space% ; Search Google as Incognito
}
else if RMSearchTerm = y%A_Space% ; Search Youtube
else if AtomSearchTerm = y%A_Space% ; Search Youtube
{
gui_search_title = Youtube
gui_search_icon = %A_ICODir%\Youtube_Jono.png
@ -265,7 +265,7 @@ else if RMSearchTerm = y%A_Space% ; Search Youtube
}
else if RMSearchTerm = gt%A_Space% ; Google Translate English to Russian
else if AtomSearchTerm = gt%A_Space% ; Google Translate English to Russian
{
gui_search_title = Google Translate
gui_search_icon =
@ -276,14 +276,14 @@ else if RMSearchTerm = gt%A_Space% ; Google Translate English to Russian
}
else if RMSearchTerm = / ; Go to subreddit
else if AtomSearchTerm = / ; Go to subreddit
{
gui_search_title := "/r/"
gui_search_icon =
GuiSearch("https://www.reddit.com/r/REPLACEME")
}
else if RMSearchTerm = red ; reddit.com
else if AtomSearchTerm = red ; reddit.com
{
gui_destroy()
run www.reddit.com

View File

@ -1,72 +1,72 @@
; Folder Shortcuts
;------------------------------------------------
if RMSearchTerm = dd%A_Space% ; downloads
if AtomSearchTerm = dd%A_Space% ; downloads
{
gui_destroy()
run, C:\Users\%A_Username%\Downloads
}
else if RMSearchTerm = dl%A_Space% ; downloads
else if AtomSearchTerm = dl%A_Space% ; downloads
{
gui_destroy()
run, C:\Users\%A_Username%\Downloads
}
else if RMSearchTerm = gg%A_Space% ; Git
else if AtomSearchTerm = gg%A_Space% ; Git
{
gui_destroy()
run, C:\Users\%A_username%\Syncthing\Git
}
else if RMSearchTerm = dc%A_Space% ; DCIM
else if AtomSearchTerm = dc%A_Space% ; DCIM
{
gui_destroy()
run, C:\Users\%A_Username%\Pictures
}
else if RMSearchTerm = pic%A_Space% ;
else if AtomSearchTerm = pic%A_Space% ;
{
gui_destroy()
run, C:\Users\%A_Username%\Pictures
}
else if RMSearchTerm = mus%A_Space% ;
else if AtomSearchTerm = mus%A_Space% ;
{
gui_destroy()
run, C:\Users\%A_Username%\Music
}
else if RMSearchTerm = vids%A_Space% ;
else if AtomSearchTerm = vids%A_Space% ;
{
gui_destroy()
run, C:\Users\%A_Username%\Videos
}
else if RMSearchTerm = doc%A_Space% ;
else if AtomSearchTerm = doc%A_Space% ;
{
gui_destroy()
run, C:\Users\%A_Username%\Documents
}
else if RMSearchTerm = desk%A_Space% ;
else if AtomSearchTerm = desk%A_Space% ;
{
gui_destroy()
run, C:\Users\%A_Username%\Desktop
}
else if RMSearchTerm = ss%A_Space% ; Screenshots
else if AtomSearchTerm = ss%A_Space% ; Screenshots
{
gui_destroy()
run, C:\Users\%A_Username%\Pictures\Screenshots
}
else if RMSearchTerm = startup%A_Space% ; startup
else if AtomSearchTerm = 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
else if AtomSearchTerm = rb%A_Space% ; Recycle Bin
{
gui_destroy()
Run ::{645FF040-5081-101B-9F08-00AA002F954E}

View File

@ -2,17 +2,17 @@
; Interact with THIS AHK Script
;------------------------------------------------
else if RMSearchTerm = rl%A_Space% ; Reload This script
else if AtomSearchTerm = rl%A_Space% ; Reload This script
{
gui_destroy()
Reload
}
else if RMSearchTerm = dir%A_Space% ; Open the directory for this script
else if AtomSearchTerm = dir%A_Space% ; Open the directory for this script
{
gui_destroy()
Run, %A_ScriptDir%
}
else if RMSearchTerm = edit%A_Space% ; Edit host script
else if AtomSearchTerm = edit%A_Space% ; Edit host script
{
gui_destroy()
run, "C:\Windows\notepad.exe" "%A_ScriptFullPath%"
@ -22,14 +22,14 @@ else if RMSearchTerm = edit%A_Space% ; Edit host script
; Type Raw Text
;------------------------------------------------
else if RMSearchTerm = raw%A_Space% ; Paste clipboard content without formatting
else if AtomSearchTerm = raw%A_Space% ; Paste clipboard content without formatting
{
gui_destroy()
SendRaw, %ClipBoard%
}
else if RMSearchTerm = ram%A_Space% ; RAM Calculator
else if AtomSearchTerm = ram%A_Space% ; RAM Calculator
{
CustomTool = RamMultiplier
@ -39,7 +39,7 @@ else if RMSearchTerm = ram%A_Space% ; RAM Calculator
StatExport(gui_search_title)
}
else if RMSearchTerm = time%A_Space% ; Requests
else if AtomSearchTerm = time%A_Space% ; Requests
{
CustomTool = AHKTimeMultiplier
@ -49,31 +49,31 @@ else if RMSearchTerm = time%A_Space% ; Requests
StatExport(gui_search_title)
}
else if RMSearchTerm = ada%A_Space% ; Adapters
else if AtomSearchTerm = ada%A_Space% ; Adapters
{
gui_destroy()
run, "C:\Windows\System32\ncpa.cpl" ; Network Adapters
}
else if RMSearchTerm = disk%A_Space% ; Disk Management
else if AtomSearchTerm = disk%A_Space% ; Disk Management
{
gui_destroy()
run, "diskmgmt.msc" ; Windows Disk management
}
else if RMSearchTerm = power ; Power down the pc
else if AtomSearchTerm = power ; Power down the pc
{
gui_destroy()
Shutdown, 8 ; power off command
}
else if RMSearchTerm = date ; What is the date?
else if AtomSearchTerm = date ; What is the date?
{
gui_destroy()
FormatTime, date,, LongDate
MsgBox %date%
date =
}
else if RMSearchTerm = week ; Which week is it?
else if AtomSearchTerm = week ; Which week is it?
{
gui_destroy()
FormatTime, weeknumber,, YWeek
@ -84,15 +84,15 @@ else if RMSearchTerm = week ; Which week is it?
weeknumber =
weeknumbertrimmed =
}
else if RMSearchTerm = ?%A_Space% ; Tooltip with list of commands
else if AtomSearchTerm = ?%A_Space% ; Tooltip with list of commands
{
GuiControl,, RMSearchTerm, ; Clear the input box
GuiControl,, AtomSearchTerm, ; Clear the input box
gui_destroy()
Gosub, gui_commandlibrary
}
else if RMSearchTerm = a?%A_Space% ; Tooltip with list of commands
else if AtomSearchTerm = a?%A_Space% ; Tooltip with list of commands
{
GuiControl,, RMSearchTerm, ; Clear the input box
GuiControl,, AtomSearchTerm, ; Clear the input box
gui_destroy()
Gosub, gui_commandlibrary
}

View File

@ -2,7 +2,7 @@
;------------------------------------------------
; first item has to be a "if" and all items below it are "else if"
else if RMSearchTerm = S%A_Space%
else if AtomSearchTerm = S%A_Space%
{
CustomTool = Sublime
@ -12,7 +12,7 @@ else if RMSearchTerm = S%A_Space%
StatExport(gui_search_title)
return
}
else if RMSearchTerm = gimp%A_Space%
else if AtomSearchTerm = gimp%A_Space%
{
CustomTool = GIMP
@ -24,7 +24,7 @@ else if RMSearchTerm = gimp%A_Space%
}
else if RMSearchTerm = dn%A_Space% ; Open up a joplin note using an eternal URL
else if AtomSearchTerm = dn%A_Space% ; Open up a joplin note using an eternal URL
{
gui_destroy()
@ -32,7 +32,7 @@ else if RMSearchTerm = dn%A_Space% ; Open up a joplin note using an eternal URL
}
else if RMSearchTerm = cmd%A_Space% ; Run CMD
else if AtomSearchTerm = cmd%A_Space% ; Run CMD
{
gui_destroy()
;run, %comspec% /k "C:\Users\me\Downloads\_Old Files"

View File

@ -8,7 +8,7 @@
; Search Engines
;------------------------------------------------
if RMSearchTerm = az%A_Space% ; Search Amazon
if AtomSearchTerm = az%A_Space% ; Search Amazon
{
gui_search_title = Amazon
gui_search_icon = %A_ICODir%\Amazon.png
@ -16,7 +16,7 @@ if RMSearchTerm = az%A_Space% ; Search Amazon
StatExport(gui_search_title)
}
if RMSearchTerm = ahk%A_Space% ; Search autohotkey Userboards
if AtomSearchTerm = ahk%A_Space% ; Search autohotkey Userboards
{
gui_search_title = AutoHotKey Userboards
gui_search_icon = %A_ICODir%\AutoHotKey7.png
@ -24,7 +24,7 @@ if RMSearchTerm = ahk%A_Space% ; Search autohotkey Userboards
StatExport(gui_search_title)
}
if RMSearchTerm = dic%A_Space% ; Search Dictionary
if AtomSearchTerm = dic%A_Space% ; Search Dictionary
{
gui_search_title = Dictionary.com
gui_search_icon = %A_ICODir%\Dictionary.png
@ -33,7 +33,7 @@ if RMSearchTerm = dic%A_Space% ; Search Dictionary
}
if RMSearchTerm = d%A_Space% ; Search Brave
if AtomSearchTerm = d%A_Space% ; Search Brave
{
gui_search_title = Brave
gui_search_icon = %A_ICODir%\Brave.png
@ -43,7 +43,7 @@ if RMSearchTerm = d%A_Space% ; Search Brave
}
if RMSearchTerm = b%A_Space% ; Search Duckduckgo
if AtomSearchTerm = b%A_Space% ; Search Duckduckgo
{
gui_search_title = DuckDuckGo
gui_search_icon = %A_ICODir%\duckduckgo.png
@ -51,7 +51,7 @@ if RMSearchTerm = b%A_Space% ; Search Duckduckgo
StatExport(gui_search_title)
}
if RMSearchTerm = gp%A_Space% ; Google Play
if AtomSearchTerm = gp%A_Space% ; Google Play
{
gui_search_title = Google Play Store
gui_search_icon = %A_ICODir%\PlayStore.png
@ -61,7 +61,7 @@ if RMSearchTerm = gp%A_Space% ; Google Play
}
if RMSearchTerm = gm%A_Space% ; Google Maps
if AtomSearchTerm = gm%A_Space% ; Google Maps
{
gui_search_title = Google Maps
gui_search_icon = %A_ICODir%\GoogleMaps.png
@ -70,7 +70,7 @@ if RMSearchTerm = gm%A_Space% ; Google Maps
}
if RMSearchTerm = r%A_Space% ; Search reddit
if AtomSearchTerm = r%A_Space% ; Search reddit
{
gui_search_title = reddit
gui_search_icon = %A_ICODir%\reddit.png
@ -79,7 +79,7 @@ if RMSearchTerm = r%A_Space% ; Search reddit
}
if RMSearchTerm = sa%A_Space% ; Search reddit SysAdmin
if AtomSearchTerm = sa%A_Space% ; Search reddit SysAdmin
{
gui_search_title = /r/sysAdmin
gui_search_icon = %A_ICODir%\Reddit_Boost.png
@ -88,7 +88,7 @@ if RMSearchTerm = sa%A_Space% ; Search reddit SysAdmin
}
if RMSearchTerm = w%A_Space% ; Search Wikipedia
if AtomSearchTerm = w%A_Space% ; Search Wikipedia
{
gui_search_title = White Mountain Paper Wiki
; gui_search_icon = %A_ICODir%\wikipedia.png
@ -97,7 +97,7 @@ if RMSearchTerm = w%A_Space% ; Search Wikipedia
}
if RMSearchTerm = imdb%A_Space% ; Search IDMB
if AtomSearchTerm = imdb%A_Space% ; Search IDMB
{
gui_search_title = IMDB
gui_search_icon = %A_ICODir%\imdb.png
@ -106,7 +106,7 @@ if RMSearchTerm = imdb%A_Space% ; Search IDMB
}
if RMSearchTerm = ff%A_Space% ; Search Firefox Addons
if AtomSearchTerm = ff%A_Space% ; Search Firefox Addons
{
gui_search_title = Firefox Addons
gui_search_icon = %A_ICODir%\firefox9.png
@ -115,7 +115,7 @@ if RMSearchTerm = ff%A_Space% ; Search Firefox Addons
}
if RMSearchTerm = cc%A_Space% ; Search Chrome Addons
if AtomSearchTerm = cc%A_Space% ; Search Chrome Addons
{
gui_search_title = Chrome Addons
gui_search_icon = %A_ICODir%\
@ -123,7 +123,7 @@ if RMSearchTerm = cc%A_Space% ; Search Chrome Addons
StatExport(gui_search_title)
}
if RMSearchTerm = z%A_Space% ; Search Zoogle
if AtomSearchTerm = z%A_Space% ; Search Zoogle
{
gui_search_title = Zoogle
gui_search_icon = %A_ICODir%\Zoogle.png
@ -132,7 +132,7 @@ if RMSearchTerm = z%A_Space% ; Search Zoogle
}
if RMSearchTerm = td%A_Space% ; Search TasteDive
if AtomSearchTerm = td%A_Space% ; Search TasteDive
{
gui_search_title = TasteDive
gui_search_icon = %A_ICODir%\TasteDive.png
@ -141,7 +141,7 @@ if RMSearchTerm = td%A_Space% ; Search TasteDive
}
if RMSearchTerm = ia%A_Space% ; Search IconArchive
if AtomSearchTerm = ia%A_Space% ; Search IconArchive
{
gui_search_title = IconArchive
gui_search_icon = %A_ICODir%\Jono_IconArchive.png
@ -149,7 +149,7 @@ if RMSearchTerm = ia%A_Space% ; Search IconArchive
StatExport(gui_search_title)
}
if RMSearchTerm = ii%A_Space% ; Icon-Icons
if AtomSearchTerm = ii%A_Space% ; Icon-Icons
{
gui_search_title = icon-icons.com
gui_search_icon = %A_ICODir%\iconicon.png
@ -157,7 +157,7 @@ if RMSearchTerm = ii%A_Space% ; Icon-Icons
StatExport(gui_search_title)
}
if RMSearchTerm = e%A_Space% ; Search Ebay
if AtomSearchTerm = e%A_Space% ; Search Ebay
{
gui_search_title = Ebay
gui_search_icon = %A_ICODir%\apps_ebay.pngea
@ -165,7 +165,7 @@ if RMSearchTerm = e%A_Space% ; Search Ebay
StatExport(gui_search_title)
}
if RMSearchTerm = choco%A_Space% ; Search Chocolatey
if AtomSearchTerm = choco%A_Space% ; Search Chocolatey
{
gui_search_title = Chocolatey
gui_search_icon = %A_ICODir%\chocolatey.png
@ -175,7 +175,7 @@ if RMSearchTerm = choco%A_Space% ; Search Chocolatey
}
if RMSearchTerm = pip%A_Space% ; Search pypi
if AtomSearchTerm = pip%A_Space% ; Search pypi
{
gui_search_title = pypi
gui_search_icon = %A_ICODir%\
@ -184,7 +184,7 @@ if RMSearchTerm = pip%A_Space% ; Search pypi
}
if RMSearchTerm = sp%A_Space% ; Startpage
if AtomSearchTerm = sp%A_Space% ; Startpage
{
gui_search_title = Startpage
gui_search_icon = %A_ICODir%\startpage.png
@ -193,7 +193,7 @@ if RMSearchTerm = sp%A_Space% ; Startpage
}
if RMSearchTerm = g%A_Space% ; Google
if AtomSearchTerm = g%A_Space% ; Google
{
gui_search_title = Google
gui_search_icon = %A_ICODir%\Google.png
@ -201,7 +201,7 @@ if RMSearchTerm = g%A_Space% ; Google
StatExport(gui_search_title)
}
if RMSearchTerm = gi%A_Space% ; Google Images
if AtomSearchTerm = gi%A_Space% ; Google Images
{
gui_search_title = Google Images
gui_search_icon = %A_ICODir%\GoogleImages.png
@ -209,7 +209,7 @@ if RMSearchTerm = gi%A_Space% ; Google Images
StatExport(gui_search_title)
}
if RMSearchTerm = di%A_Space% ; Search DuckDuckGo Images
if AtomSearchTerm = di%A_Space% ; Search DuckDuckGo Images
{
gui_search_title = DuckDuckGo Images
gui_search_icon = %A_ICODir%\DuckDuckGo.png
@ -218,7 +218,7 @@ if RMSearchTerm = di%A_Space% ; Search DuckDuckGo Images
}
if RMSearchTerm = a%A_Space% ; Search Google for AutoHotkey related results
if AtomSearchTerm = a%A_Space% ; Search Google for AutoHotkey related results
{
gui_search_title = Autohotkey Google Search
gui_search_icon = %A_ICODir%\imageeeewithpng
@ -226,7 +226,7 @@ if RMSearchTerm = a%A_Space% ; Search Google for AutoHotkey related results
StatExport(gui_search_title)
}
else if RMSearchTerm = gl%A_Space% ; Search Google with ImFeelingLucky
else if AtomSearchTerm = gl%A_Space% ; Search Google with ImFeelingLucky
{
gui_search_title = I'm Feeling Lucky
gui_search_icon = %A_ICODir%\imageeeewithpng
@ -235,7 +235,7 @@ else if RMSearchTerm = gl%A_Space% ; Search Google with ImFeelingLucky
}
else if RMSearchTerm = multi%A_Space% ; Open more than one search
else if AtomSearchTerm = multi%A_Space% ; Open more than one search
{
gui_search_title = Google/Bing/DDG/Startpage
@ -247,7 +247,7 @@ else if RMSearchTerm = multi%A_Space% ; Open more than one search
}
else if RMSearchTerm = ci%A_Space% ; Search Google as Incognito
else if AtomSearchTerm = ci%A_Space% ; Search Google as Incognito
{
gui_search_title = Google - Chrome Incognito
gui_search_icon = %A_ICODir%\Incognito.png
@ -256,7 +256,7 @@ else if RMSearchTerm = ci%A_Space% ; Search Google as Incognito
}
else if RMSearchTerm = y%A_Space% ; Search Youtube
else if AtomSearchTerm = y%A_Space% ; Search Youtube
{
gui_search_title = Youtube
gui_search_icon = %A_ICODir%\Youtube_Jono.png
@ -265,7 +265,7 @@ else if RMSearchTerm = y%A_Space% ; Search Youtube
}
else if RMSearchTerm = gt%A_Space% ; Google Translate English to Russian
else if AtomSearchTerm = gt%A_Space% ; Google Translate English to Russian
{
gui_search_title = Google Translate
gui_search_icon =
@ -276,14 +276,14 @@ else if RMSearchTerm = gt%A_Space% ; Google Translate English to Russian
}
else if RMSearchTerm = / ; Go to subreddit
else if AtomSearchTerm = / ; Go to subreddit
{
gui_search_title := "/r/"
gui_search_icon =
GuiSearch("https://www.reddit.com/r/REPLACEME")
}
else if RMSearchTerm = red ; reddit.com
else if AtomSearchTerm = red ; reddit.com
{
gui_destroy()
run www.reddit.com

View File

@ -1,492 +0,0 @@
; 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

View File

@ -1,4 +1,7 @@
![](Graphics/Screenshot.gif "Screenshot of Main Window")
<p align="center">
<img width="800" src="https://git.zinchuk.xyz/yuriy/Atom-Launcher/raw/branch/main/Graphics/Screenshot.gif">
</p>
A hackable launcher for Windows, Written in Autohotkey v1
- Forked from: https://github.com/plul/Public-AutoHotKey-Scripts
@ -16,3 +19,89 @@ Activate the launcher with `Control + E` hotkey
# Settings
WIP
# Old Description:
### What it is
This is a small GUI that allows you to run any normal AutoHotkey command or block of code by typing a name for the command you want to run. I wrote this script because I was creating more and more hotkeys for various things, but I ran out of keys on my keyboard to assign hotkeys to. It is designed to be as minimal as possible.
![Screenshot](/img/ahk_launcher.png "Screenshot of the GUI")
### How to use it
Run the `Host.ahk` file.
This entire script is build around the `CapsLock` key.
The GUI is activated by `CapsLock`+`Space`.
Normal `CapsLock` functionality is preserved, and can be toggled by `Alt`+`CapsLock`.
When typing something in the GUI, whatever you type is matched up against the commands in `UserCommands.ahk`. These are normal AutoHotkey commands so you can and should write your own. I have supplied some sample commands to show some ideas. But it only becomes truly powerful once you customize it with commands to suit your specific needs.
##### Trying it out yourself
1. Make sure `Host.ahk` is running.
* Open the GUI with `CapsLock`+`Space`.
* Type `face` into the GUI to open facebook.com.
* Open the GUI again. Type `note` into the GUI to open Notepad.
* While in Notepad, type `@` into the GUI. It will write your e-mail address (but you need to go into `UserCommands.ahk` later to specify your own address).
* Try typing `down` into the GUI to open your Downloads folder or `rec` to open the Recycle Bin.
* You can search google by typing `g` followed by a space. A new input field should appear. Type your search query and press enter. Use `l ` if you are 'Feeling Lucky'.
* You can search Youtube with `y `, search Facebook with `f ` or the torrent networks with `t `.
* If you like Reddit, you can visit a specific subreddit by typing `/` into the GUI and then the name of the subreddit you have in mind.
* Try `week` or `date`. (I can never remember the week number so this is useful when on the phone with somebody who insists on comparing calendars going by week number).
* Type `ping` into the GUI to quickly ping www.google.com to see if your internet connection works.
There are some additional example commands included. Try typing simply `?`, and you should see a tooltip with all defined commands and a description of what they do. You may also explore all the sample commands in detail by looking in `UserCommands.ahk`. Now it is time for you to start filling in your own personalized commands.
My own personal `UserCommands.ahk` file is huge, but it is tailored to the things I do everyday and would not be much use for anybody else.
##### How to write your own commands
The variable `Pedersen` contains your text from the input field.
The first thing to do is often to hide the GUI and reset the input field. Do this by calling `gui_destroy()`.
After that, you can run any normal AHK block of code. If for example you have some program you use all the time, you can create a shortcut to that program by
else if Pedersen = prog
{
gui_destroy()
run "C:\Program Files\Company\That awesome program.exe"
}
That's it! now you can launch your favourite program by typing `prog` into the input field.
There is a function, `gui_search(url)`, defined in this script that you can call if you want to search some specific website. So for example if you translate from English to Korean using Google Translate all the time, and you want a shortcut for that, then the way to go about it is the following:
1. Go to Google Translate.
* Translate something. For example try translating `Winged turtle`.
* Google Translate tells you that a winged turtle would be 날개 달린 거북이 in Korean. But the URL is the interesting part. The URL is `https://translate.google.com/#en/ko/winged%20turtle`.
* Replace your query with the word `REPLACEME`. Like this: `https://translate.google.com/#en/ko/REPLACEME`.
* Then the code could be:
else if Pedersen = kor ; Translate English to Korean
{
gui_search_title = English to Korean
gui_search("https://translate.google.com/#en/ko/REPLACEME")
}
Now we can translate from English to Korean in a heartbeat.
### How it works
Disclaimer: Initially, this was not really written to be shared or used by others, so it is not properly documented and some of the variable names are not self-explanatory and some are in danish. I'm sorry about that. However if you don't go digging too deep, you should not get in trouble. The `UserCommands.ahk` file should be easy to edit.
Here are some quick tips about the script and how it works:
##### Function `gui_destroy()`
Hides and resets the GUI window.
##### Function `gui_search(url)`
`gui_search(url)` was made to search websites like Google and Reddit and so on. It will make a new text input field in the GUI where you can type your search query.
Then it will look at the supplied URL and find 'REPLACEME' and replace it
with your search query.
Example:
else if Pedersen = y%A_Space% ; Search Youtube
{
gui_search_title = Youtube
gui_search("https://www.youtube.com/results?search_query=REPLACEME")
}