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

Gui + Autoit3

Rekomendowane odpowiedzi

Opublikowano

Witam, tu Turek28 ;) zostałem zbanowany na 30 dni ale mija już jutro (sobota) ban, ale nie mogę czekać:D

Mój problem jest w tym, że zrobiłem 21 buttonów(w GUI) i wrzuciłem je do autoit3 a działa mi tylko jeden.

Tzn. pod buttonem 1 zrobiłem, że klika kordy warzywa a potem sieje (bot do ZI) tyle, że kordy pola wam nie podam :P

Tak samo pod 2 buttonem ale już on nic nie robi;/ tzn. jak kliknę to mysz nie reaguje, source:

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("ZI bot by Turek28", 223, 301, 192, 124)
$Button1 = GUICtrlCreateButton("1", 0, 0, 41, 41, $WS_GROUP)
$Button2 = GUICtrlCreateButton("2", 56, 0, 41, 41, $WS_GROUP)
$Button3 = GUICtrlCreateButton("3", 112, 0, 41, 41, $WS_GROUP)
$Button4 = GUICtrlCreateButton("4", 168, 0, 41, 41, $WS_GROUP)
$Button5 = GUICtrlCreateButton("5", 0, 56, 41, 41, $WS_GROUP)
$Button6 = GUICtrlCreateButton("6", 56, 56, 41, 41, $WS_GROUP)
$Button7 = GUICtrlCreateButton("7", 112, 56, 41, 41, $WS_GROUP)
$Button8 = GUICtrlCreateButton("8", 168, 56, 41, 41, $WS_GROUP)
$Button9 = GUICtrlCreateButton("9", 0, 112, 41, 41, $WS_GROUP)
$Button10 = GUICtrlCreateButton("10", 56, 112, 41, 41, $WS_GROUP)
$Button11 = GUICtrlCreateButton("11", 112, 112, 41, 41, $WS_GROUP)
$Button12 = GUICtrlCreateButton("12", 168, 112, 41, 41, $WS_GROUP)
$Button13 = GUICtrlCreateButton("13", 0, 168, 41, 41, $WS_GROUP)
$Button14 = GUICtrlCreateButton("14", 56, 168, 41, 41, $WS_GROUP)
$Button15 = GUICtrlCreateButton("15", 112, 168, 41, 41, $WS_GROUP)
$Button16 = GUICtrlCreateButton("16", 168, 168, 41, 41, $WS_GROUP)
$Button17 = GUICtrlCreateButton("17", 0, 224, 41, 41, $WS_GROUP)
$Button18 = GUICtrlCreateButton("18", 56, 224, 41, 41, $WS_GROUP)
$Button19 = GUICtrlCreateButton("19", 112, 224, 41, 41, $WS_GROUP)
$Button20 = GUICtrlCreateButton("20", 168, 224, 41, 41, $WS_GROUP)
$Button21 = GUICtrlCreateButton("Podlej", 8, 272, 193, 25, $WS_GROUP)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button1 |pozycja rosliny 1
		MouseMove (205, 460, 4)
		MouseClick ("")
		|tutaj kordy pola itd.
