archive.is webpage capture | からアーカイブ | 2016年1月23日 02:59:58 UTC | |
すべてのスクリーンショット, | ドメインから autohotkey.com | ||
ウェブページスクリーンショット | |||
+z:: ; Control+Z hotkey. MouseGetPos, MouseX, MouseY PixelGetColor, color, %MouseX%, %MouseY% MsgBox The color at the current cursor position is %color%. return
z:: IfWinExist, Your Window Here ;insert the window name WinActivate PixelSearch, Px, Py, 90, 190, 1062, 621, 0x00004c, 0, Fast ; oxoooo4c is the pixel color fould from using the first script, insert yours there if ErrorLevel MsgBox, That color was not found in the specified region. else click %Px%, %Py%[/code]
Loop
{
Sleep 8000
PixelSearch, Px, Py, -4, -4, 1032, 746, 0x253334, 0, Fast
if ErrorLevel
MsgBox, That color was not found in the specified region.
else
click %Px%, %Py%
}
Esc::ExitApp
Didn't you even try to figure it out by checking the documentation?
Do you know what ErrorLevel and MsgBox mean?
http://www.autohotkey.com/docs/