Skocz do zawartości

Damian_

Użytkownik
  • Ilość zawartości

    1
  • Rejestracja

  • Ostatnia wizyta

Osiągnięcia Damian_

Świeżak

Świeżak (1/13)

0

Reputacja

  1. Damian_

    Pomoc w skrypcie

    Siemka mam pytanie czy umiał by ktoś dopisać cos do mojego skryptu aby byl on podłączony tylko do 1 procesu czyli żeby rzeczy które ma robić działy się tylko w minecrafcie a nie na całym komputerze wiem że jest to do zrobienia lecz nie wiem jak z góry dzięki :) [czyli chodzi o to że podczas skryptu mogę normalnie korzystać z komputera] kod skryptu StartAfk=F8 ExitApp=F9 Hotkey,%StartAfk%,Start Hotkey,%ExitApp%,Exit Return Start: WinMove, Minecraft, , , , 1280, 720 loop{ Command("repair") Wait(50) Command("feed") Wait(50) Command("sellall") Wait(500) Command("sklep") Wait(500) Click 570,290 SendInput {LButton} Wait(500) Click 490,250 Wait(500) SendInput {LButton} Wait(500) SendInput {Esc} Wait(500) SendInput {LButton} Dig(5) } Return Exit: ExitApp Return Command(string){ SendInput {T} Wait(500) Send /%string% Wait(300) SendInput {Enter} Wait(300) } Wpisz(string){ SendInput {T} Wait(500) Send %string% Wait(300) SendInput {Enter} Wait(300) } reJoin(){ SendInput {T} Wait(100) setMPos(2500, 500) SendInput {LButton} Wait(500) SendInput {Enter} Wait(200) } Dig(int){ SendInput {LButton down} Move(int) SendInput {LButton up} } Move(int){ loop, %int%{ Press("W", 10) Press("A", 2) Press("S", 10) Press("D", 2) } } InventoryChecking(){ x := 503 y := 385 l := 0 i := 0 SendInput {e} loop, 27{ if(i = 9){ i := 0 l++ } Wait(200) setMPos(x +36*i, y + 35*l) DropGold() i++ } SendInput {e} Wait(100) } dropGold(){ goldcolor := 0x808080 color:= getColor() if(color = goldcolor){ sendInput, {LCtrl down}{Q} Wait(100) SendInput {LCtrl up} } } getColor(){ MouseGetPos, X,Y PixelGetColor, color, %X%, %Y% return color } Press(charkey, dist){ t := getTimeFromDis(dist) SendInput {%charkey% down} Wait(t) SendInput {%charkey% up} } getTimeFromDis(s){ t:=0 t:= s*235 return t } setMPos(x, y){ MouseMove,x,y } Wait(s){ sleep, s }
×
×
  • Dodaj nową pozycję...