From 2223c91171b5b299987a5749e7b3db173674363b Mon Sep 17 00:00:00 2001 From: yuriy Date: Sat, 19 Aug 2023 22:22:29 -0400 Subject: [PATCH] disabled statistics storage by default --- Atom-Launcher.ahk | 18 +++++++++--------- Lib/UsageStats_WLATITUDE16.txt | 12 ------------ 2 files changed, 9 insertions(+), 21 deletions(-) delete mode 100644 Lib/UsageStats_WLATITUDE16.txt diff --git a/Atom-Launcher.ahk b/Atom-Launcher.ahk index faf5fd0..2ed5bb1 100644 --- a/Atom-Launcher.ahk +++ b/Atom-Launcher.ahk @@ -24,7 +24,7 @@ A_ICODir = %A_scriptDir%\Graphics ; Read User Settings from .ini file ; IniRead, SaveUsageStats, %A_scriptdir%\Lib\Settings.ini, AtomSearch, SaveUsageStats -SaveUsageStats=1 +SaveUsageStats=0 ScreenWidth := A_ScreenWidth 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, Font, s20, Segoe UI ;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, Show,y25, %Script_Name% @@ -117,7 +117,7 @@ return ;------------------------------------------------ ; Automatically triggered on Escape key: GuiEscape: -RMSearchTerm := +AtomSearchTerm := CustomTool := gui_destroy() return @@ -126,11 +126,11 @@ return Findus: Gui, Submit, NoHide -; Msgbox % "RMSearchTerm: " RMSearchTerm +; Msgbox % "AtomSearchTerm: " AtomSearchTerm ; 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 } @@ -187,8 +187,8 @@ GuiControl,, Icon, %gui_search_icon% GuiControl, Text, GUITitle, %gui_search_title% 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] -; GuiControl,, RMSearchTerm, -GuiControl, Disable, RMSearchTerm +; GuiControl,, AtomSearchTerm, +GuiControl, Disable, AtomSearchTerm ; Gui, Show, AutoSize @@ -304,12 +304,12 @@ maxpadding = 0 StringCaseSense, Off ; Matching to both if/If in the IfInString command below 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 A_LoopReadLine contains if { - IfInString, A_LoopReadLine, RMSearchTerm + IfInString, A_LoopReadLine, AtomSearchTerm IfInString, A_LoopReadLine, = { StringGetPos, setpos, A_LoopReadLine,= diff --git a/Lib/UsageStats_WLATITUDE16.txt b/Lib/UsageStats_WLATITUDE16.txt deleted file mode 100644 index de3e2af..0000000 --- a/Lib/UsageStats_WLATITUDE16.txt +++ /dev/null @@ -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 \ No newline at end of file