Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
223 lines (198 sloc) 8.47 KB
/* this file will be automatic precompiled before it is used by autohotkey 14.01.2019 12:09
*/
; recomandet for g_min_searchWord_length is: 1 or 2 maybe 0
; if u use 0 it maybe not work always at the moment (works if word match or if you have a fresh window change) (19-01-19_10-44)
; therfore its not recomandet to use 0
; please send your feedback to SL5net
; BTW its stored in regitry: RegRead, g_min_searchWord_length, HKEY_CURRENT_USER, SOFTWARE\sl5net\gi, g_min_searchWord_length
g_actionListDBfileAdress := A_ScriptDir "\actionListLearned.db"
g_actionListDBfileAdress := (InStr(A_ComputerName,"540P-SL5NET"))
? "G:\fre\private\sql\sqlite\actionList.db"
: A_ScriptDir "\actionListLearned.db"
g_min_searchWord_length := 0
; false or "" no extra info will showed below the listBoxGui (may you first need typing something to see it. 19-04-04_15-23)
; you could use this kind of commends: /* show: true, */
g_config.listBoxGui := {
tipps: {
show: true,
durationMilliseconds: 5500
},
"FileRead, ParseWords": { "show": false }
}
g_config.ScriptDir := A_ScriptDir
g_config.actionListDirBase := "..\actionLists" ; down from source upt to actionLists
; Hack: if onlyThisList is set and not false it will only this list used for everything. not recomandet! 19-04-04_22-59
g_config.actionList := {
tipps: {
durationMilliseconds: 3500
}
}
;/¯¯¯¯ debug ¯¯ 190410200413 ¯¯ 10.04.2019 20:04:13 ¯¯\
;/¯¯¯¯ debug ¯¯ 190410200413 ¯¯ 10.04.2019 20:04:13 ¯¯\
;/¯¯¯¯ debug ¯¯ 190410200413 ¯¯ 10.04.2019 20:04:13 ¯¯\
;/¯¯¯¯ debug ¯¯ 190410200413 ¯¯ 10.04.2019 20:04:13 ¯¯\
doUseNewMethodStartOfImplementing22march2019 := false
g_config.debug := {
active: true,
window: {
onChange: {
tooltip: true,
feedbackMsgBox: false,
infoBox: true,
color: "Teal"
}
},
actionList: {
onChange: {
tooltip: true,
feedbackMsgBox: true,
infoBox: true,
color: "Aqua"
}
},
"DB": {
"onLoad": {
delete:"false"
},
table: {
performance: {
onLoad: "empty",
INSERT_function_call_time2db: true
}
}
}
}
; debug
; g_config["debug"]["actionList"]["onChange"] := { infoBox: true, color: "Aqua" }
;g_config.debug.actionList.onChange := { infoBox: true, color: "Aqua" }
; g_config.debug.actionList.onChange["infoBox"] := true
; g_config.debug.actionList.onChange["color"] := "Aqua"
;\____ debug __ 190410200432 __ 10.04.2019 20:04:32 __/
;\____ debug __ 190410200432 __ 10.04.2019 20:04:32 __/
;\____ debug __ 190410200432 __ 10.04.2019 20:04:32 __/
; if g_config.infoBox[1] false or "" no extra info about actionListFileAddress is will showed. Thats may mor useful for gi-developer not user of it.
g_config.infoBox := {
1: {
showName: "",
backup: "¯|"
},
2: {
crosshair: "",
backup: "¯|"
}
}
g_config.ToolTip := {
1: false
}
; please use it like this: if( 1<RegExMatch(0 . A_ScriptName, g_ignReg["saveLogFiles"]["scriptName"]) || ......
; OR: the regEx .^ never match anything. if you use .^ i recomand using: if( RegExMatch(ln, g_ignReg["saveLogFiles"]["ln"]) || ......
; ignore all ==> means for e.g. no log then
g_ignReg := (InStr(A_ComputerName,"xxxxxxxxx SL5"))
? {
feedbackMsgBox: {tit:".^", text:".^"}
, saveLogFiles: {ln:".^", scriptName:"\b(Window|ListBox)\.ahk", text:"(WordIndex|CloseListBox|HotKeys|g_ListBox_Id)\b"}
, sqlQuery: {ln:".^", scriptName:".^", text:".^"}
, hotKeyStuff: {ln:".^", scriptName:".^", text:".^"}
, runLogFile: {ln:".^", scriptName:".^", text:".^"}
}
: {
feedbackMsgBox:{tit:".^", text:".^"}
, saveLogFiles: {ln:".", scriptName:".^", text:".^"}
, sqlQuery: {ln:".^", scriptName:".^", text:".^"}
, hotKeyStuff: {ln:".^", scriptName:".^", text:".^"}
, runLogFile: {ln:".", scriptName:".^", text:".^"}
}
; it takes the first existing editor, from the follwoing list.
; very first time it uses the smallest, most simpliest editor (notepad.exe not to be confused with notepad++.exe)
g_config.editor := [
A_ProgramFiles "\Notepad++\notepad++.exe",
A_ProgramFiles "\Microsoft VS Code\Code.exe",
A_ProgramFiles "\Microsoft VS Code\bin\code.cmd",
"C:\Users\lauffer\AppData\Local\Programs\Microsoft VS Code\Code.exe",
A_ScriptDir "\..\AHK-Studio\AHK-Studio.ahk",
A_ScriptDir "\..\AutoGUI\AutoGUI.ahk"
] ; above the list of the editors, which is gone through alphabetically up to the first find (fileAdress exists).
g_doAskBevoreChangingActionList := false ; <== buggy dont know whey 19.03.2018 23:50
g_doAskBevoreChangingActionList := true ; <== works preetty nice :) 19.03.2018 23:51
g_minBytesNeedetToAskBevoreChangingActionList := 812345 ; <== Minimum bytes. then will be asked before the change 20.03.2018 18:22
g_ListBoxFontSize := 16 ; works
g_ListBoxFontSize := 2 ; work but its so small i could not read
g_ListBoxFontSize := 8
g_FLAGmsgbox := false
g_doSound := false
; g_isListBoxDisabled := false ; toggeled by: ~ctrl::
; to#AllowSameLineComments#IfWinExist
g_min_MonitorBound_right := 70 ; used in: ForceWithinMonitorBounds
g_method := "Clipboard"
g_fontColor := "cGreen"
g_regExReplaceInVisibleLine := "^([\w\d_-]+).*" ; show only first text , numers _ or - ; https://g-intellisense.myjetbrains.com/youtrack/issue/GIS-24
g_regExReplaceInVisibleLine := "^([^|]+).*" ; the string only before the first "|" ; https://g-intellisense.myjetbrains.com/youtrack/issue/GIS-24
g_regExReplaceInVisibleLine := "^[_]*([^|\n]+)[^\.\n]*?([^|\n]{3,})$" ; https://autohotkey.com/boards/viewtopic.php?p=215425#p215425 https://regex101.com/r/GQjPg0/1
g_regExReplaceInVisibleLine := "^[_]*([^|\n]+)[^\.\n]*?([^|\n]{3,})?$" ; 18-06-10_09-34 https://autohotkey.com/boards/viewtopic.php?p=215425#p215425 https://regex101.com/r/GQjPg0/1 ; the string only before the first "|"
g_config.tray := {
iconFileAddress: (
( InStr(A_ScriptDir,"-Nightly-")
&& FileExist(A_ScriptDir "\icon\abc123\GI-nightly.gif") )
? A_ScriptDir "\icon\abc123\GI-nightly.gif"
: ""
)
}
actionList_isNotAProject_withoutExt := removesSymbolicLinksFromFileAdress( A_ScriptDir "\..\actionLists\_globalActionListsGenerated\isNotAProject" )
actionList_isNotAProject := actionList_isNotAProject_withoutExt ".ahk"
; tryThisEditorFirst: "AHKStudio",
g_config.send := { RealisticDelayDynamic: false } ; RealisticDelayDynamic: 2
g_config.list := {
change: { stopRexExTitle: false }
}
g_config.sql := {
select: {
ignReg: "m)^((?!\bActionListID\b\s*[><=]).)*$" ,
ignIfWhereIsWithoutListID : false,
showFilePrefix : false
},
template : {
dir: A_ScriptDir "\sql\template",
maxNnumberUsedTemplates : 7
},
DB_Browser: A_ProgramFiles " (x86)\DB Browser for SQLite\DB Browser for SQLite.exe"
}
; default for maxNnumberUsedTemplates is usually 7 (files select0 ... select6). no results if you use 0
; showFilePrefix useful if you want find out which select data supplies
g_config.FuzzySearch := {
enable: true,
MAXlines : 87654,
keysMAXperEntry : 6,
minKeysLen: 4,
doValueCopy : false
}
; you do not need these runners. these are just examples:
; C:\php731NTS>php.exe helloWorld.php
; usage example in your actionScrip: helloCommandLine keyword|rr||helloCommandLine|hello value
; https://g-intellisense.myjetbrains.com/youtrack/issue/GIS-134
g_config.codeRunner := {
code_AutoHotkey_Community:
A_ScriptDir "\..\actionLists\_globalActionLists\incDynAhk\AutoHotkey_Community\in_commandLine_send_modified_clipboard.ahk",
helloCommandLine: A_ScriptDir "\plugins\ahk\helloCommandLine.ahk",
everything: A_ProgramFiles "\_\Everything\Everything.exe",
everythingEs: A_ProgramFiles "\_\Everything\ES\es.exe",
javascript: "node",
php731NTS: "C:\php731NTS\php.exe",
php: "C:\php\php.exe",
python: "python",
perl: "perl",
ruby: "C:\Ruby23-x64\bin\ruby.exe",
go: "go run",
html: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe",
java: "cd $dir && javac $fileName && java $fileNameWithoutExt",
c: "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
kotlinc: A_ScriptDir "\..\actionLists\_kts\kotlinc\bin\kotlinc"
}
; difficult to implement symlink copy for not rr lines doValueCopy. todo: issue . doValueCopy : false is not fully implemented
; g_config["sql"["select"]["ignIfWhereIsWithoutListID"]
; is matching some at the end: at the moment SQL Nr 6,7 and the magic selects later are without ListID 11.01.2019 23:05
; g_config["sql"["select"]["ignReg"] not implemented yet 19-01-11_21-39
; the regEx .^ never match anything.
; the regEx . ignore all
; select: { ignReg: ".^" }
; select: { ignReg: ".^" }
; select: { ignReg: "m)^((?!\bActionListID\b\s*[><=]).)*$" ; <= try to ignore all selects without actioinList in where condition
You can’t perform that action at this time.