Skip to content
This repository
Browse code

Use variable for version number - only one place to change for future…

… versions
  • Loading branch information...
commit a468ecd17bfa9843970a85ca4d05916e0c9ebea0 1 parent e77733d
authored June 22, 2007

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  texter.ahk
7  texter.ahk
@@ -215,6 +215,7 @@ Send,{SC77}
215 215
 Return 
216 216
 
217 217
 ASSIGNVARS:
  218
+Version = 0.4
218 219
 EnterCSV = %A_ScriptDir%\Active\bank\enter.csv
219 220
 TabCSV = %A_ScriptDir%\Active\bank\tab.csv
220 221
 SpaceCSV = %A_ScriptDir%\Active\bank\space.csv
@@ -239,7 +240,7 @@ IfNotExist Active
239 240
 	FileCreateDir, Active\replacements
240 241
 	FileCreateDir, Active\bank
241 242
 }
242  
-IniWrite,0.4,texter.ini,Preferences,Version
  243
+IniWrite,%Version%,texter.ini,Preferences,Version
243 244
 cancel := GetValFromIni("Cancel","Keys","{Escape}") ;keys to stop completion, remember {} 
244 245
 ignore := GetValFromIni("Ignore","Keys","{Tab}`,{Enter}`,{Space}") ;keys not to send after completion 
245 246
 IniWrite,{Escape}`,{Tab}`,{Enter}`,{Space}`,{Left}`,{Right}`,{Up}`,{Down},texter.ini,Autocomplete,Keys
@@ -443,7 +444,7 @@ Gui,4: Add,Picture,x200 y0,%TexterPNG%
443 444
 Gui,4: font, s36, Courier New
444 445
 Gui,4: Add, Text,x10 y35,Texter
445 446
 Gui,4: font, s8, Courier New
446  
-Gui,4: Add, Text,x171 y77,0.4
  447
+Gui,4: Add, Text,x171 y77,%Version%
447 448
 Gui,4: font, s9, Arial 
448 449
 Gui,4: Add,Text,x10 y110 Center,Texter is a text replacement utility designed to save`nyou countless keystrokes on repetitive text entry by`nreplacing user-defined abbreviations (or hotstrings)`nwith your frequently-used text snippets.`n`nTexter is written by Adam Pash and distributed`nby Lifehacker under the GNU Public License.`nFor details on how to use Texter, check out the
449 450
 Gui,4:Font,underline bold
@@ -1061,7 +1062,7 @@ IfNotExist texter.ini
1061 1062
 		updatereply = 0
1062 1063
 }
1063 1064
 update := GetValFromIni("Preferences","UpdateCheck",updatereply)
1064  
-IniWrite,0.4,texter.ini,Preferences,Version
  1065
+IniWrite,%Version%,texter.ini,Preferences,Version
1065 1066
 if (update = 1)
1066 1067
 	SetTimer,RunUpdateCheck,10000
1067 1068
 return

0 notes on commit a468ecd

Please sign in to comment.
Something went wrong with that request. Please try again.