Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

AHK Sam klika shift


Rekomendowane odpowiedzi

Opublikowano

Cześć. Napisałem sobie skrypt który kopie 6/3/3 w tle.  Problem jest taki, że w niektórych momentach skrypt sam naciska shift. W kodzie nie ma nawet nic wspomniane o shifcie. Pomożecie?

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

F5::
Loop
{
Loop, 15
{
ControlSend,,{u DOWN}, Minecraft 1.8.8
sleep 300
ControlSend,,{A DOWN}, Minecraft 1.8.8
sleep 3380
ControlSend,,{A UP}, Minecraft 1.8.8
sleep 400
ControlSend,,{D DOWN}, Minecraft 1.8.8
sleep 3380
ControlSend,,{d up}, Minecraft 1.8.8
sleep 300
ControlSend,,{u up}, Minecraft 1.8.8
}

ControlSend,, 2, Minecraft 1.8.8
sleep 500
ControlSend,,{ctrl down}, Minecraft 1.8.8
sleep 500
ControlSend,,q, Minecraft 1.8.8
sleep 500								

ControlSend,,3, Minecraft 1.8.8
sleep 500
ControlSend,,q, Minecraft 1.8.8
sleep 500
ControlSend,,{ctrl up}, Minecraft 1.8.8
								
ControlSend,,1, Minecraft 1.8.8
												
								
ControlSend,, t, Minecraft 1.8.8
sleep 100
ControlSend,, /repair, Minecraft 1.8.8
sleep 100
ControlSend,, {enter}, Minecraft 1.8.8
sleep 100
ControlSend,, t, 5
sleep 100
ControlSend,, /feed, Minecraft 1.8.8
sleep 100
ControlSend,, {enter}, Minecraft 1.8.8
sleep 100


sleep 5000

return
}


F6:
{
ExitApp

}

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...