EndSwitch
WEnd

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button2 |pozycja rosliny 2 itd.
		MouseMove (250, 460, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button3
		MouseMove (290, 460, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button4
		MouseMove (335, 460, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button5
		MouseMove (205, 540, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button6
		MouseMove (250, 540, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button7
		MouseMove (290, 540, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button8
		MouseMove (335, 540, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button9
		MouseMove (205, 610, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button10
		MouseMove (250, 610, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button11
		MouseMove (290, 610, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button12
		MouseMove (335, 610, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button13
		MouseMove (205, 685, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button14
		MouseMove (250, 685, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button15
		MouseMove (290, 685, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button16
		MouseMove (335, 685, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button17
		MouseMove (205, 760, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button18
		MouseMove (250, 760, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button19
		MouseMove (290, 760, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button12
		MouseMove (335, 760, 4)
		MouseClick ("")
EndSwitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button21
		MouseMove (790, 260, 4)|kordy podewania
		MouseClick ("")
EndSwitch[
WEnd

button 1 dziala reszta nie :/ pomocy plx

Opublikowano

wszystko powinno byc w jednym "while"

Czyli:

while 1
$nMsg = GUIGetMsg()
       Switch $nMsg
               Case $GUI_EVENT_CLOSE
                       Exit
                Case $Button2
                       MouseMove (290, 460, 4)
                       MouseClick ("")
               Case $Button3
                       MouseMove (290, 460, 4)
                       MouseClick ("")
Endswitch
wend

 

Sprawdz i powiedz czy dziala ;)

Opublikowano
  • Autor

thx działa a teraz jak zrobić, że jak kliknie warzywo to bd siał na polu? pod każdym

                        MouseMove (290, 460, 4)
                       MouseClick ("")

Wkleić kordy pola?

 

Czy tak

HotKeySet("{Esc}", "stop")

Func stop()
Exit
EndFunc   ;==>stop


$bot = MsgBox(4, "Zielone Imperium bot by Turek28", "Bot do Zielone Imperium by Turek28, kontynuować?")
If $bot = 7 Then
MsgBox(0 + 16, "Zielone Imperium bot by Turek28", "Narka")
Exit
EndIf

MsgBox(0, "Zielone Imperium bot by Turek28", "Bot działa w Mozilli Firefox 3.6.3")
$bot2 = MsgBox(4, "Zielone Imperium bot by Turek28", "Ustawiłeś/aś rozdzielczość na 1280x1024?")
If $bot2 = 7 Then
MsgBox(0 + 16, "Zielone Imperium bot by Turek28", "Narka")
Exit
EndIf

MsgBox(0, "Zielone Imperium bot by Turek28", "Żeby wyjść z bota wciśnij 'Esc'")
MsgBox(0, "Zielone Imperium bot by Turek28", "Wybierz roślinę w grze i kliknij OK")
Sleep(1500)
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("ZI bot by Turek28", 223, 301, 192, 124)
$Button1 = GUICtrlCreateButton("1", 0, 0, 41, 41, $WS_GROUP)
$Button2 = GUICtrlCreateButton("2", 56, 0, 41, 41, $WS_GROUP)
$Button3 = GUICtrlCreateButton("3", 112, 0, 41, 41, $WS_GROUP)
$Button4 = GUICtrlCreateButton("4", 168, 0, 41, 41, $WS_GROUP)
$Button5 = GUICtrlCreateButton("5", 0, 56, 41, 41, $WS_GROUP)
$Button6 = GUICtrlCreateButton("6", 56, 56, 41, 41, $WS_GROUP)
$Button7 = GUICtrlCreateButton("7", 112, 56, 41, 41, $WS_GROUP)
$Button8 = GUICtrlCreateButton("8", 168, 56, 41, 41, $WS_GROUP)
$Button9 = GUICtrlCreateButton("9", 0, 112, 41, 41, $WS_GROUP)
$Button10 = GUICtrlCreateButton("10", 56, 112, 41, 41, $WS_GROUP)
$Button11 = GUICtrlCreateButton("11", 112, 112, 41, 41, $WS_GROUP)
$Button12 = GUICtrlCreateButton("12", 168, 112, 41, 41, $WS_GROUP)
$Button13 = GUICtrlCreateButton("13", 0, 168, 41, 41, $WS_GROUP)
$Button14 = GUICtrlCreateButton("14", 56, 168, 41, 41, $WS_GROUP)
$Button15 = GUICtrlCreateButton("15", 112, 168, 41, 41, $WS_GROUP)
$Button16 = GUICtrlCreateButton("16", 168, 168, 41, 41, $WS_GROUP)
$Button17 = GUICtrlCreateButton("17", 0, 224, 41, 41, $WS_GROUP)
$Button18 = GUICtrlCreateButton("18", 56, 224, 41, 41, $WS_GROUP)
$Button19 = GUICtrlCreateButton("19", 112, 224, 41, 41, $WS_GROUP)
$Button20 = GUICtrlCreateButton("20", 168, 224, 41, 41, $WS_GROUP)
$Button21 = GUICtrlCreateButton("Podlej", 8, 272, 150, 25, $WS_GROUP)
$by = GUICtrlCreateLabel("by", 160, 280, 15, 17)
$Turek28 = GUICtrlCreateLabel("Turek28", 176, 280, 44, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$sianie = MouseMove(785, 264, 1)
MouseClick("")
...kordy pola...

While 1
       $nMsg = GUIGetMsg()
       Switch $nMsg
               Case $GUI_EVENT_CLOSE
                       Exit
               Case $Button1
                       MouseMove (205, 460, 4)
                       MouseClick ("")
					Sleep (1000)
					Case $sianie
			Case $Button2
                       MouseMove (250, 460, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button3
                       MouseMove (290, 460, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button4
                       MouseMove (335, 460, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button5
                       MouseMove (205, 540, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button6
                       MouseMove (250, 540, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button7
                       MouseMove (290, 540, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button8
                       MouseMove (335, 540, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button9
                       MouseMove (205, 610, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button10
                       MouseMove (250, 610, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button11
                       MouseMove (290, 610, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button12
                       MouseMove (335, 610, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button13
                       MouseMove (205, 685, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button14
                       MouseMove (250, 685, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button15
                       MouseMove (290, 685, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button16
                       MouseMove (335, 685, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button17
                       MouseMove (205, 760, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button18
                       MouseMove (250, 760, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button19
                       MouseMove (290, 760, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button20
                       MouseMove (335, 760, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button21
                       MouseMove (790, 260, 4)
                       MouseClick ("")
					Sleep (1000)
	EndSwitch
WEnd

Ale jak tak zrobie to odrazu sieje ;/ jak zrobić żeby po wciśnięciu przycisku siał?

Opublikowano

Nie łączcie MouseMove z MouseClick bo to nie ma żadnego sensu!

Wystarczy samo

MouseClick("left", 123, 456)

zamiast "left" możesz wpisać "right", wtedy kliknie prawy przycisk myszy (są też inne opcje, poczytaj helpa)

zamiast 123, 456 wpisz sobie koordy.

 

i do zmiennej nie można przypisać więcej niż 1 instrukcji, pozatym nie stawiaj enterów gdzie popadnie, bo w AutoIT nie zaznaczasz gdzie się linia kończy (nie ma ; na końcu każdej linii).

[TUT] Full Autoit V3 Tutorial

yo po 1 nie kayloger tylko bot który zapamiętuje hasła -_-

stop1.png

Opublikowano
  • Autor

Jeb4ć to "MouseClick("left", 123, 456)" teraz mi już sie nie chce zmieniać. A możesz mi powiedzieć jak zrobić że jak kliknę button1 to kliknie na warzywo i potem bd siał?

Opublikowano

Nie gram w żadne jebane zielone imperium (ja pierdole kto taki syf wymyśla), więc może sprecyzuj co ma się stać, a nie "kliknie w warzywo i bedzie siał", bo nic z tego nie rozumiem.

[TUT] Full Autoit V3 Tutorial

yo po 1 nie kayloger tylko bot który zapamiętuje hasła -_-

stop1.png

Opublikowano
  • Autor

Oto source mojego bota

HotKeySet("{Esc}", "stop")

Func stop()
Exit
EndFunc   ;==>stop


$bot = MsgBox(4, "Zielone Imperium bot by Turek28", "Bot do Zielone Imperium by Turek28, kontynuować?")
If $bot = 7 Then
MsgBox(0 + 16, "Zielone Imperium bot by Turek28", "Narka")
Exit
EndIf

MsgBox(0, "Zielone Imperium bot by Turek28", "Bot działa w Mozilli Firefox 3.6.3")
$bot2 = MsgBox(4, "Zielone Imperium bot by Turek28", "Ustawiłeś/aś rozdzielczość na 1280x1024?")
If $bot2 = 7 Then
MsgBox(0 + 16, "Zielone Imperium bot by Turek28", "Narka")
Exit
EndIf

MsgBox(0, "Zielone Imperium bot by Turek28", "Żeby wyjść z bota wciśnij 'Esc'")
MsgBox(0, "Zielone Imperium bot by Turek28", "Wybierz roślinę w grze i kliknij OK")
Sleep(1500)
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("ZI bot by Turek28", 223, 301, 192, 124)
$Button1 = GUICtrlCreateButton("1", 0, 0, 41, 41, $WS_GROUP)
$Button2 = GUICtrlCreateButton("2", 56, 0, 41, 41, $WS_GROUP)
$Button3 = GUICtrlCreateButton("3", 112, 0, 41, 41, $WS_GROUP)
$Button4 = GUICtrlCreateButton("4", 168, 0, 41, 41, $WS_GROUP)
$Button5 = GUICtrlCreateButton("5", 0, 56, 41, 41, $WS_GROUP)
$Button6 = GUICtrlCreateButton("6", 56, 56, 41, 41, $WS_GROUP)
$Button7 = GUICtrlCreateButton("7", 112, 56, 41, 41, $WS_GROUP)
$Button8 = GUICtrlCreateButton("8", 168, 56, 41, 41, $WS_GROUP)
$Button9 = GUICtrlCreateButton("9", 0, 112, 41, 41, $WS_GROUP)
$Button10 = GUICtrlCreateButton("10", 56, 112, 41, 41, $WS_GROUP)
$Button11 = GUICtrlCreateButton("11", 112, 112, 41, 41, $WS_GROUP)
$Button12 = GUICtrlCreateButton("12", 168, 112, 41, 41, $WS_GROUP)
$Button13 = GUICtrlCreateButton("13", 0, 168, 41, 41, $WS_GROUP)
$Button14 = GUICtrlCreateButton("14", 56, 168, 41, 41, $WS_GROUP)
$Button15 = GUICtrlCreateButton("15", 112, 168, 41, 41, $WS_GROUP)
$Button16 = GUICtrlCreateButton("16", 168, 168, 41, 41, $WS_GROUP)
$Button17 = GUICtrlCreateButton("17", 0, 224, 41, 41, $WS_GROUP)
$Button18 = GUICtrlCreateButton("18", 56, 224, 41, 41, $WS_GROUP)
$Button19 = GUICtrlCreateButton("19", 112, 224, 41, 41, $WS_GROUP)
$Button20 = GUICtrlCreateButton("20", 168, 224, 41, 41, $WS_GROUP)
$Button21 = GUICtrlCreateButton("Podlej", 8, 272, 150, 25, $WS_GROUP)
$by = GUICtrlCreateLabel("by", 160, 280, 15, 17)
$Turek28 = GUICtrlCreateLabel("Turek28", 176, 280, 44, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While 1
       $nMsg = GUIGetMsg()
       Switch $nMsg
               Case $GUI_EVENT_CLOSE
                       Exit
               Case $Button1
                       MouseMove (205, 460, 4)
                       MouseClick ("")
					Sleep (1000)

	Case $Button2
                       MouseMove (250, 460, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button3
                       MouseMove (290, 460, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button4
                       MouseMove (335, 460, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button5
                       MouseMove (205, 540, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button6
                       MouseMove (250, 540, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button7
                       MouseMove (290, 540, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button8
                       MouseMove (335, 540, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button9
                       MouseMove (205, 610, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button10
                       MouseMove (250, 610, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button11
                       MouseMove (290, 610, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button12
                       MouseMove (335, 610, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button13
                       MouseMove (205, 685, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button14
                       MouseMove (250, 685, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button15
                       MouseMove (290, 685, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button16
                       MouseMove (335, 685, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button17
                       MouseMove (205, 760, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button18
                       MouseMove (250, 760, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button19
                       MouseMove (290, 760, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button20
                       MouseMove (335, 760, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button21
                       MouseMove (790, 260, 4)
                       MouseClick ("")
					Sleep (1000)
	EndSwitch
WEnd

 

I jak kliknę button1 myszka kliknie kordy 205, 460 a potem bd klikać na kordach pola i tak samo z resztą przycisków

 

MouseMove(430, 355, 1)
MouseClick("")
MouseMove(470, 355, 1)
MouseClick("")
MouseMove(510, 355, 1)
MouseClick("")
MouseMove(550, 355, 1)
MouseClick("")
MouseMove(630, 355, 1)
MouseClick("")
MouseMove(670, 355, 1)
MouseClick("")
I tak dalej kordy pola

 

Opublikowano

nastepny z virtual-gierą przegladarkowa, pewnie wychodz z załozenia ze kazdy gra skoro i on gra

 

człowieku jak nie umiesz sam zrobic skryptów w autoit to nawet sie nie zabieraj za to gnębiąc innych , najpierw zasady tworzenie skryptów, funkcji czy gui , a dopiero potem coś zrób bo wymagasz niemozliwego !!

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

Opublikowano
  • Autor

Weź nie gadaj mi tu że to jest nie możliwe skoro sam nie próbujesz? Może i nie jestem w tym najlepszy ale dużo tu do dopisania nie jest ;)

Opublikowano

No ja pierdole... no zjebałbym tego co wstawia taki długi kod w całości.

Mały instruktaż:

Przed twoim zajebiście długim kodem wpisujesz:

[spoiler]

a po nim:

[/spoiler]

Co daje następujący efekt:

 

ZAJEBIŚCIE DŁUGI KOD

 

[TUT] Full Autoit V3 Tutorial

yo po 1 nie kayloger tylko bot który zapamiętuje hasła -_-

stop1.png

Opublikowano
  • Autor

Niech już wam będzie. Jest mouse click left.. a teraz do sedna

 

HotKeySet("{Esc}", "stop")

Func stop()
Exit
EndFunc   ;==>stop


$bot = MsgBox(4, "Zielone Imperium bot by Turek28", "Bot do Zielone Imperium by Turek28, kontynuować?")
If $bot = 7 Then
MsgBox(0 + 16, "Zielone Imperium bot by Turek28", "Narka")
Exit
EndIf

MsgBox(0, "Zielone Imperium bot by Turek28", "Bot działa w Mozilli Firefox 3.6.3")
$bot2 = MsgBox(4, "Zielone Imperium bot by Turek28", "Ustawiłeś/aś rozdzielczość na 1280x1024?")
If $bot2 = 7 Then
MsgBox(0 + 16, "Zielone Imperium bot by Turek28", "Narka")
Exit
EndIf

MsgBox(0, "Zielone Imperium bot by Turek28", "Żeby wyjść z bota wciśnij 'Esc'")
MsgBox(0, "Zielone Imperium bot by Turek28", "Wybierz roślinę w grze i kliknij OK")
Sleep(1500)
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("ZI bot by Turek28", 223, 301, 192, 124)
$Button1 = GUICtrlCreateButton("1", 0, 0, 41, 41, $WS_GROUP)
$Button2 = GUICtrlCreateButton("2", 56, 0, 41, 41, $WS_GROUP)
$Button3 = GUICtrlCreateButton("3", 112, 0, 41, 41, $WS_GROUP)
$Button4 = GUICtrlCreateButton("4", 168, 0, 41, 41, $WS_GROUP)
$Button5 = GUICtrlCreateButton("5", 0, 56, 41, 41, $WS_GROUP)
$Button6 = GUICtrlCreateButton("6", 56, 56, 41, 41, $WS_GROUP)
$Button7 = GUICtrlCreateButton("7", 112, 56, 41, 41, $WS_GROUP)
$Button8 = GUICtrlCreateButton("8", 168, 56, 41, 41, $WS_GROUP)
$Button9 = GUICtrlCreateButton("9", 0, 112, 41, 41, $WS_GROUP)
$Button10 = GUICtrlCreateButton("10", 56, 112, 41, 41, $WS_GROUP)
$Button11 = GUICtrlCreateButton("11", 112, 112, 41, 41, $WS_GROUP)
$Button12 = GUICtrlCreateButton("12", 168, 112, 41, 41, $WS_GROUP)
$Button13 = GUICtrlCreateButton("13", 0, 168, 41, 41, $WS_GROUP)
$Button14 = GUICtrlCreateButton("14", 56, 168, 41, 41, $WS_GROUP)
$Button15 = GUICtrlCreateButton("15", 112, 168, 41, 41, $WS_GROUP)
$Button16 = GUICtrlCreateButton("16", 168, 168, 41, 41, $WS_GROUP)
$Button17 = GUICtrlCreateButton("17", 0, 224, 41, 41, $WS_GROUP)
$Button18 = GUICtrlCreateButton("18", 56, 224, 41, 41, $WS_GROUP)
$Button19 = GUICtrlCreateButton("19", 112, 224, 41, 41, $WS_GROUP)
$Button20 = GUICtrlCreateButton("20", 168, 224, 41, 41, $WS_GROUP)
$Button21 = GUICtrlCreateButton("Podlej", 8, 272, 150, 25, $WS_GROUP)
$by = GUICtrlCreateLabel("by", 160, 280, 15, 17)
$Turek28 = GUICtrlCreateLabel("Turek28", 176, 280, 44, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While 1
       $nMsg = GUIGetMsg()
       Switch $nMsg
               Case $GUI_EVENT_CLOSE
                       Exit
               Case $Button1
                       MouseClick("left",205, 460, 4)
					Sleep (1000)
			Case $Button2
                       MouseClick("left",250, 460, 4)
					Sleep (1000)
               Case $Button3
                       MouseClick("left",290, 460, 4)
					Sleep (1000)
               Case $Button4
                       MouseClick("left",335, 460, 4)
					Sleep (1000)
               Case $Button5
                       MouseClick("left",205, 540, 4)
					Sleep (1000)
               Case $Button6
                       MouseClick("left",250, 540, 4)
					Sleep (1000)
               Case $Button7
                       MouseClick("left",290, 540, 4)
					Sleep (1000)
               Case $Button8
                       MouseClick("left",335, 540, 4)
					Sleep (1000)
               Case $Button9
                       MouseClick("left",205, 610, 4)
					Sleep (1000)
               Case $Button10
                       MouseClick("left",250, 610, 4)
					Sleep (1000)
               Case $Button11
                       MouseClick("left",290, 610, 4)
					Sleep (1000)
               Case $Button12
                       MouseClick("left",335, 610, 4)
               Case $Button13
                       MouseClick("left",205, 685, 4)
					Sleep (1000)
               Case $Button14
                       MouseClick("left",250, 685, 4)
					Sleep (1000)
               Case $Button15
                       MouseClick("left",290, 685, 4)
					Sleep (1000)
               Case $Button16
                       MouseClick("left",335, 685, 4)
					Sleep (1000)
               Case $Button17
                       MouseClick("left",205, 760, 4)
					Sleep (1000)
               Case $Button18
                       MouseClick("left",250, 760, 4)
					Sleep (1000)
               Case $Button19
                       MouseClick("left",290, 760, 4)
                       MouseClick ("")
					Sleep (1000)
               Case $Button20
                       MouseClick("left",335, 760, 4)
					Sleep (1000)
               Case $Button21
                       MouseClick("left",790, 260, 4)
                       Sleep (1000)
	EndSwitch
WEnd

 

I jak zrobić, że gdy kliknę button1 to klika kordy 205, 460 a potem kordy pola? i tak samo z resztą przycisków?

Opublikowano

pisz co ma robic dla każdego przycisku po kolei, ale wygodniejsze bylo by zrobienie funkcji i wykonanie ich

 

jakbys nie zrozumial :

    
; poczatek kodu 
        Case $Button1
                       MouseClick("left",205, 460, 4)
                                               Sleep (1000)
                       MouseClick("left",205, 460, 4)
                                               Sleep (1000)
                       MouseClick("left",205, 460, 4)
                                               Sleep (1000)
                       MouseClick("left",205, 460, 4)
                                               Sleep (1000)
                       MouseClick("left",205, 460, 4)
                                               Sleep (1000)
                               Case $Button2
                       MouseClick("left",250, 460, 4)
                                               Sleep (1000)
                       MouseClick("left",250, 460, 4)
                                               Sleep (1000)
                       MouseClick("left",250, 460, 4)
                                               Sleep (1000)
                       MouseClick("left",250, 460, 4)
                                               Sleep (1000)
               Case $Button3
; .... itd... itp 

 

 

tumasz to swoje gui z funkcjami

 

 

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("ZI bot by Turek28", 224, 302, 472, 216)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1Minimize")
GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form1Maximize")
GUISetOnEvent($GUI_EVENT_RESTORE, "Form1Restore")
$Button1 = GUICtrlCreateButton("1", 0, 0, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button1Click")
$Button2 = GUICtrlCreateButton("2", 56, 0, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button2Click")
$Button3 = GUICtrlCreateButton("3", 112, 0, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button3Click")
$Button4 = GUICtrlCreateButton("4", 168, 0, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button4Click")
$Button5 = GUICtrlCreateButton("5", 0, 56, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button5Click")
$Button6 = GUICtrlCreateButton("6", 56, 56, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button6Click")
$Button7 = GUICtrlCreateButton("7", 112, 56, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button7Click")
$Button8 = GUICtrlCreateButton("8", 168, 56, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button8Click")
$Button9 = GUICtrlCreateButton("9", 0, 112, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button9Click")
$Button10 = GUICtrlCreateButton("10", 56, 112, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button10Click")
$Button11 = GUICtrlCreateButton("11", 112, 112, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button11Click")
$Button12 = GUICtrlCreateButton("12", 168, 112, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button12Click")
$Button13 = GUICtrlCreateButton("13", 0, 168, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button13Click")
$Button14 = GUICtrlCreateButton("14", 56, 168, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button14Click")
$Button15 = GUICtrlCreateButton("15", 112, 168, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button15Click")
$Button16 = GUICtrlCreateButton("16", 168, 168, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button16Click")
$Button17 = GUICtrlCreateButton("17", 0, 224, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button17Click")
$Button18 = GUICtrlCreateButton("18", 56, 224, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button18Click")
$Button19 = GUICtrlCreateButton("19", 112, 224, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button19Click")
$Button20 = GUICtrlCreateButton("20", 168, 224, 41, 41, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button20Click")
$Button21 = GUICtrlCreateButton("Podlej", 8, 272, 150, 25, $WS_GROUP)
GUICtrlSetOnEvent(-1, "Button21Click")
$by = GUICtrlCreateLabel("by", 160, 280, 15, 17)
GUICtrlSetOnEvent(-1, "byClick")
$Turek28 = GUICtrlCreateLabel("Turek28", 176, 280, 44, 17)
GUICtrlSetOnEvent(-1, "Turek28Click")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
Sleep(100)
WEnd

Func Button10Click()
; tu wpisujesz co robi jak wcisnie 1button 10 
EndFunc

Func Button11Click()
; tu wpisujesz co robi jak wcisnie 11
EndFunc

Func Button12Click()

EndFunc

Func Button13Click()

EndFunc

Func Button14Click()

EndFunc

Func Button15Click()

EndFunc

Func Button16Click()

EndFunc

Func Button17Click()

EndFunc

Func Button18Click()

EndFunc

Func Button19Click()

EndFunc

Func Button1Click()

EndFunc

Func Button20Click()

EndFunc

Func Button21Click()

EndFunc

Func Button2Click()
; tu wpisujesz co robi jak wcisnie 2
EndFunc

Func Button3Click()

EndFunc

Func Button4Click()

EndFunc

Func Button5Click()

EndFunc

Func Button6Click()

EndFunc

Func Button7Click()

EndFunc

Func Button8Click()

EndFunc

Func Button9Click()

EndFunc

Func byClick()

EndFunc

Func Form1Close()

EndFunc

Func Form1Maximize()

EndFunc

Func Form1Minimize()

EndFunc

Func Form1Restore()

EndFunc

Func Turek28Click()

EndFunc

 

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

Opublikowano

to wszystko robi Kada tylko zaznaczyc w opcjach generatora kodu : generuj kod OnEvent i generuj zdarzenia dla...

 

śmieciowe wpisy typu : $WS_GROUP najlepiej usunąć bo nieprzydatne czyba ze formatujesz okienka to inne zostawiasz

 

$Button1 = GUICtrlCreateButton("1", 0, 0, 41, 41, $WS_GROUP)
; zamieniasz  na 
$Button1 = GUICtrlCreateButton("1", 0, 0, 41, 41)

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

Opublikowano

@up:

$WS_GROUP "śmieciowy" atrybut? to zrób okienko z tabami bez tego...

 

z helpa:

Specifies the first control of a group of controls. The group consists of this first control and all controls defined after it, up to the next control with the WS_GROUP style.

PL:

Określa pierwszą kontrolkę z grupy. Grupa zawiera tą i wszystkie inne kontrolki zdefiniowane po niej, aż do następnej kontrolki z atrybutem $WS_GROUP.

 

EDIT:

To może samo jakoś dodaje potem przy kompilacji, albo ja źle zrozumiałem. W sumie może to tylko robi takie drzewko w KODA.

Edytowane przez Maciek134

[TUT] Full Autoit V3 Tutorial

yo po 1 nie kayloger tylko bot który zapamiętuje hasła -_-

stop1.png

Opublikowano

hmm, nie uzywam i zawsze kasuje

a z tabami nie mam problemów mimo braku

 

up : Macieju,o się odnosi do TAB jako współpracy przycisków z tabowaniem ( wciskaniem TAB ze skacze po opcjach ) , a nie tworzenia tabów w gui. mam nadzieję ze tak myślisz

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

Opublikowano

jak można zrobić że np jak w main menu lub liście w kodzie zrobić że wpisze jakis tekst kilka razy i będie rozsuwane i jak coś wybiorę i przycisnę button to to zrobi chodzi mi o sam kod na to menu i jak przypisać do buttona

i

Portable AutoIt

Można zgrać na pamięć przenośną i pisać skrypty gdzie się chce

 

Kalkulator

Zrobiłem go w celach ćwiczebno-naukowych. Zezwalam na edytowanie kodu

Download: http://rapidshare.com/files/420169333/Kalkulator.rar

Skan: http://virusscan.jotti.org/pl/scanresult/8eab82267fa3b9f421a94d0522e90376aff38c2f

Screen

 

2pyotar.jpg

 

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.

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.