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

Problem z botem

Rekomendowane odpowiedzi

Opublikowano

Witam mam problem z tym kodem :

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
HotKeySet("{HOME}", "START")
HotKeySet("{END}", "STOP")
HotKeySet("{DEL}", "KONIEC")
$Form1 = GUICreate("NosBot", 384, 72, 217, 124)
$Label1 = GUICtrlCreateLabel("BY MORSISKO", 168, 0, 78, 17)
$Button1 = GUICtrlCreateButton("START", 40, 0, 75, 25)
$Button2 = GUICtrlCreateButton("STOP", 280, 0, 75, 25)
$Button3 = GUICtrlCreateButton("KONIEC", 168, 24, 75, 25)
GUISetState()
#EndRegion ### END Koda GUI section ###

While 1
$Msg = GUIGetMsg()
Switch $Msg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button1
		START()
		Case $GUI_EVENT_CLOSE
Exit
Case $Button2
STOP()
Case $gui_event_close
Exit
Case $Button3
KONIEC()
Case $GUI_EVENT_CLOSE
Exit

EndSwitch
WEnd

Func START()
While 1
	Send ("{SPACE}")
	Sleep (2000)
WEnd
EndFunc
Func STOP()
While 1
	Sleep (1000)
WEnd
EndFunc
Func KONIEC()
Exit
EndFunc

Jest to prosty można powiedzieć "Bot" lecz nie działa on całkowicie to znaczy jest z nim kilka problemów

1.Gdy dam START a potem STOP/KONIEC to bot zacina się i trzeba wciskać ctrl+alt+delete

2.Gdy nie przekształcam go na .exe tylko uruchomie przy kompilacji to działa tak jak trzeba jednak gdy wciskam STOP to się wyłącza a nie pauzuje

Chętnie za pomoc dam plusa :)

Bot do gry NosTale:


[bOT] NosBota 1.3v

Opublikowano
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
HotKeySet("{HOME}", "START")
HotKeySet("{END}", "STOP")
HotKeySet("{DEL}", "KONIEC")
$Form1 = GUICreate("NosBot", 384, 72, 217, 124)
$Label1 = GUICtrlCreateLabel("BY MORSISKO", 168, 0, 78, 17)
$Button1 = GUICtrlCreateButton("START", 40, 0, 75, 25)
$Button2 = GUICtrlCreateButton("STOP", 280, 0, 75, 25)
$Button3 = GUICtrlCreateButton("KONIEC", 168, 24, 75, 25)
GUISetState()
#EndRegion ### END Koda GUI section ###
akcje()
func akcje()
While 1
       $Msg = GUIGetMsg()
       Switch $Msg
               Case $Button1
                       START()

Case $Button2
       STOP()
Case $Button3
       exit
Case $GUI_EVENT_CLOSE ;Po co pisać 4 razy akcje dla gui_event_close?   	
 Exit

       EndSwitch
sleep(10)
WEnd
endfunc
Func START()
       While 1
akcje() 
               Send ("{SPACE}")
               Sleep (2000)
       WEnd
EndFunc
Func STOP()
       While 1
akcje() 
               Sleep (1000)
       WEnd
EndFunc

Edytowane przez Sopelek997

Opublikowano
  • Autor

Teraz nie działa button "START" ani nic się nie dzieje klawiszem home /:

A i jeszcze jedno w tych botach wykrywa wirusa "HootKey" czy coś takiego on jest jakiś niegroźny? Przecież w końcu w moich aplikacjach bym sobie wirusów nie dawał

Bot do gry NosTale:


[bOT] NosBota 1.3v

Opublikowano

