双语漫画 同一软件的多个窗口同时操作

起因

想要看漫画的时候顺便学学英语,所以打开两个语言版本的漫画,左右各一,但是每次都要手动两边点来点来,觉得很麻烦。

解决

之前完全没接触过编程,但是autohotkey还是比较好上手的,折腾了一下午,终于搞出了满意的版本。虽然不是什么有用的东西,但是还是有版本迭代的。 :joy:

  • 版本1:使用 AHK 語法產生器 ,通过图片定位鼠标点击的方式,容错率低,两边的窗口不能调整,很蠢但能用。
  • 版本2:通过定位鼠标点击激活窗口,然后送出左右键,容错率还是很低,但是允许一定的窗口调整空间。
  • 版本3:最后是使用winget的版本,窗口可以随便调整了!

代码

目前能用,希望有大佬能提出修改意见。

#IfWinActive ahk_class SUMATRA_PDF_FRAME
Right::
	SetTitleMatchMode, 2
	WinGet, myList, list, SumatraPDF
	loop, %myList%
	{
		WinActivate, % "ahk_id" myList%A_Index%
		Sleep, 50
		Send {Right}
	}
return

#IfWinActive ahk_class SUMATRA_PDF_FRAME
Left::
	SetTitleMatchMode, 2
	WinGet, myList, list, SumatraPDF
	loop, %myList%
	{
		WinActivate, % "ahk_id" myList%A_Index%
		Sleep, 50
		Send {Left}
	}
return

#IfWinActive ahk_class Qt631QWindowIcon
Right::
	WinGet, myList, list, ahk_exe ebook-viewer.exe
	loop, %myList%
	{
		WinActivate, % "ahk_id" myList%A_Index%
		Sleep, 50
		Send {Right}
	}
return

#IfWinActive ahk_class Qt631QWindowIcon
Left::
	WinGet, myList, list, ahk_exe ebook-viewer.exe
	loop, %myList%
	{
		WinActivate, % "ahk_id" myList%A_Index%
		Sleep, 50
		Send {Left}
	}
return
2 个赞

请问一下,英文的漫画在哪里下载?

学英语的好方法啊

一般到这个网站搜漫画的英文名就能找到 Browse :: Nyaa