disabled statistics storage by default

This commit is contained in:
yuriy 2023-08-19 22:22:29 -04:00
parent 05bb9554d6
commit 2223c91171
2 changed files with 9 additions and 21 deletions

View File

@ -24,7 +24,7 @@ A_ICODir = %A_scriptDir%\Graphics
; Read User Settings from .ini file ; Read User Settings from .ini file
; IniRead, SaveUsageStats, %A_scriptdir%\Lib\Settings.ini, AtomSearch, SaveUsageStats ; IniRead, SaveUsageStats, %A_scriptdir%\Lib\Settings.ini, AtomSearch, SaveUsageStats
SaveUsageStats=1 SaveUsageStats=0
ScreenWidth := A_ScreenWidth ScreenWidth := A_ScreenWidth
ScreenDPI := A_ScreenDPI 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, Add, Text,center x300 y100 vgui_main_title2, Search ; Uncomment if you want a GUI title
Gui, Font, s20, Segoe UI Gui, Font, s20, Segoe UI
;gui, Add, Text,Center x250,Atom Search ;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, Add, Picture, x+1 w45 h45,RMSearch_R.ico
Gui, Show,y25, %Script_Name% Gui, Show,y25, %Script_Name%
@ -117,7 +117,7 @@ return
;------------------------------------------------ ;------------------------------------------------
; Automatically triggered on Escape key: ; Automatically triggered on Escape key:
GuiEscape: GuiEscape:
RMSearchTerm := AtomSearchTerm :=
CustomTool := CustomTool :=
gui_destroy() gui_destroy()
return return
@ -126,11 +126,11 @@ return
Findus: Findus:
Gui, Submit, NoHide Gui, Submit, NoHide
; Msgbox % "RMSearchTerm: " RMSearchTerm ; Msgbox % "AtomSearchTerm: " AtomSearchTerm
; msgbox, herere ; 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 ; 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% GuiControl, Text, GUITitle, %gui_search_title%
Gui, Add, Edit, x145 y80 w%Guiwidth% -E0x200 %cYellow% +Center vgui_SearchEdit -WantReturn 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] Gui, Add, Button, x-10 y-10 w1 h1 +default gSearchEnter ; hidden button gets activated when user hits [Enter]
; GuiControl,, RMSearchTerm, ; GuiControl,, AtomSearchTerm,
GuiControl, Disable, RMSearchTerm GuiControl, Disable, AtomSearchTerm
; Gui, Show, AutoSize ; Gui, Show, AutoSize
@ -304,12 +304,12 @@ maxpadding = 0
StringCaseSense, Off ; Matching to both if/If in the IfInString command below StringCaseSense, Off ; Matching to both if/If in the IfInString command below
Loop, read, %A_ScriptDir%/AtomUserCommands.ahk 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 Substr(A_LoopReadLine, 1, 1) != ";" ; Do not display commented commands
{ {
If A_LoopReadLine contains if If A_LoopReadLine contains if
{ {
IfInString, A_LoopReadLine, RMSearchTerm IfInString, A_LoopReadLine, AtomSearchTerm
IfInString, A_LoopReadLine, = IfInString, A_LoopReadLine, =
{ {
StringGetPos, setpos, A_LoopReadLine,= StringGetPos, setpos, A_LoopReadLine,=

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