EDIT: My bad... See reply.
Christopher has released v4 of the most excellent Capture2Text. It's an OCR app and I'm trying to programatically alter the INI file that defines the whitelist (among other things). The following script should be updating the Capture2Text.ini file -- yes?
Code: Select all
^!+2::
;myWhiteList := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-.()=+"
myWhiteList := "56789"
; EDIT: move myIniLocation declaration to below the Label!!!
;myIniLocation := "C:\Users\swkunkel\AppData\Roaming\Capture2Text\Capture2Text.ini"
goto, WhitelistUpdate
return
^!2::
myWhiteList := ""
goto, WhitelistUpdate
WhitelistUpdate:
myIniLocation := "C:\Users\swkunkel\AppData\Roaming\Capture2Text\Capture2Text.ini" ;here!!!
Process, Close, Capture2Text.exe
Sleep, 250
IniWrite, %myWhiteList%, %myIniLoaction%, OCR, Whitelist
sleep, 1000
run, C:\Users\swkunkel\AutoHotkey\AutoCorrect\Capture2Text_v4.0_64bit\Capture2Text.exe
return
Thoughts?
(Open to other suggestions too. Such as better ways to use the labels or timers.)