okay, werde es erstmal selber versuchen, danke für die vielen Hilfen!!
Beiträge von chRoNiix
-
-
So jetzt funktioniert soweit alles danke
(ich hab jetzt einfach mit einzelnen Variablen weiter gemacht, weil ich das nicht nochmal neu machen wollte.)Wie müsste ich jetzt vorgehen, wenn ich "hover-funktionen" auf die neuen buttons auf den einzelnen Seiten hinzufügen möchte, sodass sich zb die Größe des Buttons ändert ?
Hier nochmal der aktuelle Quellcode:
Spoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [autoit]
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ColorConstants.au3>Global $GREEN =0x0099FF
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
Global $RED=0x707070;~ Hier müssen die Variabeln rein, die in den Content_ Funktionen erstellt werden(Alle die auch in der _Delete_Content() Funktion sein müssen
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
Local $Header, $Text, $Text2, $Text3, $Text4, $Text5, $Text6, $Text7, $Text8Opt("GUIOnEventMode", 1)
[/autoit] [autoit][/autoit] [autoit]$Fav = GUICreate("Games-Manager", 1200, 700, 300, 200)
[/autoit] [autoit][/autoit] [autoit]
GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
$Pic = GUICtrlCreatePic("../Bilder/archiv.jpg", 0, -50, 1200, 801)
GUICtrlSetState(-1, $GUI_DISABLE)
$Games = GUICtrlCreateLabel("Games", 507.5, 60, 185, 60)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetColor(-1, $COLOR_WHITE)
GUICtrlSetFont(-1, 40, 1000, 0, "Century Gothic")
$Button_f = GUICtrlCreateButton("Favorites", 195, 180, 130, 41,$BS_BITMAP,$WS_GROUP)
GUICtrlSetImage(-1,"../Bilder/button_shooter.bmp")
;GUICtrlSetState(-1, $GUI_DISABLE)
GUICtrlSetBkColor(-1, $RED)
GUICtrlSetOnEvent(-1, "_showf")
$Button_s = GUICtrlCreateButton("Shooter", 335, 180, 130, 41,$BS_BITMAP, $WS_GROUP)
GUICtrlSetImage(-1, "../Bilder/button_shooter.bmp")
GUICtrlSetBkColor(-1, $GREEN)
GUICtrlSetOnEvent(-1, "_shows")
$Button_r = GUICtrlCreateButton("RPG's", 475, 180, 130, 41,$WS_GROUP)
GUICtrlSetBkColor(-1, $GREEN)
GUICtrlSetOnEvent(-1, "_showr")
$Button_ra = GUICtrlCreateButton("Racing", 615, 180, 130, 41,$WS_GROUP)
GUICtrlSetBkColor(-1, $GREEN)
GUICtrlSetOnEvent(-1, "_showra")
$Button_st = GUICtrlCreateButton("Strategy", 755, 180, 130, 41,$WS_GROUP)
GUICtrlSetBkColor(-1, $GREEN)
GUICtrlSetOnEvent(-1, "_showst")
$Button_o = GUICtrlCreateButton("Other", 895, 180, 130, 41,$WS_GROUP)
GUICtrlSetBkColor(-1, $GREEN)
GUICtrlSetOnEvent(-1, "_showo")
_Content_Fav()
GUISetState(@SW_SHOW);~ ControlGetHandle
[/autoit] [autoit][/autoit] [autoit]$Active_Menu = $Button_f
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
$fState = 0
Local $Last_Hover
While 1
$Pos = GuiGetCursorInfo()
If $Pos <> 0 Then
Select
Case ($Pos[4] = $Button_f) Or ($Pos[4] = $Button_s) Or ($Pos[4] = $Button_r) Or ($Pos[4] = $Button_ra) Or ($Pos[4] = $Button_o) Or ($Pos[4] = $Button_st)
If $fState = 0 Then
If $Pos[4] <> $Active_Menu Then
GUICtrlSetBkColor($Pos[4], $RED)
;GUICtrlSetImage($Pos[4],"../Bilder/button.bmp")
$fState = 1
$Last_Hover = $Pos[4]
EndIf
EndIf
Case Else
If $fState Then
If $Last_Hover <> $Active_Menu Then
GUICtrlSetBkColor($Last_Hover, $GREEN)
$fState = 0
Else
MsgBox(0,"","Lasthover = Activemenu")
EndIf
EndIf
EndSelect
EndIf
WEndFunc _showf()
[/autoit] [autoit][/autoit] [autoit]
GUICtrlSetState(Execute($Active_Menu), $GUI_ENABLE)
GUICtrlSetState($Button_f, $GUI_DisABLE)
GUICtrlSetBkColor($Active_Menu, $GREEN)
$Active_Menu = $Button_f
$fState = 0
GUICtrlSetBkColor($Button_f, $RED)
_Delete_Content()
_Content_Fav()
EndFuncFunc _shows()
[/autoit] [autoit][/autoit] [autoit]
GUICtrlSetState(Execute($Active_Menu), $GUI_ENABLE)
GUICtrlSetState($Button_s, $GUI_DisABLE)
GUICtrlSetBkColor($Active_Menu, $GREEN)
$Active_Menu = $Button_s
$fState = 0
GUICtrlSetBkColor($Button_s, $RED)
_Delete_Content()
_Content_Shooter()
EndFuncFunc _showr()
[/autoit] [autoit][/autoit] [autoit]
GUICtrlSetState(Execute($Active_Menu), $GUI_ENABLE)
GUICtrlSetState($Button_r, $GUI_DisABLE)
GUICtrlSetBkColor($Active_Menu, $GREEN)
$Active_Menu = $Button_r
$fState = 0
GUICtrlSetBkColor($Button_r, $RED)
_Delete_Content()
_Content_RPG()
EndFuncFunc _showra()
[/autoit] [autoit][/autoit] [autoit]
GUICtrlSetState(Execute($Active_Menu), $GUI_ENABLE)
GUICtrlSetState($Button_ra, $GUI_DisABLE)
GUICtrlSetBkColor($Active_Menu, $GREEN)
$Active_Menu = $Button_ra
$fState = 0
GUICtrlSetBkColor($Button_ra, $RED)
_Delete_Content()
_Content_Racing()
EndFuncFunc _showst()
[/autoit] [autoit][/autoit] [autoit]
GUICtrlSetState(Execute($Active_Menu), $GUI_ENABLE)
GUICtrlSetState($Button_st, $GUI_DisABLE)
GUICtrlSetBkColor($Active_Menu, $GREEN)
$Active_Menu = $Button_st
$fState = 0
GUICtrlSetBkColor($Button_st, $RED)
_Delete_Content()
_Content_Strategy()
EndFuncFunc _showo()
[/autoit] [autoit][/autoit] [autoit]
GUICtrlSetState(Execute($Active_Menu), $GUI_ENABLE)
GUICtrlSetState($Button_o, $GUI_DisABLE)
GUICtrlSetBkColor($Active_Menu, $GREEN)
$Active_Menu = $Button_o
$fState = 0
GUICtrlSetBkColor($Button_o, $RED)
_Delete_Content()
_Content_Other()
EndFunc;~ Hier alle ControlID's rein die in den Content_ Funktionen erstellt werden
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
Func _Delete_Content()
GUICtrlDelete($Header)
GUICtrlDelete($Text)
GUICtrlDelete($Text2)
GUICtrlDelete($Text3)
GUICtrlDelete($Text4)
GUICtrlDelete($Text5)
GUICtrlDelete($Text6)
GUICtrlDelete($Text7)
GUICtrlDelete($Text8)
EndFuncFunc _Content_Fav()
[/autoit] [autoit][/autoit] [autoit]
_Delete_Content()
$Header = GUICtrlCreateLabel("Favorites", 104, 320, 135, 37)
GUICtrlSetColor(-1, $COLOR_WHITE)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetFont(-1, 29, 400, 0, "MS Sans Serif")
$Text = GUICtrlCreateButton("", 160, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder\favorites\titanfall.bmp", -1)
GUICtrlSetOnEvent ( -1, "_fav1")
$Text2 = GUICtrlCreateButton("", 381, 385, 195, 105, $BS_BITMAP)
GUICtrlSetOnEvent ( -1, "_fav2")
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder\favorites\trials.bmp", -1)
$Text3 = GUICtrlCreateButton("", 603, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder\favorites\bf3.bmp", -1)
GUICtrlSetOnEvent ( -1, "_fav3")
$Text4 = GUICtrlCreateButton("", 823, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder\favorites\gw2.bmp", -1)
GUICtrlSetOnEvent ( -1, "_fav4")
$Text5 = GUICtrlCreateButton("", 160, 515, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder\favorites\.bmp", -1)
GUICtrlSetOnEvent ( -1, "_fav5")
$Text6 = GUICtrlCreateButton("", 381, 515, 195, 105, $BS_BITMAP)
GUICtrlSetOnEvent ( -1, "_fav6")
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder\favorites\.bmp", -1)
$Text7 = GUICtrlCreateButton("", 603, 515, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder\favorites\.bmp", -1)
GUICtrlSetOnEvent ( -1, "_fav7")
$Text8 = GUICtrlCreateButton("", 823, 515, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder\favorites\.bmp", -1)
GUICtrlSetOnEvent ( -1, "_fav8")
EndFuncFunc _fav1()
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
ShellExecute("")
EndFunc
Func _fav2()
ShellExecute("")
EndFunc
Func _fav3()
ShellExecute("")
EndFunc
Func _fav4()
ShellExecute("")
EndFunc
Func _fav5()
ShellExecute("")
EndFunc
Func _fav6()
ShellExecute("")
EndFunc
Func _fav7()
ShellExecute("")
EndFunc
Func _fav8()
ShellExecute("")
EndFuncFunc _Content_Shooter()
[/autoit] [autoit][/autoit] [autoit]
_Delete_Content()
$Header = GUICtrlCreateLabel("Shooter", 104, 320, 135, 37)
GUICtrlSetColor(-1, $COLOR_WHITE)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetFont(-1, 29, 400, 0, "MS Sans Serif")
$Text = GUICtrlCreateButton("", 160, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder\shooter\titanfall.bmp", -1)
$Text2 = GUICtrlCreateButton("", 381, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder\shooter\bf3.bmp", -1)
$Text3 = GUICtrlCreateButton("", 603, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder\shooter\mw3.bmp", -1)
$Text4 = GUICtrlCreateButton("", 823, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder\shooter\css.bmp", -1)
EndFuncFunc _Content_RPG()
[/autoit] [autoit][/autoit] [autoit]
_Delete_Content()
$Header = GUICtrlCreateLabel("RPG's", 104, 320, 135, 37)
GUICtrlSetColor(-1, $COLOR_WHITE)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetFont(-1, 29, 400, 0, "MS Sans Serif")
$Text = $Text = GUICtrlCreateButton("", 160, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
$Text2 = GUICtrlCreateButton("", 381, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
$Text3 = GUICtrlCreateButton("", 603, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
$Text4 = GUICtrlCreateButton("", 823, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
EndFuncFunc _Content_Racing()
[/autoit] [autoit][/autoit] [autoit]
_Delete_Content()
$Header = GUICtrlCreateLabel("Racing", 104, 320, 135, 37)
GUICtrlSetColor(-1, $COLOR_WHITE)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetFont(-1, 29, 400, 0, "MS Sans Serif")
$Text = $Text = GUICtrlCreateButton("", 160, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
$Text2 = GUICtrlCreateButton("", 381, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
$Text3 = GUICtrlCreateButton("", 603, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
$Text4 = GUICtrlCreateButton("", 823, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
EndFuncFunc _Content_Strategy()
[/autoit] [autoit][/autoit] [autoit]
_Delete_Content()
$Header = GUICtrlCreateLabel("Strategy", 104, 320, 135, 37)
GUICtrlSetColor(-1, $COLOR_WHITE)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetFont(-1, 29, 400, 0, "MS Sans Serif")
$Text = GUICtrlCreateButton("", 160, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
$Text2 = GUICtrlCreateButton("", 381, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
$Text3 = GUICtrlCreateButton("", 603, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
$Text4 = GUICtrlCreateButton("", 823, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
EndFuncFunc _Content_Other()
[/autoit] [autoit][/autoit] [autoit]
_Delete_Content()
$Header = GUICtrlCreateLabel("Other", 104, 320, 135, 37)
GUICtrlSetColor(-1, $COLOR_WHITE)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetFont(-1, 29, 400, 0, "MS Sans Serif")
$Text = GUICtrlCreateButton("", 160, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
$Text2 = GUICtrlCreateButton("", 381, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
$Text3 = GUICtrlCreateButton("", 603, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
$Text4 = GUICtrlCreateButton("", 823, 385, 195, 105, $BS_BITMAP)
GUICtrlSetImage(-1, "D:\'Projekte'\Programm\Bilder", -1)
EndFuncFunc _exit()
[/autoit]
Exit
EndFunc ;==> -
Super! Danke
Jetzt bekomme ich es nur irgendwie nicht mehr hin neue Buttons in einem "tab" eine Funktion zuzuweisen, sodass beispielsweise ein Programm beim drücken des Buttons geöffnet wird.. -
yeah! danke :))
So funktioniert es schon mal im rpg Reiter. Wie müsste ich jetzt vorgehen, damit es auch in den anderen funktioniert? -
Das Problem ist nur, dass sich das Programm sofort beendet, wenn ich die Schleife rausnehme..
-
Hallo, ich bin vor kurzem in die Welt von Autoit eingestiegen und stehe nun vor einem Problem. Ich möchte eine "hover-funktion" einbauen, sodass also beispielsweise ein button seine Farbe ändert, sobald ich mit der Maus über diesen schwebe. Ich weiß, dass es schon viele Einträge zu diesem Thema gibt, jedoch mache ich anscheinend irgendetwas falsch..
Ich hoffe ihr könnt mir weiterhelfen!Hier ist mein Quellcode:
Spoiler anzeigen
[autoit]
[/autoit] [autoit][/autoit] [autoit]
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <ColorConstants.au3>Global $GREEN = 0x00FF00
[/autoit] [autoit][/autoit] [autoit]
Global $RED= 0xFF0000Opt("GUIOnEventMode", 1)
[/autoit] [autoit][/autoit] [autoit]$Fav = GUICreate("Fav", 1200, 700, 300, 200)
[/autoit] [autoit][/autoit] [autoit]
GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
$Pic = GUICtrlCreatePic("../Bilder/archiv.jpg", 0, -50, 1200, 801) ;Hintergrundbild
GUICtrlSetState(-1, $GUI_DISABLE)
$Games = GUICtrlCreateLabel("Games", 507.5, 60, 185, 60)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetFont(-1, 40, 1000, 0, "Century Gothic")
$Button_f = GUICtrlCreateButton("Favoriten", 195, 180, 130, 41,$WS_GROUP)
GUICtrlSetState(-1, $GUI_DISABLE)
$Button_s = GUICtrlCreateButton("Shooter", 331, 180, 130, 41,$BS_BITMAP, $WS_GROUP)
GUICtrlSetImage(-1, "../Bilder/button_shooter.bmp")
GUICtrlSetOnEvent(-1, "_shows")$Button_r = GUICtrlCreateButton("RPG's", 467, 180, 130, 41,$WS_GROUP)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
GUICtrlSetBkColor(-1, $GREEN)
GUICtrlSetOnEvent(-1, "_showr")
$Button_ra = GUICtrlCreateButton("Racing", 603, 180, 130, 41,$WS_GROUP)
;$GUICtrlSetOnEvent(-1, "_showra")
$Button_st = GUICtrlCreateButton("Strategy", 739, 180, 130, 41,$WS_GROUP)
;GUICtrlSetOnEvent(-1, "_showst")
$Button_o = GUICtrlCreateButton("Other", 875, 180, 130, 41,$WS_GROUP)
;GUICtrlSetOnEvent(-1, "_showo")
$Favoriten = GUICtrlCreateLabel("Favoriten", 104, 320, 135, 30)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetFont(-1, 29, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1,$color_White)
GUISetState(@SW_SHOW)$shoot = GUICreate("shoot", 1200, 700, 300, 200)
[/autoit] [autoit][/autoit] [autoit]
GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
$Games = GUICtrlCreateLabel("Games", 545, 48, 110, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Shooter = GUICtrlCreateLabel("Shooter", 104, 320, 82, 28)
GUICtrlSetFont(-1, 16, 400, 0, "MS Sans Serif")
$Button_f = GUICtrlCreateButton("Favoriten", 208, 160, 130, 41,$WS_GROUP)
GUICtrlSetOnEvent(-1, "_showf")
$Button_s = GUICtrlCreateButton("Shooter", 344, 160, 130, 41,$WS_GROUP)
GUICtrlSetState(-1, $GUI_DISABLE)
$Button_r = GUICtrlCreateButton("RPG's", 480, 160, 130, 41,$WS_GROUP)
GUICtrlSetOnEvent(-1, "_showr")
$Button_ra = GUICtrlCreateButton("Racing", 616, 160, 130, 41,$WS_GROUP)
;$GUICtrlSetOnEvent(-1, "_showra")
$Button_st = GUICtrlCreateButton("Strategy", 752, 160, 130, 41,$WS_GROUP)
;GUICtrlSetOnEvent(-1, "_showst")
$Button_o = GUICtrlCreateButton("Other", 888, 160, 130, 41,$WS_GROUP)
;GUICtrlSetOnEvent(-1, "_showo")
GUISetState(@SW_HIDE)$rp = GUICreate("rpg", 1200, 700, 300, 200)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]
GUISetOnEvent($GUI_EVENT_CLOSE, "_exit")
$Games = GUICtrlCreateLabel("Games", 545, 48, 110, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$RPG = GUICtrlCreateLabel("RPG's", 104, 320, 82, 28)
GUICtrlSetFont(-1, 16, 400, 0, "MS Sans Serif")
$Button_f = GUICtrlCreateButton("Favoriten", 208, 160, 130, 41,$WS_GROUP)
GUICtrlSetOnEvent(-1, "_showf")
$Button_s = GUICtrlCreateButton("Shooter", 344, 160, 130, 41,$WS_GROUP)
GUICtrlSetOnEvent(-1, "_shows")
$Button_r = GUICtrlCreateButton("RPG's", 480, 160, 130, 41,$WS_GROUP)
GUICtrlSetState(-1, $GUI_DISABLE)
$Button_ra = GUICtrlCreateButton("Racing", 616, 160, 130, 41,$WS_GROUP)
; $GUICtrlSetOnEvent(-1, "_showra")
$Button_st = GUICtrlCreateButton("Strategy", 752, 160, 130, 41,$WS_GROUP)
; GUICtrlSetOnEvent(-1, "_showst")
$Button_o = GUICtrlCreateButton("Other", 888, 160, 130, 41,$WS_GROUP)
; GUICtrlSetOnEvent(-1, "_showo")
GUISetState(@SW_HIDE)While 1
[/autoit] [autoit][/autoit] [autoit]
Sleep(100)
WEnd$Button = 0
[/autoit] [autoit][/autoit] [autoit]
while 1
$Maus_pos = GUIGetCursorInfo()
Select
case $Maus_pos[4] = $Button_r And $Button <> 1
GUICtrlSetBkColor($Button_r,$RED)
$Button = 1
case $Maus_pos[4] <> $Button_r And $Button = 1
GUICtrlSetBkColor($Button_r, $GREEN)
$Button = 0EndSelect
[/autoit] [autoit][/autoit] [autoit]WEnd
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]Func _showf()
[/autoit] [autoit][/autoit] [autoit]
GUISetState(@SW_HIDE, $shoot)
GUISetState(@SW_HIDE, $rp)
GUISetState(@SW_SHOW, $Fav)
EndFunc ;==>_show1Func _shows()
[/autoit] [autoit][/autoit] [autoit]
GUISetState(@SW_HIDE, $Fav)
GUISetState(@SW_HIDE, $rp)
GUISetState(@SW_SHOW, $shoot)
EndFunc ;==>_show2Func _showr()
[/autoit] [autoit][/autoit] [autoit]
GUISetState(@SW_HIDE, $Fav)
GUISetState(@SW_HIDE, $shoot)
GUISetState(@SW_SHOW, $rp)
EndFunc ;==>_show3Func _exit()
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit] [autoit][/autoit]
Exit
EndFunc ;==>_exit