Register for your free account! | Forgot your password?

You last visited: Today at 01:13

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



GUIs

Discussion on GUIs within the Guild Wars forum part of the MMORPGs category.

Reply
 
Old   #1
 
aLasca's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 614
Received Thanks: 164
GUIs

Hiho, ich mal wieder

Also, ich habe jetzt die komplette Autoit hilfe durchforstet aber immer nur bruchteile rausgefunden.. ich hab mir auch die Au3 vom Drunkenmaster angeguckt, auch da konnte ich kaum was rauserkennen.. also kann mir mal jemand bitte erklären wie man einen GUI erstellt?

Danke im Vorraus
aLasca is offline  
Old 12/24/2008, 22:28   #2
 
elite*gold: 0
Join Date: Dec 2007
Posts: 680
Received Thanks: 141
im scite editor kannste oben bei tools kodak formdesigner auswählen und ein gui erstellen
xSharkoonX is offline  
Old 12/24/2008, 22:31   #3
 
elite*gold: 0
Join Date: Jan 2008
Posts: 1,098
Received Thanks: 198
Dann musst halt nur noch den Elementen alles zuweisen.
i4mSoH34Vy is offline  
Old 12/24/2008, 22:36   #4
 
aLasca's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 614
Received Thanks: 164
Gott seid ihr schnell, in 9 Minuten 2 Antworten O__o
Ich werd mal gucken, danke
aLasca is offline  
Old 12/24/2008, 22:39   #5
 
NBA's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,874
Received Thanks: 213
Es geht aber auch von Hand:

PHP Code:
#Include <GuiConstants.au3> ;um das Gui ueberhaubt zu ermoeglichen.

GuiCreate("Name");um das GUI zu erstellen.

GuiSetState(@SW_SHOW) ; damit das GUI angezeigt wird
So! Das ist der Anfang. Sollte man aber versuchen das zu starten, stellt man ein Problem fest: Das GUI Blinkt Kurz auf, mehr aber auch nicht.
Das loesen wir mit einer Endlosschleife:
PHP Code:
While 
$msg 
GuiGetMsg() ; Jedes mal wenn die Schleife erneuert wirdbekommt man, ;was gedrueckt wurde

If $msg $GUI_EVENT_CLOSE then exitloop
Wend 
SO! Aber etwas lehr ist das GUI schon noch.(Falls der Code oben nicht funzen sollte, prob es mit einem endif nach exitloop.)

