Показать полную графическую версию : [решено] "Зажатие" кнопки на заданное время
Возможно-ли реализовать "зажатие" клавиши, на подобе той, которая из oscar editor под мыши X7. А именно:
Нажать <X>
Пауза 64 мс
Отпустить <X>
madmasles
20-09-2011, 20:05
winipox, $iPause = 200
$iOpt = Opt (http://www.autoitscript.com/autoit3/docs/functions/Opt.htm)('SendKeyDelay', $iPause)
Send (http://www.autoitscript.com/autoit3/docs/functions/Send.htm)('x')
Opt (http://www.autoitscript.com/autoit3/docs/functions/Opt.htm)('SendKeyDelay', $iOpt)
;или так:
Send (http://www.autoitscript.com/autoit3/docs/functions/Send.htm)('{x down}')
Sleep (http://www.autoitscript.com/autoit3/docs/functions/Sleep.htm)($iPause)
Send (http://www.autoitscript.com/autoit3/docs/functions/Send.htm)('{x up}')
© OSzone.net 2001-2012
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.