Hi,
code?
So long,
Mega
Hi,
code?
So long,
Mega
Hi,
sieht doch schon sehr schön aus.
Was soll das ganze eigentlich werden, wenn es fertig ist?
So long,
Mega
Hi,
du könntest das ganze aber trotzdem noch arg kürzen. Habe mal angefangen fürs Prinzip
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]Const $blau = 0x0000FF
Const $gelb = 0xFFFF00
Const $gruen = 0x00FF00
Const $lila = 0xFF00FF
Const $rot = 0xFF0000
Const $schwarz = 0x000000
Const $tuerkis = 0x00FFFF
Const $weiss = 0xFFFFFF
$GUI1 = GUICreate("Lightbox", 768, 302, 148, 281)
GUISetBkColor(0x000000)
Global $buttons[11][47]
Global $2_A[26] = [0, 1, 5, 6, 7, 9, 10, 11, 13, 14, 20, 21, 22, 26, 27, 28, 30, 31, 32, 33, 28, 29, 33, 39, 40, 46]
Global $3_A[38] = [0, 2, 3, 4, 6, 7, 9, 10, 11, 13, 14, 15, 16, 18, 19, 20, 21, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 37, 38, 39, 40, 41, 42, 44, 45, 46]
Global $left = 8, $top = 26
For $i = 0 To UBound($buttons, 1) - 1
For $ii = 0 To UBound($buttons, 2) - 1
$buttons[$i][$ii] = GUICtrlCreateButton("", $left + ($ii * $left * 2), 8 + ($i * $top), 17, 25, 0)
GUICtrlSetBkColor(-1, 0x00007F)
GUICtrlSetState(-1, $GUI_DISABLE)
Next
Next
GUISetState(@SW_SHOW)
[/autoit] [autoit][/autoit] [autoit]; HIER GEHT ES WEITER
; Aus- und einblendungen // aktivieren bzw. deaktivieren
;
; Meine Array-Hilfe
; [0/0] [0/1]
; [1/0] [1/1]
; [2/0] [2/1]
While 1
For $i = 0 To 46
GUICtrlSetState($buttons[1][$i], $GUI_HIDE)
GUICtrlSetState($buttons[9][$i], $GUI_HIDE)
Next
BreakingSleep(500)
For $i = 0 To UBound($2_A) - 1
GUICtrlSetState($buttons[2][$2_A[$i]], $GUI_HIDE)
Next
BreakingSleep(500)
For $i = 0 To UBound($3_A) - 1
GUICtrlSetState($buttons[3][$3_A[$i]], $GUI_HIDE)
Next
BreakingSleep(500)
GUICtrlSetState($buttons[4][0], $GUI_HIDE)
GUICtrlSetState($buttons[4][2], $GUI_HIDE)
GUICtrlSetState($buttons[4][3], $GUI_HIDE)
GUICtrlSetState($buttons[4][4], $GUI_HIDE)
GUICtrlSetState($buttons[4][6], $GUI_HIDE)
GUICtrlSetState($buttons[4][7], $GUI_HIDE)
GUICtrlSetState($buttons[4][9], $GUI_HIDE)
GUICtrlSetState($buttons[4][10], $GUI_HIDE)
GUICtrlSetState($buttons[4][11], $GUI_HIDE)
GUICtrlSetState($buttons[4][13], $GUI_HIDE)
GUICtrlSetState($buttons[4][14], $GUI_HIDE)
GUICtrlSetState($buttons[4][15], $GUI_HIDE)
GUICtrlSetState($buttons[4][16], $GUI_HIDE)
GUICtrlSetState($buttons[4][18], $GUI_HIDE)
GUICtrlSetState($buttons[4][19], $GUI_HIDE)
GUICtrlSetState($buttons[4][20], $GUI_HIDE)
GUICtrlSetState($buttons[4][21], $GUI_HIDE)
GUICtrlSetState($buttons[4][23], $GUI_HIDE)
GUICtrlSetState($buttons[4][24], $GUI_HIDE)
GUICtrlSetState($buttons[4][25], $GUI_HIDE)
GUICtrlSetState($buttons[4][27], $GUI_HIDE)
GUICtrlSetState($buttons[4][28], $GUI_HIDE)
GUICtrlSetState($buttons[4][29], $GUI_HIDE)
GUICtrlSetState($buttons[4][30], $GUI_HIDE)
GUICtrlSetState($buttons[4][31], $GUI_HIDE)
GUICtrlSetState($buttons[4][32], $GUI_HIDE)
GUICtrlSetState($buttons[4][33], $GUI_HIDE)
GUICtrlSetState($buttons[4][34], $GUI_HIDE)
GUICtrlSetState($buttons[4][35], $GUI_HIDE)
GUICtrlSetState($buttons[4][37], $GUI_HIDE)
GUICtrlSetState($buttons[4][38], $GUI_HIDE)
GUICtrlSetState($buttons[4][39], $GUI_HIDE)
GUICtrlSetState($buttons[4][40], $GUI_HIDE)
GUICtrlSetState($buttons[4][41], $GUI_HIDE)
GUICtrlSetState($buttons[4][42], $GUI_HIDE)
GUICtrlSetState($buttons[4][44], $GUI_HIDE)
GUICtrlSetState($buttons[4][45], $GUI_HIDE)
GUICtrlSetState($buttons[4][46], $GUI_HIDE)
BreakingSleep(500)
GUICtrlSetState($buttons[5][0], $GUI_HIDE)
GUICtrlSetState($buttons[5][6], $GUI_HIDE)
GUICtrlSetState($buttons[5][7], $GUI_HIDE)
GUICtrlSetState($buttons[5][9], $GUI_HIDE)
GUICtrlSetState($buttons[5][10], $GUI_HIDE)
GUICtrlSetState($buttons[5][11], $GUI_HIDE)
GUICtrlSetState($buttons[5][13], $GUI_HIDE)
GUICtrlSetState($buttons[5][14], $GUI_HIDE)
GUICtrlSetState($buttons[5][15], $GUI_HIDE)
GUICtrlSetState($buttons[5][16], $GUI_HIDE)
GUICtrlSetState($buttons[5][18], $GUI_HIDE)
GUICtrlSetState($buttons[5][19], $GUI_HIDE)
GUICtrlSetState($buttons[5][20], $GUI_HIDE)
GUICtrlSetState($buttons[5][21], $GUI_HIDE)
GUICtrlSetState($buttons[5][23], $GUI_HIDE)
GUICtrlSetState($buttons[5][24], $GUI_HIDE)
GUICtrlSetState($buttons[5][25], $GUI_HIDE)
GUICtrlSetState($buttons[5][27], $GUI_HIDE)
GUICtrlSetState($buttons[5][28], $GUI_HIDE)
GUICtrlSetState($buttons[5][29], $GUI_HIDE)
GUICtrlSetState($buttons[5][33], $GUI_HIDE)
GUICtrlSetState($buttons[5][34], $GUI_HIDE)
GUICtrlSetState($buttons[5][35], $GUI_HIDE)
GUICtrlSetState($buttons[5][37], $GUI_HIDE)
GUICtrlSetState($buttons[5][38], $GUI_HIDE)
GUICtrlSetState($buttons[5][39], $GUI_HIDE)
GUICtrlSetState($buttons[5][40], $GUI_HIDE)
GUICtrlSetState($buttons[5][41], $GUI_HIDE)
GUICtrlSetState($buttons[5][42], $GUI_HIDE)
GUICtrlSetState($buttons[5][44], $GUI_HIDE)
GUICtrlSetState($buttons[5][45], $GUI_HIDE)
GUICtrlSetState($buttons[5][46], $GUI_HIDE)
BreakingSleep(500)
GUICtrlSetState($buttons[6][0], $GUI_HIDE)
GUICtrlSetState($buttons[6][2], $GUI_HIDE)
GUICtrlSetState($buttons[6][3], $GUI_HIDE)
GUICtrlSetState($buttons[6][4], $GUI_HIDE)
GUICtrlSetState($buttons[6][6], $GUI_HIDE)
GUICtrlSetState($buttons[6][7], $GUI_HIDE)
GUICtrlSetState($buttons[6][9], $GUI_HIDE)
GUICtrlSetState($buttons[6][10], $GUI_HIDE)
GUICtrlSetState($buttons[6][11], $GUI_HIDE)
GUICtrlSetState($buttons[6][13], $GUI_HIDE)
GUICtrlSetState($buttons[6][14], $GUI_HIDE)
GUICtrlSetState($buttons[6][15], $GUI_HIDE)
GUICtrlSetState($buttons[6][16], $GUI_HIDE)
GUICtrlSetState($buttons[6][18], $GUI_HIDE)
GUICtrlSetState($buttons[6][19], $GUI_HIDE)
GUICtrlSetState($buttons[6][20], $GUI_HIDE)
GUICtrlSetState($buttons[6][21], $GUI_HIDE)
GUICtrlSetState($buttons[6][23], $GUI_HIDE)
GUICtrlSetState($buttons[6][24], $GUI_HIDE)
GUICtrlSetState($buttons[6][25], $GUI_HIDE)
GUICtrlSetState($buttons[6][27], $GUI_HIDE)
GUICtrlSetState($buttons[6][28], $GUI_HIDE)
GUICtrlSetState($buttons[6][29], $GUI_HIDE)
GUICtrlSetState($buttons[6][30], $GUI_HIDE)
GUICtrlSetState($buttons[6][31], $GUI_HIDE)
GUICtrlSetState($buttons[6][32], $GUI_HIDE)
GUICtrlSetState($buttons[6][33], $GUI_HIDE)
GUICtrlSetState($buttons[6][34], $GUI_HIDE)
GUICtrlSetState($buttons[6][35], $GUI_HIDE)
GUICtrlSetState($buttons[6][37], $GUI_HIDE)
GUICtrlSetState($buttons[6][38], $GUI_HIDE)
GUICtrlSetState($buttons[6][39], $GUI_HIDE)
GUICtrlSetState($buttons[6][40], $GUI_HIDE)
GUICtrlSetState($buttons[6][41], $GUI_HIDE)
GUICtrlSetState($buttons[6][42], $GUI_HIDE)
GUICtrlSetState($buttons[6][44], $GUI_HIDE)
GUICtrlSetState($buttons[6][45], $GUI_HIDE)
GUICtrlSetState($buttons[6][46], $GUI_HIDE)
BreakingSleep(500)
GUICtrlSetState($buttons[7][0], $GUI_HIDE)
GUICtrlSetState($buttons[7][2], $GUI_HIDE)
GUICtrlSetState($buttons[7][3], $GUI_HIDE)
GUICtrlSetState($buttons[7][4], $GUI_HIDE)
GUICtrlSetState($buttons[7][6], $GUI_HIDE)
GUICtrlSetState($buttons[7][7], $GUI_HIDE)
GUICtrlSetState($buttons[7][9], $GUI_HIDE)
GUICtrlSetState($buttons[7][10], $GUI_HIDE)
GUICtrlSetState($buttons[7][11], $GUI_HIDE)
GUICtrlSetState($buttons[7][13], $GUI_HIDE)
GUICtrlSetState($buttons[7][14], $GUI_HIDE)
GUICtrlSetState($buttons[7][15], $GUI_HIDE)
GUICtrlSetState($buttons[7][16], $GUI_HIDE)
GUICtrlSetState($buttons[7][18], $GUI_HIDE)
GUICtrlSetState($buttons[7][19], $GUI_HIDE)
GUICtrlSetState($buttons[7][20], $GUI_HIDE)
GUICtrlSetState($buttons[7][21], $GUI_HIDE)
GUICtrlSetState($buttons[7][23], $GUI_HIDE)
GUICtrlSetState($buttons[7][24], $GUI_HIDE)
GUICtrlSetState($buttons[7][25], $GUI_HIDE)
GUICtrlSetState($buttons[7][27], $GUI_HIDE)
GUICtrlSetState($buttons[7][28], $GUI_HIDE)
GUICtrlSetState($buttons[7][29], $GUI_HIDE)
GUICtrlSetState($buttons[7][30], $GUI_HIDE)
GUICtrlSetState($buttons[7][31], $GUI_HIDE)
GUICtrlSetState($buttons[7][32], $GUI_HIDE)
GUICtrlSetState($buttons[7][33], $GUI_HIDE)
GUICtrlSetState($buttons[7][34], $GUI_HIDE)
GUICtrlSetState($buttons[7][35], $GUI_HIDE)
GUICtrlSetState($buttons[7][37], $GUI_HIDE)
GUICtrlSetState($buttons[7][38], $GUI_HIDE)
GUICtrlSetState($buttons[7][39], $GUI_HIDE)
GUICtrlSetState($buttons[7][40], $GUI_HIDE)
GUICtrlSetState($buttons[7][41], $GUI_HIDE)
GUICtrlSetState($buttons[7][42], $GUI_HIDE)
GUICtrlSetState($buttons[7][44], $GUI_HIDE)
GUICtrlSetState($buttons[7][45], $GUI_HIDE)
GUICtrlSetState($buttons[7][46], $GUI_HIDE)
BreakingSleep(500)
GUICtrlSetState($buttons[8][0], $GUI_HIDE)
GUICtrlSetState($buttons[8][2], $GUI_HIDE)
GUICtrlSetState($buttons[8][3], $GUI_HIDE)
GUICtrlSetState($buttons[8][4], $GUI_HIDE)
GUICtrlSetState($buttons[8][6], $GUI_HIDE)
GUICtrlSetState($buttons[8][7], $GUI_HIDE)
GUICtrlSetState($buttons[8][13], $GUI_HIDE)
GUICtrlSetState($buttons[8][14], $GUI_HIDE)
GUICtrlSetState($buttons[8][15], $GUI_HIDE)
GUICtrlSetState($buttons[8][16], $GUI_HIDE)
GUICtrlSetState($buttons[8][18], $GUI_HIDE)
GUICtrlSetState($buttons[8][19], $GUI_HIDE)
GUICtrlSetState($buttons[8][20], $GUI_HIDE)
GUICtrlSetState($buttons[8][21], $GUI_HIDE)
GUICtrlSetState($buttons[8][22], $GUI_HIDE)
GUICtrlSetState($buttons[8][26], $GUI_HIDE)
GUICtrlSetState($buttons[8][27], $GUI_HIDE)
GUICtrlSetState($buttons[8][28], $GUI_HIDE)
GUICtrlSetState($buttons[8][30], $GUI_HIDE)
GUICtrlSetState($buttons[8][31], $GUI_HIDE)
GUICtrlSetState($buttons[8][32], $GUI_HIDE)
GUICtrlSetState($buttons[8][33], $GUI_HIDE)
GUICtrlSetState($buttons[8][28], $GUI_HIDE)
GUICtrlSetState($buttons[8][29], $GUI_HIDE)
GUICtrlSetState($buttons[8][33], $GUI_HIDE)
GUICtrlSetState($buttons[8][39], $GUI_HIDE)
GUICtrlSetState($buttons[8][40], $GUI_HIDE)
GUICtrlSetState($buttons[8][41], $GUI_HIDE)
GUICtrlSetState($buttons[8][42], $GUI_HIDE)
GUICtrlSetState($buttons[8][44], $GUI_HIDE)
GUICtrlSetState($buttons[8][45], $GUI_HIDE)
GUICtrlSetState($buttons[8][46], $GUI_HIDE)
BreakingSleep(2000)
[/autoit] [autoit][/autoit] [autoit]; einfach alles wieder einblenden
For $nZeile = 0 To 10
For $nSpalte = 0 To 46
GUICtrlSetState($buttons[$nZeile][$nSpalte], $GUI_SHOW)
Next
Next
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then Exit
WEnd
[/autoit] [autoit][/autoit] [autoit]Func BreakingSleep($SleepTime)
Local $Start = TimerInit()
While TimerDiff($Start) < $SleepTime
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then Exit
WEnd
EndFunc ;==>BreakingSleep
So long,
Mega
Hi,
die GUI wurde entfernt. Es läuft jetzt alles über die compiler directives im Skript siehe helpfile.
So long,
Mega
Hi,
da musst du doch nur wie immer GuiGetMsg einbauen und auf exit_close prüfen.
So long,
Mega
Hi,
#include <GUIConstants.au3>
$GUI1 = GUICreate("Lightbox", 768, 302, 148, 281)
GUISetBkColor(0x000000)
Global $buttons[11][47]
Global $left = 8, $top = 26
For $i = 0 To UBound($buttons, 1) - 1
For $ii = 0 To UBound($buttons, 2) - 1
$buttons[$i][$ii] = GUICtrlCreateButton("", $left + ($ii * $left * 2), 8 + ($i * $top), 17, 25, 0)
ConsoleWrite($left + ($ii * $left * 2) & " " & 8 + ($ii * $top) & @CRLF)
Next
Next
#comments-start
HIER GEHT ES WEITER
Aus- und einblendungen aktivieren bzw. deaktivieren
#comments-end
GUISetState(@SW_SHOW)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
So long,
Mega
HI,
#AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\au3.ico
#AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\filetype1.ico
#AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\filetype2.ico
#AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\filetype3.ico
#AutoIt3Wrapper_Res_Icon_Add=C:\Program Files\AutoIt3\Icons\filetype-blank.ico
#include <GUIConstants.au3>
GUICreate("Demo resource ICO's")
$h_Button1 = GUICtrlCreateButton("my picture button", 10, 20, 40, 40, $BS_ICON)
GUISetState()
For $x = 0 To 7
$rc = TraySetIcon(@ScriptFullPath, $x)
$rc2 = GUICtrlSetImage($h_Button1, @ScriptFullPath, $x)
If $x < 3 Then
TrayTip("Default ico:" & $x, "TraySetIcon rc:" & $rc & @LF & "GUICtrlSetImage rc:" & $rc2, 3)
Else
TrayTip("New ico:" & $x, "TraySetIcon rc:" & $rc & @LF & "GUICtrlSetImage rc:" & $rc2, 3)
EndIf
Sleep(2000)
Next
GUIDelete()
So long,
Mega
Hi,
dann pack dir doch einfach eine Verknüpfung zu deinem Autoit Skript in die Schnellstartleiste.
Das Skript macht dann nichts anderes als, den prozess zu beenden und neu zu starten.
So long,
Mega
Hi,
reicht es dir denn nicht, wenn du 3-4 Bilder nimmst du diese immer nach bestimmter Zeit oder Event veränderst?
So long,
Mega
Hi,
du kannst verschiedene Bilder anzeigen lassen aber ich glaube nicht, dass ein Animation darstelllbar ist. Du kannst es hier testen:
#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]GUICreate("My GUI new icon") ; will create a dialog box that when displayed is centered
[/autoit] [autoit][/autoit] [autoit]GUISetIcon("c:\WINNT\Cursors\coin.ani ") ; will change icon
TraySetIcon('c:\WINNT\Cursors\coin.ani ')
GUISetState(); will display an empty dialog box
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
So long,
Mega
Hi,
also Speicher und CPU Last haben keine Abhängigkeit!
Starte ihn doch einfach nach einer bestimmten Zeit neu.
So long,
Mega
Hi,
du sollst auch nicht das ani File nehmen, sondern ico files und diese dann wechseln wenn es sein muss. ![]()
So long,
Mega
HI,
was hat MemGet... denn mit der CPU-Auslastung zu tun?
Außerdem solltest du die Ursache und nicht die Symptome bekämpfen!
So long,
Mega
Hi,
probier es aus. Ich würde denke ich eigene GUIs machen und diese mit WinTrans bearbeiten.
Könnte klappen.
So long,
Mega
Hi,
so geht es :
Local $date = @YEAR & "-" & @MON & "-" & @MDAY
Local $log = @UserName & "_log.html"
Opt("OnExitFunc", "Terminate")
HotKeySet("^{F9}", "Terminate1")
FileWrite($log, "")
FileOpen($log, 1)
Sleep(100)
While 1
Sleep(1)
WEnd
Func Terminate1()
Exit (0)
EndFunc ;==>Terminate1
Func Terminate()
$close = @exitMethod
If $close = 0 Then
FileWrite($log, "<br><BR>" & "<b>[" & @YEAR & "." & @MON & "." & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC & '] "</b><br>' & "<font color=#FF0000 style=font-size:9px><b>[[[Natural Shutdown]]]</b></font>")
ElseIf $close = 1 Then
FileWrite($log, "<br><BR>" & "<b>[" & @YEAR & "." & @MON & "." & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC & '] "</b><br>' & "<font color=#FF0000 style=font-size:9px><b>[[[Exit Function]]]</b></font>")
ElseIf $close = 2 Then
FileWrite($log, "<br><BR>" & "<b>[" & @YEAR & "." & @MON & "." & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC & '] "</b><br>' & "<font color=#FF0000 style=font-size:9px><b>[[[Systray Shutdown]]]</b></font>")
ElseIf $close = 3 Then
FileWrite($log, "<br><BR>" & "<b>[" & @YEAR & "." & @MON & "." & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC & '] "</b><br>' & "<font color=#FF0000 style=font-size:9px><b>[[[Logoff]]]</b></font>")
ElseIf $close = 4 Then
FileWrite($log, "<br><BR>" & "<b>[" & @YEAR & "." & @MON & "." & @MDAY & " " & @HOUR & ":" & @MIN & ":" & @SEC & '] "</b><br>' & "<font color=#FF0000 style=font-size:9px><b>[[[ Shutdown]]]</b></font>")
EndIf
FileClose($log)
EndFunc ;==>Terminate
[/autoit]So long,
Mega
HI,
ja das sind alles Etappenziele. Ich denke, wenn du wirklich sicher gehen willst, dann musst so viele Etappen einbauen, dass der Codeklauer die Lust verliert.
So long,
Mega
P.S: Viele kleine Dinge sind aus meiner Sicht besser, als ein tolle Verschlüsselung.
HI,
ja sicher - problemlos.
So long,
Mega
Hi,
da kann ich bernd nur Recht geben. Vor allem, wenn du ständig die ControlIDs brauchst, um den Status zu setzen usw.
In diesem Fall wirst du wahrscheinlich eh ein Array nutzen. Die Frage wäre dann, ob du die ControlID-Variablen ins Array packst, oder das Buttonarray durchläufst.
So long,
Mega
HI,
kein Problem. Anwedungsbeispiele findest du im Eng-Forum, falls du den Einstieg nicht findest.
So long,
Mega
Hi,
ja bietet sich an eine Ini zu nehmen. ID als Key und dann die Werte mit einem einheitlichen Trennzeichen z.B. |
So long,
Mega