Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 06:16

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

Advertisement



Countdown in GUI

Discussion on Countdown in GUI within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2008
Posts: 732
Received Thanks: 216
Countdown in GUI

Hi,

wie bekomm ich denn einen Countdown in ne GUI? Aber der countdown soll aber durch zb ne func restartet werden... also er zählt von 10sec nach 0 und sobald man ne func aufruft fängt er neu an...

PHP Code:
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"52672199274)
$Label1 GUICtrlCreateLabel("Skill1"082917)
$Label2 GUICtrlCreateLabel("Skill2"7082917)
$Label3 GUICtrlCreateLabel("Skill3"14082917)
$Label4 GUICtrlCreateLabel("Skill4"21082917)
$Label5 GUICtrlCreateLabel("Skill5"28082917)
$Label6 GUICtrlCreateLabel("Skill6"35082917)
$Label7 GUICtrlCreateLabel("Skill7"42082917)
$Label8 GUICtrlCreateLabel("Skill8"49082917)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

EndSwitch
WEnd 
und nächste frage wie bekomm ich das hin das die gui IMMER im vordergrund ist.. also auch wenn ich ein anderes fenster aufrufe

danke schonmal
Dunham is offline  
Old 01/09/2009, 15:05   #2
 
aLasca's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 614
Received Thanks: 164
Quote:
Originally Posted by Dunham View Post
Hi,

wie bekomm ich denn einen Countdown in ne GUI? Aber der countdown soll aber durch zb ne func restartet werden... also er zählt von 10sec nach 0 und sobald man ne func aufruft fängt er neu an...

PHP Code:
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"52672199274)
$Label1 GUICtrlCreateLabel("Skill1"082917)
$Label2 GUICtrlCreateLabel("Skill2"7082917)
$Label3 GUICtrlCreateLabel("Skill3"14082917)
$Label4 GUICtrlCreateLabel("Skill4"21082917)
$Label5 GUICtrlCreateLabel("Skill5"28082917)
$Label6 GUICtrlCreateLabel("Skill6"35082917)
$Label7 GUICtrlCreateLabel("Skill7"42082917)
$Label8 GUICtrlCreateLabel("Skill8"49082917)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

EndSwitch
WEnd 
und nächste frage wie bekomm ich das hin das die gui IMMER im vordergrund ist.. also auch wenn ich ein anderes fenster aufrufe

danke schonmal
Das mit Immer im Vordergrund würde ich mit

PHP Code:
$gui WinGetHandle("Form1")
WinSetOnTop($gui
machen.. beim timer kann ich dir nicht wirklich helfen.
aLasca is offline  
Old 01/09/2009, 15:48   #3
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
sowas in der art:

Code:
#include <GUIConstants.au3>
GUICreate("", 120, 30)
$COUNTER = GUICtrlCreateLabel("10",10,8)
GUISetState()
For $i = 10 to 0 Step -1
    GUICtrlSetData($COUNTER,$i )
    Sleep(1000)
Next
?
| Moep | is offline  
Thanks
1 User
Old 01/09/2009, 15:53   #4
 
elite*gold: 0
Join Date: Sep 2008
Posts: 732
Received Thanks: 216
genau sowas ^^ danke!

ahh misst... die countdowns laufen aber immer nur nacheinander ab... eigenlich sollten sie unabhängig voneinander laufen -.-
Dunham is offline  
Reply


Similar Threads Similar Threads
Countdown bis 2010 :D
12/31/2009 - Off Topic - 2 Replies
Noch 10:57 stunden bis Neu-jahr!! Macht mit und zählt die zeit runter :D Wünsch euch allen ein Guten Rutsch! http://www4.pic-upload.de/31.12.09/wzejrk62st8v.j pg
pserver countdown
10/08/2009 - Metin2 PServer Guides & Strategies - 7 Replies
hallo ich habe mal gesehen auf einem p server das ein GM irgentwas in den chat schreibt und darauf ist ein countdown im chat von 10 - 0 dan ist der serer down und in der zeit speichert er all die sachen ab die die player in der zeit davor gemacht haben z.b. rüssis yang usw. kann mir jemand das command oder wie mann es macht sagen=???? !!HILFE!!
Countdown ~ Down 2
10/05/2008 - Metin2 Private Server - 1 Replies
20:50 Serverdown... o0
Countdown ~ Down
10/02/2008 - Metin2 Private Server - 54 Replies
Gerade war ich in longju online und plötzlich schrieb ein Gamemaster (?) 10...9...8...7...6...5...4...3...2...1... Danach wurden meine beiden longju Fenster geschlossen und nun komme ich nicht mehr rein. War das einfach ein angekündigter Serverdown?



All times are GMT +1. The time now is 06:17.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.