Ну кто об этом знал. Тогда так:
Keypress(#T)
LOGWRITE ("Нажал T")
wait (2)
$u=0
while($u=0)
GETSCREEN
IF_PIXEL_IN (959, 435, 977,
486,255)
KEYDOWN(#G)
LOGWRITE ("Зажал G")
$u=1
END_IF
waitms (50)
END_CYC
GETSCREEN
IF_PIXEL_IN
(665,777,767,778,16750899)
GOTO(dostaem)
END_IF
$lovim=0
while($lovim=0)
GETSCREEN
IF_PIXEL_IN (913,717,930,732,6657107,
7117147,4488494)
KEYUP(#G)
LOGWRITE ("Отжал G")
waitms (50)
KEYDOWN(#H)
LOGWRITE ("Зажал H")
waitms (50)
END_IF
IF_PIXEL_IN
(917,703,931,714,6657107,
7117147,4488494)
KEYUP(#H)
LOGWRITE ("Отжал H")
waitms (50)
KEYDOWN(#G)
LOGWRITE ("Зажал G")
waitms (50)
END_IF
IF_PIXEL_IN
(665,777,767,778,16750899)
$lovim=1
END_IF
END_CYC
dostaem:
KEYUP(#G)
LOGWRITE ("Отжал G")
wait (2)
Keypress(#SPACE)
LOGWRITE ("Нажал Space")
wait (2)