Das beheben wir hiermit:
PHP Code:
$test GuiCtrlCreateButton("Name",x,y,laenge,hoehe
Das ist nur ein beispiel. Natuerlich kann man auch RadioButtons, Inputboxen uvm machen...

MfG
NBA

Edit:
Hier nochmal der ganze Code:

PHP Code:
#include <GuiConstants.au3>

GuiCreate("GUI")
GuiSetState(@SW_SHOW)

$button GuiCtrlCreateButton("Name",10,10,50,30) ; Laenge und Hoehe(50,30) ;werden nicht zwingend ,gebraucht, Die Var nur weil man sonst immer die CID rausfinden muss.

While 
1
$msg 
GuiGetMsg()
If 
$msg $GUI_EVENT_CLOSE then exitloop
If $msg $button then
msgbox
(0,"Es geht","Dein GUI funktioniert")
endif
Wend 
NBA is offline  
Old 12/24/2008, 22:42   #6
 
elite*gold: 20
Join Date: Feb 2007
Posts: 3,080
Received Thanks: 4,294
für den anfang sind meiner meinung nach am wichtigsten:

guictrlread
guictrlsetdata
guictrlcreate

gibt natürlich wesentlich mehr...
den rest dazu spuckt dir die hilfe aus.
kknb is offline  
Old 12/24/2008, 22:49   #7
 
NBA's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,874
Received Thanks: 213
Englisches Helpfile ftw!
NBA is offline  
Old 12/24/2008, 22:55   #8
 
_revo's Avatar
 
elite*gold: 57
Join Date: Jun 2007
Posts: 10,720
Received Thanks: 5,092
Quote:
Originally Posted by NBA View Post
Englisches Helpfile ftw!
sowieso ^^
_revo is offline  
Old 12/24/2008, 23:05   #9
 
aLasca's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 614
Received Thanks: 164
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Icebot v1.0 by Itami, aLa$ca"633454193115)
$Button1 GUICtrlCreateButton("Run Icebot v1.0"240400145330)
$Label1 GUICtrlCreateLabel("X Coordinate Hardmode"0811717)
$Input1 GUICtrlCreateInput(""03211321)
$Label2 GUICtrlCreateLabel("Y Coordinate Hardmode"06411717)
$Input2 GUICtrlCreateInput(""08811321)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd

WinActivate
("Guild Wars")
Sleep(5000)
MouseClick("left"$Input1,$Input2)

Exit 
Wie kann ich in diesem Script aussagen das wenn $Button1 dann anfangen mit Winactivate Guildwars? Danke im vorraus.
aLasca is offline  
Old 12/25/2008, 13:14   #10
 
elite*gold: 0
Join Date: Dec 2007
Posts: 680
Received Thanks: 141
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Icebot v1.0 by Itami, aLa$ca"633454193115)
$Button1 GUICtrlCreateButton("Run Icebot v1.0"240400145330)
$Label1 GUICtrlCreateLabel("X Coordinate Hardmode"0811717)
$Input1 GUICtrlCreateInput(""03211321)
$Label2 GUICtrlCreateLabel("Y Coordinate Hardmode"06411717)
$Input2 GUICtrlCreateInput(""08811321)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
case $nMsg $Button1
Winactivate 
;..............
;
bla bla
        
Case $GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd

WinActivate
("Guild Wars")
Sleep(5000)
MouseClick("left"$Input1,$Input2)

Exit 
xSharkoonX is offline  
Old 12/25/2008, 13:16   #11
 
aLasca's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 614
Received Thanks: 164
danke^^

€dit: das geht nicht.. er lässt mich nichts eintragen sondern macht sofort winactivate
Ich will das so machen, das er das GUI öffnet, Ich dort X,Y eingebe, und sobald ich dann auf 'Run' ($Button1) Mache, er Winactivate("Guild Wars") macht und den Hardmode anstellt.
aLasca is offline  
Old 12/25/2008, 13:48   #12
 
elite*gold: 0
Join Date: Dec 2007
Posts: 680
Received Thanks: 141
so habe ich das immer gemacht:
PHP Code:
While True
$MSG 
GUIGetMsg()
    
Select
    
Case $MSG == $Button1
        
;_run()
            
call("_hardmode")
    
    Case 
$MSG == $Button2
        _exitit
()
    Case 
$MSG == $Button3
        _update
()
    
EndSelect
WEnd 
kann sein das in dem anderen iwo nen fehler ist
xSharkoonX is offline  
Old 12/25/2008, 14:22   #13
 
aLasca's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 614
Received Thanks: 164
was sagt das True aus?..
aLasca is offline  
Old 12/25/2008, 14:45   #14
 
Jacob_G's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 515
Received Thanks: 95
Das ist eine unlösbare Schleife da sie "True" ist, also geht sie unendlich lange, oder sie wird durch Befehle aufgelöst.
Jacob_G is offline  
Old 12/25/2008, 14:48   #15
 
aLasca's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 614
Received Thanks: 164
Ok danke..^^
Also, ich habe das jetzt so
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

HotKeySet("{HOME}""end")
Func end()    
    Exit
EndFunc

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Icebot v1.0 by Itami, aLa$ca"633454193115)
$Button1 GUICtrlCreateButton("Run Icebot v1.0"240400145330)
$Label1 GUICtrlCreateLabel("X Coordinate Hardmode"0811717)
$Input1 GUICtrlCreateInput(""03211321)
$Label2 GUICtrlCreateLabel("Y Coordinate Hardmode"06411717)
$Input2 GUICtrlCreateInput(""08811321)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$msg 
GuiGetMsg()
    
Select
    
Case $msg $GUI_EVENT_CLOSE
        
Exit
    Case 
$msg $Button1
        call
("_hardmode")
    Case Else
        ;;;
    
EndSelect
WEnd

Func _hardmode
()
    
WinActivate("Guild Wars")
Sleep(5000)
MouseClick("left"$input1$input2)

Endfunc 
Nun habe ich 2 Fragen..^^ Das hardmode will ich ja nur 1x machen, aber den Run z.B. 5x
Wie mache ich das nun?

Und die 2. Frage ist wieso die Maus immer zur gleichen Stelle geht? Immer nach oben links, also (0,0)
Danke im vorraus^^ mal wieder

€: Frage 2 hab ich dann grad mit GUICtrlRead geklärt
aLasca is offline  
Reply


Similar Threads Similar Threads
CS:S Guis
04/04/2010 - Counter-Strike - 15 Replies
Hej Ich hab hier mal 2 meine eigenen guis ^^ ich hoffe ihr mögt sie FPSBANANA > GUIs > CS:S > Other/Misc > Scrubs High End Gui die erste ist noch gesperrt-.- FPSBANANA > GUIs > CS:S > Other/Misc > ZombieMod Lovers Gui
Wie erstellt ihr eure GUIs in C++?
01/28/2010 - C/C++ - 26 Replies
So, nach längerer Pause möchte ich wieder mit C++ anfangen.. Nachdem ich jetzt schon einige Sachen in C++ gemacht habe würde ich gerne mal etwas mit GUIs machen. Wie erstellt ihr denn eure GUIs in C++? Ich habe schon Qt Creator versucht, aber damit bin ich nicht wirklich klargekommen und die Hilfe war wirklich keine große Hilfe.. :o Vielleicht wisst ihr ja noch ein paar andere Programme.. :) mfg



All times are GMT +1. The time now is 01:14.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.