Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CoordMode Screen
- F2:: Reload ; перезагрузить скрипт
- F3:: ExitApp ; закрыть скрипт
- F4:: ; Старт
- Loop{
- PixelGetColor, color_up1, A_ScreenWidth * 0.5, A_ScreenHeight * 0.77, RGB
- PixelGetColor, color_up2, A_ScreenWidth * 0.5, A_ScreenHeight * 0.76, RGB
- PixelGetColor, color_up3, A_ScreenWidth * 0.5, A_ScreenHeight * 0.76, RGB
- if ( color_up1 = "0x000000" and color_up2 = "0x000000" and color_up3 = "0x000000" ) {
- Send, {vk26}
- sleep, 100
- }
- else
- PixelGetColor, color_down1, A_ScreenWidth * 0.5, A_ScreenHeight * 0.76, RGB
- PixelGetColor, color_down2, A_ScreenWidth * 0.5, A_ScreenHeight * 0.77, RGB
- PixelGetColor, color_down3, A_ScreenWidth * 0.5, A_ScreenHeight * 0.77, RGB
- if ( color_down1 = "0x000000" and color_down2 = "0x000000" and color_down3 = "0x000000" ) {
- Send, {vk28}
- sleep, 100
- }
- else
- PixelGetColor, color_right1, A_ScreenWidth * 0.5, A_ScreenHeight * 0.77, RGB
- PixelGetColor, color_right2, A_ScreenWidth * 0.5, A_ScreenHeight * 0.76, RGB
- PixelGetColor, color_right3, A_ScreenWidth * 0.5, A_ScreenHeight * 0.77, RGB
- if ( color_right1 = "0x000000" and color_right2 = "0x000000" and color_right3 = "0x000000" ) {
- Send, {vk27}
- sleep, 100
- }
- else
- PixelGetColor, color_left1, A_ScreenWidth * 0.5, A_ScreenHeight * 0.77, RGB
- PixelGetColor, color_left2, A_ScreenWidth * 0.5, A_ScreenHeight * 0.76, RGB
- PixelGetColor, color_left3, A_ScreenWidth * 0.5, A_ScreenHeight * 0.77, RGB
- if ( color_left1 = "0x000000" and color_left2 = "0x000000" and color_left3 = "0x000000" ) {
- Send, {vk25}
- sleep, 100
- }
- else
- Send, {vk45}
- color_down1 := " "
- color_down2 := " "
- color_down3 := " "
- color_left1 := " "
- color_left2 := " "
- color_left3 := " "
- color_up1 := " "
- color_up2 := " "
- color_up3 := " "
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement