ahk Topic is solved

Помощь в написании скриптов
Ya1

ahk

Post by Ya1 » 05 Jun 2023, 13:53

Помогите пожалуйста не пойму почему не работает f9, когда f10 прекрасно работает.

Code: Select all

f9:: ControlSend, ahk_parent, {LButton down}, ahk_exe java.exe
f10::
loop
{
	sleep 2000 
	ControlSend, ahk_parent, {a down}, ahk_exe java.exe
	sleep 30
	ControlSend, ahk_parent, {a up}, ahk_exe java.exe
	sleep 2000
	ControlSend, ahk_parent, {d down}, ahk_exe java.exe
	sleep 30
	ControlSend, ahk_parent, {d up}, ahk_exe java.exe
}  
return
[Mod edit: Fixed codebox.]

mcl
Posts: 357
Joined: 04 May 2018, 16:35

Re: Почему не работает ControlSend  Topic is solved

Post by mcl » 05 Jun 2023, 15:54

Ya1 wrote: Помогите пожалуйста не пойму почему не работает f9, когда f10 прекрасно работает.
В документации сказано: „Unlike the Send command, mouse clicks cannot be sent by ControlSend. Use ControlClick for that.“

Code: Select all

F9:: ControlClick,, ahk_exe java.exe,, Left,, D
github://oGDIp - GDI+ wrapper for AHK v1.1

Post Reply

Return to “Помощь”