-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
bugSomething isn't workingSomething isn't workingproject-OCRCOCRCOCRCquestionThis issue or pull request has unknown or unsolved problemThis issue or pull request has unknown or unsolved problemunknownThis issue is unknown or needs more informationThis issue is unknown or needs more information
Description
AutoHotkey-Script/OCRC/OCRC.ahk
Lines 261 to 276 in 99580f9
| GETV: | |
| if !WinActive("ahk_id " SettingHwnd) | |
| return | |
| GuiControlGet TabVar, , SysTabControl321 | |
| GuiControlGet, tVa, , % A_GuiControl | |
| %A_GuiControl% := tVa | |
| WriteIni(ConfigFile, tVa, A_GuiControl, TabVar) | |
| if A_GuiControl in Basic_BaiduOCROnOff,Basic_MathpixOCROnOff | |
| { | |
| if !Basic_AutoReloadOnOff | |
| MsgBox 4132, OCRC, 是否要重启以使设置生效?, 10 | |
| IfMsgBox No | |
| Return | |
| Reload | |
| } | |
| return |
868ebb3 add
if !WinActive("ahk_id " SettingHwnd)
return to prevent the bizarre behavior due to the initiation of the setting.
AutoHotkey-Script/OCRC/OCRC.ahk
Lines 239 to 244 in b11d711
| GETV: | |
| GuiControlGet TabVar, , SysTabControl321 | |
| GuiControlGet, tVa, , % A_GuiControl | |
| %A_GuiControl% := tVa | |
| WriteIni(ConfigFile, tVa, A_GuiControl, TabVar) | |
| return |
- This will cause variable
Advance_EBto64SQualitybelonging toAdvancesection is added(copied) toBasicsection when opening the setting. - Besides, developing OCRC v1.2.1, I found that the value of
Basic_SnipTimesometimes replaced by the value ofBasic_WaitSnipTime. - The value of
Basic_WaitSnipTimesometimes is replaced by100while there is no variable having the value of100and the default value is500.
First I tried to detect the name prefix of variables to determine TabVar instead of
GuiControlGet TabVar, , SysTabControl321However, it worked strangely too.
Therefore, I added the detecting function.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingproject-OCRCOCRCOCRCquestionThis issue or pull request has unknown or unsolved problemThis issue or pull request has unknown or unsolved problemunknownThis issue is unknown or needs more informationThis issue is unknown or needs more information