Hi Leute.
Ich habe schon ein fertiges Script, würde jetzt aber noch einfügen, dass er wenn der Benutzer die Maus auf pic2 oder pic3 bewegt jeweils ein anderes Bild anzeigt wird
Mein Script:
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Pic1 = GUICtrlCreatePic("S4logo.jpg", 0, 24, 249, 169, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic2 = GUICtrlCreatePic("buttons\button1up.JPG", 0, 0, 125, 26, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Pic3 = GUICtrlCreatePic("buttons\button2up.JPG", 125, 0, 125, 26, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Ich habe schon ein Test-Script gefunden, weiß aber nicht wie ich das in mein Script einfüge:
Spoiler anzeigen
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
GUICreate("Test", 600, 400)
$label = GUICtrlCreateLabel("test", 30, 150, 140, 30)
GUISetState(@SW_SHOW)
GUISetState ()
[/autoit] [autoit][/autoit] [autoit]Adlibregister("_Hover_Label")
[/autoit] [autoit][/autoit] [autoit]While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _Hover_Label()
$pos = GUIGetCursorInfo()
If $pos[4] = $label Then
GUICtrlSetBkColor($label, 0xFF0000)
Else
GUICtrlSetBkColor($label, Default)
EndIf
EndFunc
Vielen Dank für eure Hilfe im Vorraus.
Mfg Fliwatt