Search found 6 matches
- 15 Jun 2018, 08:02
- Forum: Ask for Help (v1)
- Topic: Please help with LOOP Topic is solved
- Replies: 4
- Views: 1172
Re: Please help with LOOP Topic is solved
Loop { if( GetKeystate("NumpadEnd") = 1 and GetKeystate("1") = 1 ) ; It is checked if the keys are pressed Loop ; If the keys are pressed, then it is checked whether they are released { if( GetKeystate("NumpadEnd") = 0 and GetKeystate("1") = 0 ) ; Keys released { MsgBox, "Keys are pressed and relea...
- 15 Jun 2018, 08:00
- Forum: Ask for Help (v1)
- Topic: Please help with LOOP Topic is solved
- Replies: 4
- Views: 1172
Re: Please help with LOOP Topic is solved
It think the issue is just a syntactical/formatting difficulty Loop { GetKeyState, state, NumpadEnd GetKeyState, state2, 1 if( state = D and state2 = D ) ; It is checked if the keys are pressed Loop ; If the keys are pressed, then it is checked whether they are released { if ( state = U and state2 ...
- 15 Jun 2018, 06:56
- Forum: Помощь
- Topic: Помощь в написании скрипта Topic is solved
- Replies: 2
- Views: 3101
Re: Помощь в написании скрипта Topic is solved
State := 1 ; присваиваем переменной state значение 1 в начале X:: Sleep, 200 ; задержка (по желанию) number := mod(State, 2) ; переменную state делим на 2, остаток заносим в переменную number if ( number = "1" ) ; Если остаток number = 1 Send, {C} ; то нажимаем клавишу С if ( number = "0" ) ; если ...
- 15 Jun 2018, 04:35
- Forum: Ask for Help (v1)
- Topic: Please help with LOOP Topic is solved
- Replies: 4
- Views: 1172
Please help with LOOP Topic is solved
My script should be exactly with "GetKeyState" and with the "If" construction. But an error with "Loop" is shown. How do I properly build this script? Loop { GetKeyState, state, NumpadEnd GetKeyState, state2, 1 if ( state = D and state2 = D ) ; It is checked if the keys are pressed loop ; If the key...
- 07 Jun 2018, 01:46
- Forum: Ask for Help (v1)
- Topic: Please help with Loop Topic is solved
- Replies: 2
- Views: 801
Re: Please help with Loop Topic is solved
You need to use the RGB parameter. PixelGetColor, Color, 83, 49, RGB RGB: Retrieves the color in RGB vs. BGR format. In other words, the red and the blue components are swapped. This is useful for retrieving colors compatible with WinSet, Gui, Progress, and SplashImage. #SingleInstance, Force Loop ...
- 06 Jun 2018, 05:52
- Forum: Ask for Help (v1)
- Topic: Please help with Loop Topic is solved
- Replies: 2
- Views: 801
Please help with Loop Topic is solved
loop { PixelGetColor, color, 83, 49 if color = 0xFAF9F7 // pixel check { TrayTip, Test, web page loaded, 3, 16 ; break } else { TrayTip, Test, web page not loaded %color%, 3, 16 ; // the window comes out "web page not loaded 0xFAF9F7" sleep, 2000 continue } } Pause The script checks the pixel on th...