Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 14:24

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

Advertisement



Progress einfärben

Discussion on Progress einfärben within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
V8II's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 475
Received Thanks: 130
Progress einfärben

Hi,
Gibt es eine Möglichkeit, einen Progress einzufärben (Ich habe gegoogelt und nur eine Möglichkeit gefunden, bei der man in den klassischen Windows-Style wechseln muss, das ist aber total hässlich )
Mit GuiCtrlSetColor und GuiCtrlSetBkColor geht es nicht. Ich habe Windows 7.
Ich hoffe jemand kann helfen.
V8II is offline  
Old 03/26/2011, 17:09   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
meinste den?

PHP Code:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
XPStyleToggle(1)
$Form1 GUICreate("Form1"652274192124)
$Progress1 GUICtrlCreateProgress(404052933)
GUICtrlSetBkColor(-10x000000)
$Progress2 GUICtrlCreateProgress(4011252933)
GUICtrlSetColor(-10xFF0000)
$Progress3 GUICtrlCreateProgress(4018452933)
GUICtrlSetBkColor(-10x000000)
GUICtrlSetColor(-10xFFFF00)
XPStyleToggle(0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While GUIGetMsg() <> -3
    GUICtrlSetData
($Progress1Random(01001))
    
GUICtrlSetData($Progress2Random(01001))
    
GUICtrlSetData($Progress3Random(01001))
    
Sleep(250)
WEnd


Func XPStyleToggle
($OnOff 1)
    
Local Static $XS_n
    
If Not StringInStr(@OSType"WIN32_NT"Then Return 0
    
If $OnOff Then
        $XS_n 
DllCall("uxtheme.dll""int""GetThemeAppProperties")
        
DllCall("uxtheme.dll""none""SetThemeAppProperties""int"0)
        Return 
1
    
ElseIf IsArray($XS_nThen
        DllCall
("uxtheme.dll""none""SetThemeAppProperties""int"$XS_n[0])
        
$XS_n ""
        
Return 1
    
EndIf
    Return 
0
EndFunc   
;==>XPStyleToggle 
oder hier ein anderes,

PHP Code:

#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"652274192124)
$Progress1 GUICtrlCreateProgress(404052933)
DllCall('uxtheme.dll''none''SetThemeAppProperties''int'0) ; Classic-Style
$Progress2 
GUICtrlCreateProgress(4011252933)
GUICtrlSetColor(-132250); not working with Windows XP Style
DllCall
('uxtheme.dll''none''SetThemeAppProperties''int'7) ; Standard-Windows-Style
$Progress3 
GUICtrlCreateProgress(4018452933)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While GUIGetMsg() <> -3
    GUICtrlSetData
($Progress1Random(01001))
    
GUICtrlSetData($Progress2Random(01001))
    
GUICtrlSetData($Progress3Random(01001))
    
Sleep(250)
WEnd 
omer36 is offline  
Thanks
1 User
Old 03/26/2011, 19:11   #3
 
V8II's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 475
Received Thanks: 130
Danke, du bist ein Genie =)
Beim unteren Beispiel ist er zwar im klassischen Style, dafür sind die anderen beiden normal.
V8II is offline  
Reply


Similar Threads Similar Threads
Progress Bar
12/02/2010 - Technical Support - 1 Replies
Hallo, Habe einen Injektor für Warrock gecoed mit Vb 2008 er geht auf 32-Bit! Wenn ich nun warRock starten Injektet es aber mann siehst die Progress bar nicht wie sie von 0% auf 100% geht-.- I NEED HELP THX Screen: Pic-Upload.de - Kostenlos Bilder & Fotos hochladen DAnke Im Voruas
[ WICHTIGE FRAGE ] Wie Monster einfärben
08/11/2010 - Flyff Private Server - 7 Replies
Hallo. Also ich habe einen P Server mit v15 offi files. und möchte von Monstern die Farbe ändern also statt einen blauen Bang zbsp einen in Rot. Leider habe ich da nix gefunden. Und hab immer gelesen, dass es wegen den Bones oder so schwer ist ein eigenes Monster zu machen, deshalb will ich eins kopieren und einfärben und umbennen, dass mit dem kopieren und umbennen haut toll hin. Nur mit dem Einfärben komm ich nicht weiter, ich muss ja kein wahnsinnig schönes Muster drauf bekommen,...
NPC in Farben einfärben ?
07/29/2010 - Last Chaos - 11 Replies
Mahlzeit, da ich grad an einem Bot dran bin der mit Pixelsearch arbeitet wollte ich mal wissen ob es eine Möglichkeit gibt NPC's in Farben einzufärben... würde mir die Arbeit echt erleichtern :) MFG
Kann mir wer Rüssis einfärben
02/09/2010 - Metin2 Private Server - 0 Replies
Hallo, ich selbst bin nciht so der Pro und frage euch ob ihr mir den SSP in Gold einfärben könnt das er Schwarz-Glod ist das Gold soll auch gut zu sehen sein wäre sehr nett von euch
[Actionscript] combobox einfärben
03/28/2008 - General Coding - 1 Replies
Ich frage mich gerade wie man am besten bestimmte Items unterschiedlich einfärbt. Z.b das dritte Item und das siebte. so ne art alternateRowColor nur dass ich bestimmten kann welche Rows eingefärbt werden.



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


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.