Skocz do zawartości

Dołącz do społecznoś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

[Pytanie] Kilka Pętli Jednocześni

Rekomendowane odpowiedzi

Opublikowano

Siemka, mam taki kod:

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Users\Hubert\Desktop\TaleBot2.kxf
$Form1 = GUICreate("TaleBot v2", 621, 394, 191, 120)
GUISetBkColor(0x008080)
$Label1 = GUICtrlCreateLabel("TaleBot v2 by EdekSkarpeta", 8, 0, 601, 68, $SS_CENTER)
GUICtrlSetFont(-1, 30, 400, 0, "Segoe Script")
$Group1 = GUICtrlCreateGroup("Ustawienia Ataku", 8, 72, 193, 145)
$Label2 = GUICtrlCreateLabel("Atak 1:", 16, 88, 38, 17)
$Label3 = GUICtrlCreateLabel("Atak 2:", 16, 112, 38, 17)
$Label4 = GUICtrlCreateLabel("Atak 3:", 16, 136, 38, 17)
$Label5 = GUICtrlCreateLabel("Atak 4", 16, 160, 35, 17)
$Label6 = GUICtrlCreateLabel("Atak 5:", 16, 184, 38, 17)
$Input1 = GUICtrlCreateInput("Input1", 56, 88, 137, 21)
$Input2 = GUICtrlCreateInput("Input2", 56, 112, 137, 21)
$Input3 = GUICtrlCreateInput("Input3", 56, 136, 137, 21)
$Input4 = GUICtrlCreateInput("Input4", 56, 160, 137, 21)
$Input5 = GUICtrlCreateInput("Input5", 56, 184, 137, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("Buffy", 208, 72, 161, 145)
$Label7 = GUICtrlCreateLabel("Buff 1:", 216, 96, 39, 20)
GUICtrlSetFont(-1, 11, 400, 0, "MS Sans Serif")
$Input6 = GUICtrlCreateInput("Input6", 256, 96, 105, 21)
$Label8 = GUICtrlCreateLabel("Jeżeli nie posiadasz buffów, w", 216, 128, 146, 17)
$Label9 = GUICtrlCreateLabel("powyższe pole wpisz literę lub", 216, 144, 144, 17)
$Label10 = GUICtrlCreateLabel("cyfrę której nie odpowiada żad-", 216, 160, 151, 17)
$Label11 = GUICtrlCreateLabel("en skill ani czynnosc.", 216, 176, 104, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group3 = GUICtrlCreateGroup("Częstotliwosc ataku (normalnego)", 376, 72, 225, 73)
$Label12 = GUICtrlCreateLabel("Wartosc w ms:", 384, 104, 74, 17)
$Input7 = GUICtrlCreateInput("Input7", 464, 104, 105, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group4 = GUICtrlCreateGroup("Częstotwliwosc buffu", 376, 144, 225, 73)
$Label13 = GUICtrlCreateLabel("Wartosc w ms:", 384, 176, 74, 17)
$Input8 = GUICtrlCreateInput("Input8", 464, 176, 105, 21)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group5 = GUICtrlCreateGroup("Leczenie", 8, 216, 193, 105)
$Label14 = GUICtrlCreateLabel("Leczenie:", 16, 232, 50, 17)
$Input9 = GUICtrlCreateInput("Input9", 72, 232, 121, 21)
$Label15 = GUICtrlCreateLabel("Częst. w ms:", 16, 256, 63, 17)
$Input10 = GUICtrlCreateInput("Input10", 80, 256, 113, 21)
$Label16 = GUICtrlCreateLabel("Jeżeli nie chcesz sie leczyć postępuj", 16, 280, 176, 17)
$Label17 = GUICtrlCreateLabel("tak jak w przypadku buffów.", 16, 296, 137, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group6 = GUICtrlCreateGroup("Klawisze", 208, 216, 161, 105)
$Label18 = GUICtrlCreateLabel("F6 - Pauza", 216, 264, 55, 17)
$Label19 = GUICtrlCreateLabel("END - Koniec pracy programu", 216, 248, 145, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Label25 = GUICtrlCreateLabel("TIP: Wszystkie wartosci podawaj w mili sekundach! (DELAY)", 8, 328, 314, 19)
GUICtrlSetFont(-1, 8, 400, 0, "Comic Sans MS")
GUICtrlSetColor(-1, 0xFFFF00)
$Button1 = GUICtrlCreateButton("GO!", 376, 224, 225, 97)
$Label20 = GUICtrlCreateLabel("MPCFORUM.PL", 464, 344, 155, 46)
GUICtrlSetFont(-1, 25, 400, 0, "IrisUPC")
GUICtrlSetColor(-1, 0x00FF00)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button1
		$input7=$input7/5
		ShellExecute("http://www.mpcforum.pl")
		Sleep(30000)
		Send("{SPACE}")
		Sleep($input7)
		Send($Input1)
		Sleep($input7)
		Send($input2)
		Sleep($Input7)
		Send($Input3)
		Sleep($Input7)
		Send($Input4)
		Sleep($input7)
		Send($input5)
		Send($Input8)






EndSwitch
WEnd

 

i moje pytanko brzmi czy w auto it można jakoś uruchomić kilka pętli na raz? Jeżeli uruchomicie programik zauważycie że użytkownik podaje odstep pomiędzy wciskaniem jednego klawiszu (jedzenie) i odstęp np. pomiędzy buffami oraz normalnym atakiem. Jak to zrobić by pracowały jednocześnie cztery pętle?

1.Normalny atak z odstępem: $Input7

2.Buff z odstępem: $Input8

3.Leczenie z odstępem: $Input9

4.Ciągłe klikanie [$Input1 do $Input5]

 

jakieś sugestie? Bardzo proszę o pomoc ;]

MPSForum wystartował! ;) Zapraszam na serwer!

Opublikowano

Nie da się użyć dwóch pętli na raz. Jest takie coś jak Timer lub AdlibRegister. Poczytaj w F1.

1352970251-U713459.png

By Maxiu
"Because limits, like fears, are often just an illusion"

Opublikowano

w tutkach sa opisane

alb zrob sobie sam zegar ^^ i

$x = 0

$y=0

While 1

$x += 1

If $x = 100 Then

czas()

$x = 0

EndIf

$y += 1

If $y = 500 Then

czas2()

$y = 0

EndIf

Sleep(1)

WEnd

 

Func czas()

ToolTip('dziala 1 funkcja')

EndFunc ;==>czas

 

Func czas2()

ToolTip('dziala 2 funkcja')

EndFunc ;==>czas

Do
$wiek+=1
Until ŻycieGetMsg() = -3

zbieram +

Opublikowano

Kilka pętli w jednym skrypcie jest nie możliwe ;d

Lepiej użyć kilku skryptów i w każdym dać jedną pętle i masz git ^^

1329036830-U154499.png
Opublikowano

Funkcja _Date_Time_GetTickCount zwraca liczbę czas od odpalenia procka w milisekundach.

 

Poprawny sposób użyca znajdziesz tutaj:

http://www.mpcforum.pl/index.php?showtopic=323475&view=findpost&p=2270592

Ta sygnatura jest pusta.

Opublikowano

_Timer_SetTimer lub AdilbRegister [chyba - pisze z fona]

/ GA-970A-UD3 / FX-6300 / Sapphire Xtreme 5830 / OCZ ZS 550W / Brutus M23 /

| MPC Coders Team | MPC Gold Member | C#, C++, PHP, (N)ASM, AutoIT, Python, Java |

Opublikowano

@?? sa mozliwe!

przeciez ludzie tu wymieniaja sposoby a ty swoje to sorry:P

Do
$wiek+=1
Until ŻycieGetMsg() = -3

zbieram +

Opublikowano

Eeee tam takie sposoby ;d

Są to jakieś wyjścia, ale nie zrobisz dwóch rzeczy jednocześnie w autoicie ;d

1329036830-U154499.png
Opublikowano

@up nie kłam bo zrobi...

#include <Timers.au3>
$gui=GUICreate("")
_Timer_SetTimer($gui,5000,'funkcja')
While 1
Sleep(1111111)
WEnd
Func funkcja($1,$2,$3,$4)
MsgBox(0,'','')
EndFunc

/ GA-970A-UD3 / FX-6300 / Sapphire Xtreme 5830 / OCZ ZS 550W / Brutus M23 /

| MPC Coders Team | MPC Gold Member | C#, C++, PHP, (N)ASM, AutoIT, Python, Java |

Opublikowano

zrobisz bez problemu jak program będzie modułowy np kilka exeków sterowanych głównym programem , niektóre boty tak działają

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Konto

Nawigacja

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.