-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from abgox/v2
feat: 更新版本 2.29.0
- Loading branch information
Showing
24 changed files
with
3,112 additions
and
2,509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
fn_JAB(item, *) { | ||
global enableJetBrainsSupport := !enableJetBrainsSupport | ||
writeIni("enableJetBrainsSupport", enableJetBrainsSupport) | ||
A_TrayMenu.ToggleCheck(item) | ||
if (enableJetBrainsSupport) { | ||
FileInstall("InputTip.JAB.JetBrains.exe", "InputTip.JAB.JetBrains.exe", 1) | ||
waitFileInstall("InputTip.JAB.JetBrains.exe", 0) | ||
|
||
ideGui := Gui("AlwaysOnTop", "InputTip - 启用 JAB/JetBrains IDE 支持") | ||
ideGui.SetFont(fz, "微软雅黑") | ||
ideGui.AddText(, "------------------------------------------------------------------------------") | ||
ideGui.Show("Hide") | ||
ideGui.GetPos(, , &Gui_width) | ||
ideGui.Destroy() | ||
|
||
ideGui := Gui("AlwaysOnTop", "InputTip - 启用 JAB/JetBrains IDE 支持") | ||
ideGui.SetFont(fz, "微软雅黑") | ||
ideGui.AddText(, "已经成功启用了 JAB/JetBrains IDE 支持,你还需要进行以下步骤:") | ||
|
||
ideGui.AddEdit("xs -VScroll ReadOnly w" Gui_width, "1. 开启 Java Access Bridge`n2. 点击托盘菜单中的「设置光标获取模式」`n3. 将 JetBrains IDE 或其他 JAB 程序添加到其中的「JAB」列表中`n4. 如果未生效,请重启正在使用的 JetBrains IDE 或其他 JAB 程序`n5. 如果仍未生效,请重启 InputTip 或重启系统`n6. 有多块屏幕时,副屏幕上可能有坐标偏差,需要通过「设置特殊偏移量」调整") | ||
ideGui.AddLink(, '详细操作步骤,请查看: <a href="https://inputtip.pages.dev/FAQ/use-inputtip-in-jetbrains">InputTip 官网</a> <a href="https://github.com/abgox/InputTip#如何在-jetbrains-系列-ide-中使用-inputtip">Github</a> <a href="https://gitee.com/abgox/InputTip#如何在-jetbrains-系列-ide-中使用-inputtip">Gitee</a>') | ||
y := ideGui.AddButton("xs w" Gui_width, "我知道了") | ||
y.OnEvent("Click", yes) | ||
y.Focus() | ||
ideGui.OnEvent("Close", yes) | ||
yes(*) { | ||
ideGui.Destroy() | ||
gc.w.enableJetBrainsGui := "" | ||
} | ||
gc.w.enableJetBrainsGui := ideGui | ||
ideGui.Show() | ||
runJetBrains() | ||
} else { | ||
if (gc.w.enableJetBrainsGui) { | ||
gc.w.enableJetBrainsGui.Destroy() | ||
gc.w.enableJetBrainsGui := "" | ||
} | ||
SetTimer(killAppTimer, -10) | ||
killAppTimer() { | ||
try { | ||
RunWait('taskkill /f /t /im InputTip.JAB.JetBrains.exe', , "Hide") | ||
if (A_IsAdmin) { | ||
Run('schtasks /delete /tn "abgox.InputTip.JAB.JetBrains" /f', , "Hide") | ||
try { | ||
FileDelete("InputTip.JAB.JetBrains.exe") | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
fn_about(*) { | ||
if (gc.w.aboutGui) { | ||
gc.w.aboutGui.Destroy() | ||
gc.w.aboutGui := "" | ||
} | ||
aboutGui := Gui("AlwaysOnTop") | ||
aboutGui.SetFont(fz, "微软雅黑") | ||
aboutGui.AddText(, "InputTip - 一个输入法状态(中文/英文/大写锁定)提示工具") | ||
aboutGui.AddLink(, '- 因为实现简单,就是去掉 v1 中方块符号的文字,加上不同的背景颜色') | ||
aboutGui.AddPicture("w365 h-1", "InputTipSymbol\default\offer.png") | ||
aboutGui.Show("Hide") | ||
aboutGui.GetPos(, , &Gui_width) | ||
aboutGui.Destroy() | ||
|
||
aboutGui := Gui("AlwaysOnTop", "InputTip - v" currentVersion) | ||
aboutGui.SetFont(fz, "微软雅黑") | ||
aboutGui.AddText("Center w" Gui_width, "InputTip - 一个输入法状态(中文/英文/大写锁定)实时提示工具") | ||
tab := aboutGui.AddTab3("-Wrap", ["关于项目", "赞赏支持", "参考项目", "其他项目"]) | ||
tab.UseTab(1) | ||
aboutGui.AddText("Section", '当前版本: ') | ||
aboutGui.AddEdit("yp ReadOnly cRed", currentVersion) | ||
aboutGui.AddText("xs", '开发人员: ') | ||
aboutGui.AddEdit("yp ReadOnly", 'abgox') | ||
aboutGui.AddText("xs", 'QQ 账号: ') | ||
aboutGui.AddEdit("yp ReadOnly", '1151676611') | ||
aboutGui.AddText("xs", 'QQ 群聊(交流反馈): ') | ||
aboutGui.AddEdit("yp ReadOnly", '451860327') | ||
aboutGui.AddText("xs", "-------------------------------------------------------------------------------") | ||
aboutGui.AddLink("xs", '1. 官网: <a href="https://inputtip.pages.dev">https://inputtip.pages.dev</a>') | ||
aboutGui.AddLink("xs", '2. Github: <a href="https://github.com/abgox/InputTip">https://github.com/abgox/InputTip</a>') | ||
aboutGui.AddLink("xs", '3. Gitee: <a href="https://gitee.com/abgox/InputTip">https://gitee.com/abgox/InputTip</a>') | ||
tab.UseTab(2) | ||
aboutGui.AddText("Section", "如果 InputTip 对你有所帮助,你也可以出于善意, 向我捐款。`n非常感谢对 InputTip 的支持!希望 InputTip 能一直帮助你!") | ||
aboutGui.AddPicture("w432 h-1", "InputTipSymbol\default\offer.png") | ||
tab.UseTab(3) | ||
aboutGui.AddLink("Section", '1. <a href="https://github.com/aardio/ImTip">ImTip - aardio</a>') | ||
aboutGui.AddLink("xs", '2. <a href="https://github.com/flyinclouds/KBLAutoSwitch">KBLAutoSwitch - flyinclouds</a>') | ||
aboutGui.AddLink("xs", '3. <a href="https://github.com/Tebayaki/AutoHotkeyScripts">AutoHotkeyScripts - Tebayaki</a>') | ||
aboutGui.AddLink("xs", '4. <a href="https://github.com/Autumn-one/RedDot">RedDot - Autumn-one</a>') | ||
aboutGui.AddLink("xs", '5. <a href="https://github.com/yakunins/language-indicator">language-indicator - yakunins</a>') | ||
aboutGui.AddLink("xs", '- InputTip v1 是在鼠标附近显示带文字的方块符号') | ||
aboutGui.AddLink("xs", '- InputTip v2 默认通过不同颜色的鼠标样式来区分') | ||
aboutGui.AddLink("xs", '- 后来参照了 RedDot 和 language-indicator 的设计') | ||
aboutGui.AddLink("xs", '- 因为实现很简单,就是去掉 v1 中方块符号的文字,加上不同的背景颜色') | ||
|
||
tab.UseTab(4) | ||
aboutGui.AddLink("Section w" Gui_width, '1. <a href="https://pscompletions.pages.dev/">PSCompletions</a> : 一个 PowerShell 补全模块,它能让你在 PowerShell 中更简单、更方便地使用命令补全。') | ||
aboutGui.AddLink("Section w" Gui_width, '2. ...') | ||
|
||
tab.UseTab(0) | ||
btn := aboutGui.AddButton("Section w" Gui_width + aboutGui.MarginX * 2, "关闭") | ||
btn.Focus() | ||
btn.OnEvent("Click", fn_close) | ||
aboutGui.OnEvent("Close", fn_close) | ||
fn_close(*) { | ||
aboutGui.Destroy() | ||
} | ||
gc.w.aboutGui := aboutGui | ||
aboutGui.Show() | ||
} |
Oops, something went wrong.