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

[Pytanie] Pomoc Przy Gui


Rekomendowane odpowiedzi

Opublikowano

Czeiśc jestem tutai nowy, wiec nie wiem czy dobry dział.

 

więc tak mam takie GUI:

$Form1 = GUICreate("Bot by Maniek do DBKO", 289, 162, 193, 125)
$Button1 = GUICtrlCreateButton("Healing", 16, 16, 113, 49, 0)
$Button2 = GUICtrlCreateButton("Spells", 160, 16, 113, 49, 0)
$Button3 = GUICtrlCreateButton("Button1", 18, 89, 113, 49, 0)
$Button4 = GUICtrlCreateButton("Button1", 163, 91, 113, 49, 0)
GUISetState(@SW_SHOW)

 

i teraz chciałbym zeby pod button1, jak się kliknie wyswietliło się nowe okno z takim GUI:

$Form1 = GUICreate("Bot do DBKO", 233, 432, 194, 126)
$Button1 = GUICtrlCreateButton("spell caster", 8, 8, 75, 25, $WS_GROUP)
$Input1 = GUICtrlCreateInput("czar", 16, 40, 121, 21)
$Input2 = GUICtrlCreateInput("mana", 16, 64, 121, 21)
$Button2 = GUICtrlCreateButton("anty-idle", 8, 96, 75, 25, $WS_GROUP)
$Input3 = GUICtrlCreateInput("czas", 16, 128, 121, 21)
$Button3 = GUICtrlCreateButton("jedzienie fooda", 8, 160, 75, 25, $WS_GROUP)
$Input4 = GUICtrlCreateInput("guzik", 16, 192, 121, 21)
$Input5 = GUICtrlCreateInput("czas", 16, 216, 121, 21)
$Button4 = GUICtrlCreateButton("Wylacz", 88, 8, 75, 25, $WS_GROUP)
$Button5 = GUICtrlCreateButton("Wylacz", 88, 96, 75, 25, $WS_GROUP)
$Button6 = GUICtrlCreateButton("Wylacz", 88, 160, 75, 25, $WS_GROUP)
$Button8 = GUICtrlCreateButton("Wylacz", 88, 312, 75, 25, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("0", 150, 248, 36, 17)
$Label2 = GUICtrlCreateLabel("czas od wlaczenia bota", 16, 248, 4, 4)
$Label4 = GUICtrlCreateLabel("0", 112, 280, 46, 17)
$Label5 = GUICtrlCreateLabel("czas ile działa bot", 16, 248, 124, 17)
$Label3 = GUICtrlCreateLabel("czas", 16, 280, 68, 17)
$Button7 = GUICtrlCreateButton("Charge enable", 16, 312, 73, 33, $WS_GROUP)
$Input6 = GUICtrlCreateInput("charge", 16, 352, 121, 21)
$Input7 = GUICtrlCreateInput("mana", 16, 376, 121, 21)

 

i nie wiem jak to ze sobą połączyć, może ktoś pomóc ? Dokładnie to chodzi, gdy klikne healing otwiera sie nowe okno.

Opublikowano

Czeiśc jestem tutai nowy, wiec nie wiem czy dobry dział.

 

więc tak mam takie GUI:

$Form1 = GUICreate("Bot by Maniek do DBKO", 289, 162, 193, 125)

$Button1 = GUICtrlCreateButton("Healing", 16, 16, 113, 49, 0)

$Button2 = GUICtrlCreateButton("Spells", 160, 16, 113, 49, 0)

$Button3 = GUICtrlCreateButton("Button1", 18, 89, 113, 49, 0)

$Button4 = GUICtrlCreateButton("Button1", 163, 91, 113, 49, 0)

GUISetState(@SW_SHOW)

 

i teraz chciałbym zeby pod button1, jak się kliknie wyswietliło się nowe okno z takim GUI:

$Form1 = GUICreate("Bot do DBKO", 233, 432, 194, 126)

$Button1 = GUICtrlCreateButton("spell caster", 8, 8, 75, 25, $WS_GROUP)

$Input1 = GUICtrlCreateInput("czar", 16, 40, 121, 21)

$Input2 = GUICtrlCreateInput("mana", 16, 64, 121, 21)

$Button2 = GUICtrlCreateButton("anty-idle", 8, 96, 75, 25, $WS_GROUP)

$Input3 = GUICtrlCreateInput("czas", 16, 128, 121, 21)

$Button3 = GUICtrlCreateButton("jedzienie fooda", 8, 160, 75, 25, $WS_GROUP)

$Input4 = GUICtrlCreateInput("guzik", 16, 192, 121, 21)

$Input5 = GUICtrlCreateInput("czas", 16, 216, 121, 21)

$Button4 = GUICtrlCreateButton("Wylacz", 88, 8, 75, 25, $WS_GROUP)

$Button5 = GUICtrlCreateButton("Wylacz", 88, 96, 75, 25, $WS_GROUP)

$Button6 = GUICtrlCreateButton("Wylacz", 88, 160, 75, 25, $WS_GROUP)

$Button8 = GUICtrlCreateButton("Wylacz", 88, 312, 75, 25, $WS_GROUP)

$Label1 = GUICtrlCreateLabel("0", 150, 248, 36, 17)

$Label2 = GUICtrlCreateLabel("czas od wlaczenia bota", 16, 248, 4, 4)

$Label4 = GUICtrlCreateLabel("0", 112, 280, 46, 17)

$Label5 = GUICtrlCreateLabel("czas ile działa bot", 16, 248, 124, 17)

$Label3 = GUICtrlCreateLabel("czas", 16, 280, 68, 17)

$Button7 = GUICtrlCreateButton("Charge enable", 16, 312, 73, 33, $WS_GROUP)

$Input6 = GUICtrlCreateInput("charge", 16, 352, 121, 21)

$Input7 = GUICtrlCreateInput("mana", 16, 376, 121, 21)

 

 

i nie wiem jak to ze sobą połączyć, może ktoś pomóc ? Dokładnie to chodzi, gdy klikne healing otwiera sie nowe okno.

Spox

Wystarczy na drugie GUI dać staty @SW_HIDE

GuiCTRLsetOnEvent +funkcja dająca staty @sw_show 2 GUI a @sw_hide 1 GUI :P

Pod F1 masz all

za duża sygnatura

Opublikowano

nadal zbytnio nie rozumiem, mam autoit od wczoraj i jescze nie ogarniam, mógłbyś napisac jak to powinno dac, taki gotowiec jak by. Będę bardzo wdzięczny

Opublikowano

nadal zbytnio nie rozumiem, mam autoit od wczoraj i jescze nie ogarniam, mógłbyś napisac jak to powinno dac, taki gotowiec jak by. Będę bardzo wdzięczny

Przeanalizuj ...

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Opt("GUIOnEventMode",1)
$Form1 = GUICreate("Klik", 356, 168, 192, 124)
$Button1 = GUICtrlCreateButton("Klik", 80, 56, 193, 49, $WS_GROUP)
GUICtrlSetBkColor(-1, 0x0000FF)
GUICtrlSetOnEvent($Button1,"x")
GUISetState(@SW_SHOW)

$Form2 = GUICreate("!", 256, 86, 192, 124)
$Button2 = GUICtrlCreateButton("Wyjdź", 48, 24, 137, 33, $WS_GROUP)
GUICtrlSetBkColor(-1, 0xFF0000)
GuiCtrlSetOnEvent($Button2,"ex")
GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###

func ex()
Exit
EndFunc
func x()

GUISetState(@SW_HIDE,$Form1)
GuiSetState(@SW_SHOW,$FORM2)
EndFunc
While 1
sleep(100)
WEnd

Musisz w tej funkcji dać koniecznie Opt("GUIOnEventMode",1) !

za duża sygnatura

Opublikowano

Łap,i Daj -,bo ci Gotowca daje...

 

 

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=

$Form1 = GUICreate("Bot by Maniek do DBKO", 289, 162, 193, 125)
$Button1 = GUICtrlCreateButton("Healing", 16, 16, 113, 49, 0)
$Button2 = GUICtrlCreateButton("Spells", 160, 16, 113, 49, 0)
$Button3 = GUICtrlCreateButton("Button1", 18, 89, 113, 49, 0)
$Button4 = GUICtrlCreateButton("Button1", 163, 91, 113, 49, 0)
GUISetState(@SW_SHOW)

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
	Case $Button1
$Form1 = GUICreate("Bot do DBKO", 233, 432, 194, 126)


$Button1 = GUICtrlCreateButton("spell caster", 8, 8, 75, 25, $WS_GROUP)
$Input1 = GUICtrlCreateInput("czar", 16, 40, 121, 21)
$Input2 = GUICtrlCreateInput("mana", 16, 64, 121, 21)
$Button2 = GUICtrlCreateButton("anty-idle", 8, 96, 75, 25, $WS_GROUP)
$Input3 = GUICtrlCreateInput("czas", 16, 128, 121, 21)
$Button3 = GUICtrlCreateButton("jedzienie fooda", 8, 160, 75, 25, $WS_GROUP)
$Input4 = GUICtrlCreateInput("guzik", 16, 192, 121, 21)
$Input5 = GUICtrlCreateInput("czas", 16, 216, 121, 21)
$Button4 = GUICtrlCreateButton("Wylacz", 88, 8, 75, 25, $WS_GROUP)
$Button5 = GUICtrlCreateButton("Wylacz", 88, 96, 75, 25, $WS_GROUP)
$Button6 = GUICtrlCreateButton("Wylacz", 88, 160, 75, 25, $WS_GROUP)
$Button8 = GUICtrlCreateButton("Wylacz", 88, 312, 75, 25, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("0", 150, 248, 36, 17)
$Label2 = GUICtrlCreateLabel("czas od wlaczenia bota", 16, 248, 4, 4)
$Label4 = GUICtrlCreateLabel("0", 112, 280, 46, 17)
$Label5 = GUICtrlCreateLabel("czas ile działa bot", 16, 248, 124, 17)
$Label3 = GUICtrlCreateLabel("czas", 16, 280, 68, 17)
$Button7 = GUICtrlCreateButton("Charge enable", 16, 312, 73, 33, $WS_GROUP)
$Input6 = GUICtrlCreateInput("charge", 16, 352, 121, 21)
$Input7 = GUICtrlCreateInput("mana", 16, 376, 121, 21)
GUISetState(@SW_SHOW)




EndSwitch
WEnd

Opublikowano

Ja klikniesz Healing to to "pierwotne" wcale się nie zamknie. O co ci chodzi?

 

Poza tym ten source jest zryty jak czarnobyl 72h po awarii

czwartkowy posmak w ustach przypomina
że nie ma sensu owijać w bawełnę
zmarzniętego truchła

przez latarnię ktoś przerzucił sznur
cumuje statek w bezpieczną przystań

czuję jak na skroniach zasycha sól
...

Opublikowano

dobra moze ja źle tlumacze albo wy mnie nie rozumiecie. Zmieniam zdanie. potrzebuje GUI w GUI np, klikam healing i poszerza mi sie GUI klikam SPELL znika mi to poszerzone gui healing i pojawia sie poszerzone GUI spell

Opublikowano

masz 100% racji, kadafi musi odejść

liczylem na barce lecz ona niemogla wygrac.

Przez kibicow ktorzy przy rzutach roznych wolnych swiecili w messiego laserami

Opublikowano

Emilo, dzieki za gotowca poszedł PLUS, mam jeszcze jedno pytanko. Otwieram 1 gui tam gdzie healing i otwieram drugie gui, i gdy drugie gui zamkne zamyka mi sie wszystko. Jest jakas rada? wydaje mi sie ze to bedzie coś tutai

Switch $nMsg

Case $GUI_EVENT_CLOSE

Exit

Opublikowano

guidelete or guisetstate sw hide

liczylem na barce lecz ona niemogla wygrac.

Przez kibicow ktorzy przy rzutach roznych wolnych swiecili w messiego laserami

Opublikowano

Dobrze ci się wydaje. A kod emil'a jest błędny.

 

 

1 = returns an array containing the event and extended information.

 

When using the "advanced" parameter the information is returned in an array with extended information:

$array[0] = 0 or Event ID or Control ID

$array[1] = The window handle the event is from

$array[2] = The control handle the event is from (if applicable)

$array[3] = The current X position of the mouse cursor (relative to the GUI window)

$array[4] = The current Y position of the mouse cursor (relative to the GUI window)

 

A więc:

 

$msg = ggm
Switch $msg[0]
  Case -3 ; exit code 
     Switch $msg[1]
        Case $hWnd_parent
           Exit
        Case $hWnd_child
           GuiSetState(@SW_Hide, $hWnd_child)
     EndSwitch
EndSwitch

Ta sygnatura jest pusta.

Opublikowano

@up:

I oczywiście koleś znów nic nie zrozumie, bo pewnie po angielsku nic nie czai więc tekstu z helpa nie ogarnie (do tego pewnie wklei to wszystko i się będzie dziwił że mu nie działa). Żeby nie było wątpliwości:

Chodziło o to, że GuiGetMsg(tutaj musi być 1 jeśli ma być advenced) może zwracać więcej informacji, między innymi uchwyt okna na którym zdarzenie zostało wywołane (tu już pewnie nie ogarniasz ale co tam). Dzięki temu możesz sprawdzić na którym oknie wciśnięty był X i zamknąć tylko te, a nie wszystkie okna.

 

[TUT] Full Autoit V3 Tutorial

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

stop1.png

Opublikowano

Cześć, robie bota do Tibi i mam pewien problem. Zrobiłem różne GUI i nie wiem jak podpiac buttony. Mógł byś Pomóc ? Wyśle ci cały sourc.

Jest tak odpalam "bota" wchodze w spells i żaden button nie chce mi działać...

 

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <nomad.au3>
#include <Timers.au3>
$l = _Timer_Init()
#Region ### START Koda GUI section ### Form=

$Form1 = GUICreate("Bot by Maniek do DBKO", 297, 193, 235, 181)
$Button1 = GUICtrlCreateButton("Healing", 16, 40, 113, 49, 0)
$Button2 = GUICtrlCreateButton("Spells", 160, 40, 113, 49, 0)
$Button3 = GUICtrlCreateButton("Button1", 18, 113, 113, 49, 0)
$Button4 = GUICtrlCreateButton("Button1", 163, 115, 113, 49, 0)
$Label3 = GUICtrlCreateLabel("czas", 20, 6, 76, 17)
$Label4 = GUICtrlCreateLabel("0", 221, 8, 46, 17)
GUISetState(@SW_SHOW)

_Timer_SetTimer($form1,1,"godzina")
func godzina($1,$2,$3,$4)
$pzpjo = Stringformat("%02d:%02d:%02d", @hour, @min, @sec)
$pzp = guictrlread($label4)
if $pzp = $pzpjo Then

Else
guictrlsetdata($label4,Stringformat("%02d:%02d:%02d", @hour, @min, @sec))
EndIf
EndFunc

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button2
$Form2 = GUICreate("Spell Caster", 198, 344, 196, 128)
$Button10 = GUICtrlCreateButton("Enable", 8, 8, 75, 25)
$Input10 = GUICtrlCreateInput("Spell", 8, 40, 121, 21)
$Input11 = GUICtrlCreateInput("Mana", 8, 64, 121, 21)
$Button11 = GUICtrlCreateButton("anty-idle", 8, 96, 75, 25, $WS_GROUP)
$Input12 = GUICtrlCreateInput("Time", 8, 128, 121, 21)
$Button12 = GUICtrlCreateButton("Food", 8, 160, 75, 25, $WS_GROUP)
$Input13 = GUICtrlCreateInput("guzik", 8, 192, 121, 21)
$Input14 = GUICtrlCreateInput("Time", 8, 216, 121, 21)
$Button13 = GUICtrlCreateButton("Disable", 88, 8, 75, 25, $WS_GROUP)
$Button14 = GUICtrlCreateButton("Disable", 88, 96, 75, 25, $WS_GROUP)
$Button15 = GUICtrlCreateButton("Disable", 88, 160, 75, 25, $WS_GROUP)
$Button16 = GUICtrlCreateButton("Disable", 88, 248, 75, 25, $WS_GROUP)
$Label2 = GUICtrlCreateLabel("czas od wlaczenia bota", 16, 248, 4, 4)
$Button17 = GUICtrlCreateButton("Charge enable", 8, 248, 73, 25, $WS_GROUP)
$Input15 = GUICtrlCreateInput("charge", 8, 280, 121, 21)
$Input16 = GUICtrlCreateInput("mana", 8, 304, 121, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
EndSwitch
WEnd
guictrlsetstate($Button13,$gui_disable)
guictrlsetstate($Button14,$gui_disable)
guictrlsetstate($Button15,$gui_disable)
guictrlsetstate($Button16,$gui_disable)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit

case $Button10
guictrlsetstate($Button10,$gui_disable)
guictrlsetstate($Button13,$gui_enable)
global $pid = ProcessExists("DB Kai Online v4.0.exe")
$memaaa = _MemoryOpen($pid)
$id1 = _Timer_SetTimer($form2,500,"spell")

case $Button11
guictrlsetstate($Button11,10000000)
guictrlsetstate($Button14,64)
$ff = guictrlread($input3)
$ff *= 1000
$id2 = _Timer_SetTimer($form1,$ff,"afk")

case $Button12
guictrlsetstate($button12,128)
guictrlsetstate($button15,64)
$ks = guictrlread($Input4)
$ksks = guictrlread($Input5)
$id3 = _Timer_SetTimer($form1,$ksks,"food")

case $Button13
_Timer_KillTimer($form1,$id1)
guictrlsetstate($Button10,123)
guictrlsetstate($Button13,64)
case $Button14
_Timer_KillTimer($form1,$id2)
guictrlsetstate($button5,128)
guictrlsetstate($button2,64)
case $Button15
_Timer_KillTimer($form1,$id3)
guictrlsetstate($button6,128)
guictrlsetstate($button3,64)
case $Button16
_Timer_KillTimer($form1,$id4)
guictrlsetstate($Button8,123)
guictrlsetstate($Button7,64)

case $Button17
guictrlsetstate($Button7,$gui_disable)
guictrlsetstate($Button8,$gui_enable)
global $pid = ProcessExists("DB Kai Online v4.0.exe")
$memaaa = _MemoryOpen($pid)
$id4 = _Timer_SetTimer($form1,500,"charg")


EndSwitch
WEnd

func spell($1,$2,$3,$4)
$kk = guictrlread($input11)
$mem = _MemoryRead(0x00635EF0,$memaaa)
if $mem >= $kk Then
controlsend("DB Kai Online v4.0","","",guictrlread($input10))
controlsend("DB Kai Online v4.0","","","{enter}")
EndIf
EndFunc

func afk($1,$2,$3,$4)
controlsend("DB Kai Online v4.0","","","{ctrldown}{down}{ctrlup}")
controlsend("DB Kai Online v4.0","","","{ctrldown}{up}{ctrlup}")
controlsend("DB Kai Online v4.0","","","{ctrldown}{left}{ctrlup}")
controlsend("DB Kai Online v4.0","","","{ctrldown}{right}{ctrlup}")
EndFunc

func food($1,$2,$3,$4)
$ksks *= 1000
controlsend("DB Kai Online v4.0","","",$ks)
EndFunc

func charg($1,$2,$3,$4)
$kk = guictrlread($input7)
$mem = _MemoryRead(0x00635EF0,$memaaa)
if $mem <= $kk Then
controlsend("DB Kai Online v4.0","","",guictrlread($input6))
controlsend("DB Kai Online v4.0","","","{enter}")
EndIf
EndFunc 

Opublikowano

lepiej spytaj autora , bo na pewno ty nim nie jesteś

zresztą jak zobaczy nie będzie zadowolony że jego prace podpisujesz jako swoją!

 

pisanie i poprawianie bez senu i znajomości składni tez nie pomoże , masz dwie pętle a w autoit moze działać tylko jedna

 

dałem kod do tego, to inaczej open source więc pozwalam na edycje :P lecz miło by było gdyby dodał mnie do creditsów

If you = stupid then

insert(foot.in.your.ass)

end if

licznik-54-96732-stat.png

Opublikowano

to kod jacka~:P

masz tyle tutkow tutaj napewno znajdziesz jak "dorobic gui do cudzego kodu" :)

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

zbieram +

Opublikowano

jak udospepnił na you tubu poradnik jak napisac bota i dał cały sourc to chyba mozna edytować dowolnie ?

 

 

 

To nie rozumiem ogladasz tutka w ktorym mowi krok po kroku co robi a ty nie umiesz zrobic innego gui???

zart jakis...

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

zbieram +

Opublikowano

jack chujowo tłumaczy.

liczylem na barce lecz ona niemogla wygrac.

Przez kibicow ktorzy przy rzutach roznych wolnych swiecili w messiego laserami

Opublikowano

Nie zbyt mnie interesuje czy Jack tłumaczy dobrze czy tez źle. Potrzebuje pomocy. Ktoś mi pomoże jak zrobić to bo while mi nie działa nie wiem jakiej pętli do tego najlepiej uzyć, tak jak napisałem wcześniej potrzebuje petli do otwarcia GUI w GUI + zeby mozna było jakos buttony podpisywać. Bo jeśli robie tak jak wyżej to dwa WHILE nie chcą mi działac a jak zrobie jedno to moge dodawać buttony tylko do 1 gui w drugim juz mi błąd wywala. Nie wiem czy zrozumiale napisałem może pokaże.

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 335, 100, 192, 125)
$Button1 = GUICtrlCreateButton("Button1", 16, 16, 129, 49, 0)
$Button2 = GUICtrlCreateButton("Button1", 167, 16, 129, 49, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While -3
$nMsg = GUIGetMsg()
Switch $nMsg
	Case $GUI_EVENT_CLOSE
		Exit
		Case $Button2

#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("Bot do DB", 190, 311, 192, 124)
$Button10 = GUICtrlCreateButton("spell caster", 8, 8, 75, 25, $WS_GROUP)
$Input10 = GUICtrlCreateInput("czar", 16, 40, 121, 21)
$Input11 = GUICtrlCreateInput("mana", 16, 64, 121, 21)
$Button11 = GUICtrlCreateButton("anty-idle", 8, 96, 75, 25, $WS_GROUP)
$Input12 = GUICtrlCreateInput("czas", 16, 128, 121, 21)
$Button12 = GUICtrlCreateButton("jedzienie fooda", 8, 160, 75, 25, $WS_GROUP)
$Input13 = GUICtrlCreateInput("guzik", 16, 192, 121, 21)
$Input14 = GUICtrlCreateInput("czas", 16, 216, 121, 21)
$Button13 = GUICtrlCreateButton("Wylacz", 88, 8, 75, 25, $WS_GROUP)
$Button14 = GUICtrlCreateButton("Wylacz", 88, 96, 75, 25, $WS_GROUP)
$Button15 = GUICtrlCreateButton("Wylacz", 88, 160, 75, 25, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("0", 150, 248, 36, 17)
$Label2 = GUICtrlCreateLabel("czas od wlaczenia bota", 16, 248)
$Label3 = GUICtrlCreateLabel("godzina", 16, 280)
$Label4 = GUICtrlCreateLabel("0", 112, 280, 46, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Case $Button1
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 236, 114, 193, 125)
$Button20 = GUICtrlCreateButton("Button1", 8, 8, 105, 25, 0)
$Button21 = GUICtrlCreateButton("Button1", 119, 8, 105, 25, 0)
$Input21 = GUICtrlCreateInput("Input1", 16, 48, 153, 21)
$Input22 = GUICtrlCreateInput("Input2", 16, 72, 153, 21)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
EndSwitch
WEnd

 

Tak jak widać jak pisze Case $Button1 to do pierwszego GUI idzie a jak chcialbym np zeby poszło to drugiego.

Opublikowano

$WS_GROUP-usun

while 1

$GUI_EVENT_CLOSE zmień na -3(nie masz includa)

 

 

$button=guictrlcreatebutton("nazwa_butona",odległość od lewej krawedzi okna , odleglosc od gory, dlugosc buttona,i wysokosc)

tak robisz buttony

 

while 1

switch guigetmsg();czyli wlacznik okna (butonow itd)

case $button

i tu jego funkcja...

case cos innego np button2

...

endswitch

wend

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

zbieram +

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...