Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MCK 142 Pro AutoHotKey Script
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; PF1
<^!+F1::
Run, wt
return
; PF2
<^!+F2::
Run, outlook
Run, "C:\Users\Ryan Lewis\AppData\Local\Microsoft\Teams\Update.exe" --processStart "Teams.exe"
Run, "C:\Users\Ryan Lewis\AppData\Local\slack\slack.exe"
Run, "C:\Users\Ryan Lewis\AppData\Local\Discord\Update.exe" --processStart Discord.exe
return
; PF3
<^!+F3::
WinHTTP := ComObjCreate("WinHTTP.WinHttpRequest.5.1")
WinHTTP.Open("GET", "https://wttr.in/12345?nFATQ")
WinHttp.Send()
response := WinHTTP.ResponseText
Gui, New,, Weather Report
Gui, Color, 0a0a0a
Gui, Font, s14 cWhite, Cascadia Mono
Gui, Add, Text,, % response
Gui, Show
return
; PF4
<^!+F4::
MsgBox, You pressed PF4.
return
; PF5
<^!+F5::
MsgBox, You pressed PF5.
return
; PF6
<^!+F6::
MsgBox, You pressed PF6.
return
; PF7
<^!+F7::
MsgBox, You pressed PF7.
return
; PF8
<^!+F8::
MsgBox, You pressed PF8.
return
; PF9
<^!+F9::
MsgBox, You pressed PF9.
return
; PF10
<^!+F10::
MsgBox, You pressed PF10.
return
; PF11
<^!+F11::
MsgBox, You pressed PF11.
return
; PF12
<^!+F12::
MsgBox, You pressed PF12.
return
; PF13
>^!+F1::
MsgBox, You pressed PF13.
return
; PF14
>^!+F2::
MsgBox, You pressed PF14.
return
; PF15
>^!+F3::
MsgBox, You pressed PF15.
return
; PF16
>^!+F4::
MsgBox, You pressed PF16.
return
; PF17
>^!+F5::
MsgBox, You pressed PF17.
return
; PF18
>^!+F6::
MsgBox, You pressed PF18.
return
; PF19
>^!+F7::
MsgBox, You pressed PF19.
return
; PF20
>^!+F8::
MsgBox, You pressed PF20.
return
; PF21
>^!+F9::
MsgBox, You pressed PF21.
return
; PF22
>^!+F10::
MsgBox, You pressed PF22.
return
; PF23
>^!+F11::
MsgBox, You pressed PF23.
return
; PF24
>^!+F12::
MsgBox, You pressed PF24.
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment