クライアントのプロセスを一覧表示するソフトウェアを使用する必要があります。50x10ピクセルの領域で何かが変化した場合は、サウンドアラートプログラムが必要です。autohotkeyでプログラムを作成しようとしましたが、成功しません。このプログラムを持っている人はいますか?
2617 次
2 に答える
1
使用できる例を次に示します。
^Launch_Media:: ; Make a reference screenshot with NirSoft NIRCMD by pressing Ctrl+Media or any other program...
run, "C:\Program Files\1 My Programs\nircmd.exe" savescreenshot "c:\Temp\Screenshot.bmp" 33 40 17 20 ; Location of "Save As" Icon in SciTE4AutoHotKey Editor
Return
Launch_Media:: ; Launch this test manually with Media Button
CoordMode Pixel ; Interprets the coordinates below as relative to the screen rather than the active window.
ImageSearch, FoundX, FoundY, 0, 0, 200, 200, C:\Temp\Screenshot.bmp ; search for image in area staring at 0,0 to 200,200
if ErrorLevel = 2
MsgBox Could not conduct the search.
else if ErrorLevel = 1
MsgBox Image could not be found on the screen.
else
SoundBeep, 1000, 1000
MsgBox The Image was found at %FoundX% %FoundY%.
ClickX:=FoundX + 5 ; Move the mouse click away from the edge of the icon
ClickY:=FoundY + 5 ; Move the mouse click away from the edge of the icon
Click, %ClickX%, %ClickY% ; Click on the Save As icon.
Return
何をテストしたいのか (50x10 の領域は小さすぎるかもしれないと思います)、および領域が変更された場合に何をしたいのかについて、より詳しい情報があれば、より適切なスクリプトを提供できるかもしれません。
この例ではNirSoftの nircmd.exe を使用しましたが、他の方法でも参照イメージを作成できます。可聴アラームのみが必要な場合は、下にある他のすべてのコマンドを でコメント化できif, then, else
ます;。
于 2013-02-19T10:58:06.153 に答える
0
AutoHotKey コミュニティの 2 年前のこの投稿を確認しましたか?
http://www.autohotkey.com/board/topic/56219-fast-screen-change-check-using-histograms/
上記のスクリプトは少し圧倒されるかもしれませんが、以前に他の人が行ったように、固定領域のスクリーンショットを作成し、AutoHotKey で画像比較を行うこともできます。
于 2013-02-18T16:21:33.393 に答える