forked from camerb/AHKs
-
Notifications
You must be signed in to change notification settings - Fork 38
/
FcnLib-Linux.iahk
40 lines (31 loc) · 891 Bytes
/
FcnLib-Linux.iahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
;These are functions that will only be used by the linux compy
;Some of these are adapted from the other fcnlibs
;Others here are solely for the purpose of making linux easier to deal with
GetPath(nickname)
{
if InStr(nickname, "iron-ahks-home-dir")
return "/home/user/Dropbox/IronAHK"
if InStr(nickname, "ahks-home-dir")
return "/home/user/Dropbox/AHKs"
}
CurrentTime(options="")
{
FormatTime, time,, yyyyMMddHHmmss
returned := time
if InStr(options, "hyphenated")
FormatTime, returned, %time%, yyyy-MM-dd_HH-mm-ss
return returned
}
ShowGuiBriefly()
{
Gui, Show
Sleep, 5000
ExitApp
}
AddToTrace(var, t1="", t2="", t3="", t4="", t5="", t6="", t7="", t8="", t9="", t10="", t11="", t12="", t13="", t14="", t15="")
{
Loop 15
var .= " " . t%A_Index%
var = %var%
FileAppend, %var%`n, /home/user/Dropbox/Public/logs/trace.txt
}