- Offizieller Beitrag
Hallo
Hier mal ein kleines Beispiel für ein G15 Display Addon. Einfach starten und mit der G15 auf dem LCD "Firefox" auswählen. Dann etwas downloaden und gucken was passiert
Was gebraucht wird, die neue AvLCD.au3 und die dll. Beides bekommst man hier: G15 LCD Fernsteuern mit Acitve-X
Spoiler anzeigen
#include<AvLCD.au3>
[/autoit] [autoit][/autoit] [autoit]Opt("WinTitleMatchMode", 2)
[/autoit] [autoit][/autoit] [autoit]_StartLCD("Firefox")
[/autoit] [autoit][/autoit] [autoit];##### TEST ######
;For $i = 1 To 100
; _Progress($i)
; Sleep(100)
;Next
;#################
_ShowBitmap(_CreateLCDText("Warte auf Download"))
[/autoit] [autoit][/autoit] [autoit]While 1
$hWnd = WinGetHandle("[REGEXPTITLE:.*?% von .*? - Downloads]")
If @error Or WinGetTitle($hWnd) = "Downloads" Then
Sleep(200)
ContinueLoop
EndIf
While WinExists($hWnd)
$iPrz = WinGetTitle($hWnd)
If $iPrz = "Downloads" Or WinExists($iPrz) = 0 Then
_ShowBitmap(_CreateLCDText("Komplett!"))
ExitLoop
EndIf
$iPrz = Number(StringLeft($iPrz, 3))
_Progress($iPrz)
Sleep(100)
WEnd
WEnd
Func _Progress($iPrz)
Local $hPrg
$hPrg = _CreateLCDText("Firefox Download " & $iPrz & "%")
$hPrg = _CreateLCDRect(10, 20, 140, 15, $hPrg); Optional, Pen größe 4px statt 1px
$hPrg = _CreateLCDRect(12, 22, Round(137 * $iPrz / 100), 12, $hPrg, 1)
_ShowBitmap($hPrg)
EndFunc ;==>_Progress
Func OnAutoItExit()
_CloseLCD()
EndFunc ;==>OnAutoItExit
Mfg Spider