Jump to content

User:Ke4roh/hotkeys.ahk

From Wikipedia, the free encyclopedia
#SingleInstance force

::t/::
Gosub,TypeTime
return

TypeTime:
FormatTime, timeStr, , H:mm
timeStr := timeStr . " "
SendInput %timeStr% 
return 

#l::
FormatTime, dateStr, , yyMMdd
logFile := A_MyDocuments . "\log" . dateStr . ".txt"
winTitle := logFile . " - Notepad++"
run,"C:\Program Files\Notepad++\notepad++.exe" "%logFile%",,,nppId
SetTitleMatchMode,2
WinWaitActive %winTitle%,,30
Send {PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}
Send {PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}
Send {End}
Gosub,TypeTime
return 

#t::
toDoFile := A_MyDocuments . "\todo.txt"
run,"C:\Program Files\Notepad++\notepad++.exe" "%toDoFile%",,,nppId
SetTitleMatchMode,2
WinWaitActive Notepad++,,30
Send {PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}
Send {PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}{PgDn}
return

#n::
Gosub,ActivateNPP
return

ActivateNPP:
Process,Exist,notepad++.exe
if ErrorLevel = 0
{
   run,"C:\Program Files\Notepad++\notepad++.exe",,,nppId
   WinWaitActive ahk_pid %nppId%,,30
}
else 
{
   WinActivate ahk_pid %ErrorLevel%
}
return

#s::
Run,"C:\Program Files\MWSnap\MWSnap.exe"
Return

::(R)::®
::(r)::®
::reg/::®
::(C)::©
::(c)::©
::copy/::©
::c/::¢
::1/2::½
::1/4::¼
::3/4::¾
::+-::±
::mu/::µ
::sec/::§
::deg/::°
::---::—
::...::…
::tm/::™
::y'day::yesterday
::AE::Æ
::ae::æ
::OE::Œ
::oe::œ

^8::•