Sory, że tak długo, ale musiałem nieźle wysilić umysł, żeby coś wymyśleć. Sleepy były za duże i nie rejestrował przez guigetmsg() (nie wiem dlaczego ;d). Masz tu już działające. Tylko po kliknięciu start a potem stop trzeba poczekać do 4 sek ze względu na sleepy. można to zmienić tylko przez guictrlsetonevent lub guiregistermsg ale na razie nie jest Ci to potrzebne, a ja przyznam się, że sam to niebyt ograniam ;d

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
HotKeySet("{HOME}", "START")
HotKeySet("{END}", "STOP")
HotKeySet("{DEL}", "koniec")
$Form1 = GUICreate("NosBot", 384, 72, 217, 124)
$Label1 = GUICtrlCreateLabel("BY MORSISKO", 168, 0, 78, 17)
$Button1 = GUICtrlCreateButton("START", 40, 0, 75, 25)
$Button2 = GUICtrlCreateButton("STOP", 280, 0, 75, 25)
$Button3 = GUICtrlCreateButton("KONIEC", 168, 24, 75, 25)
GUISetState()
#EndRegion ### END Koda GUI section ###
While 1
akcje()
Sleep(10)
WEnd
Func akcje()
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $Button1
		MsgBox(64, "", "START")
		Do
			START()
		Until GUIGetMsg() <> $nMsg
	Case $Button2
		MsgBox(64, "", "STOP")
		Do
			STOP()
		Until GUIGetMsg() <> $nMsg
	Case $Button3
		Exit
	Case $GUI_EVENT_CLOSE ;Po co pisać 4 razy akcje dla gui_event_close?
		Exit

EndSwitch

EndFunc   ;==>akcje
Func START()

Send("{SPACE}")
Sleep(2000)
EndFunc   ;==>START
Func STOP()

Sleep(1000)

EndFunc   ;==>STOP

Func koniec()
Exit
EndFunc   ;==>koniec

Opublikowano

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
HotKeySet("{HOME}", "START")
HotKeySet("{END}", "STOP")
HotKeySet("{DEL}", "koniec")
$Form1 = GUICreate("NosBot", 384, 72, 217, 124)
$Label1 = GUICtrlCreateLabel("BY MORSISKO", 168, 0, 78, 17)
$Button1 = GUICtrlCreateButton("START", 40, 0, 75, 25)
$Button2 = GUICtrlCreateButton("STOP", 280, 0, 75, 25)
$Button3 = GUICtrlCreateButton("KONIEC", 168, 24, 75, 25)
GUISetState()
#EndRegion ### END Koda GUI section ###
While 1
akcje()
Sleep(10)
WEnd
Func akcje()
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $Button1
		MsgBox(64, "", "START")
		Do
			START()
			$msg = GUIGetMsg()
		Until $msg <> $nMsg and $msg <> 0
	Case $Button2
		MsgBox(64, "", "STOP")   
		Do
			STOP()
       $msg = GUIGetMsg()
		Until $msg <> $nMsg and $msg <> 0
	Case $Button3
		Exit
	Case $GUI_EVENT_CLOSE 
		Exit

EndSwitch

EndFunc   ;==>akcje
Func START()

Send("{SPACE}")
Sleep(2000)
EndFunc   ;==>START
Func STOP()

Sleep(1000)

EndFunc   ;==>STOP

Func koniec()
Exit
EndFunc   ;==>koniec

Teraz działa wystarczyło 1 małą rzecz zmienić.

Jak chcesz żeby hotkeye działały to dorób sobie osobne funkcje, albo coś pokombinuj

Edytowane przez Sopelek997

Opublikowano

@edit

Zrobiłem po swojemu, działa.

 #include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$start = false
opt("Guioneventmode", 1)
#Region ### START Koda GUI section ### Form=
HotKeySet("{HOME}", "START")
HotKeySet("{END}", "STOP")
HotKeySet("{DEL}", "koniec")
$Form1 = GUICreate("NosBot", 384, 72, 217, 124)
$Label1 = GUICtrlCreateLabel("BY MORSISKO", 168, 0, 78, 17)
$Button1 = GUICtrlCreateButton("START", 40, 0, 75, 25)
guictrlsetonevent(-1, "START")
$Button2 = GUICtrlCreateButton("STOP", 280, 0, 75, 25)
guictrlsetonevent(-1, "STOP")
$Button3 = GUICtrlCreateButton("KONIEC", 168, 24, 75, 25)
guictrlsetonevent(-1, "KONIEC") 
GUISetState()
guisetonevent($gui_event_close, "koniec") ;jak chcesz zeby X nie działał to wykasuj to albo daj jako koment



#EndRegion ### END Koda GUI section ###
While 1
While $start = true
	send("{SPACE}")
	sleep(2000)
WEnd
While $start = false

	sleep(500)
	WEnd
   	Sleep(10)
WEnd

Func START()
$start = true
EndFunc   ;==>START
Func STOP()
$start = false
EndFunc   ;==>STOP

Func koniec()
   	Exit
EndFunc   ;==>koniec

Edytowane przez Sopelek997

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.