Hallo liebe Community,
ich würde eure Hilfe brauchen...
Also ich habe das Problem das der erste Browser nicht immer angezeigt wird und ich würde gerne wissen wieso das so is...
und wenn möglich beheben ;P
eure klugen Köpfe sind gefragt...
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("BLUB", 625, 465, 640, 280)
$Button1 = GUICtrlCreateButton("erster Browser", 136, 96, 113, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("zweiter Browser", 256, 96, 113, 25, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Nichts", 16, 96, 113, 25, $WS_GROUP)
$Obj1 = ObjCreate("Shell.Explorer.2")
$Obj1_ctrl = GUICtrlCreateObj($Obj1, 8, 128, 610, 292)
GUICtrlSetState(-1, $GUI_Hide)
$Obj2 = ObjCreate("Shell.Explorer.2")
$Obj2_ctrl = GUICtrlCreateObj($Obj2, 8, 128, 610, 292)
GUICtrlSetState(-1, $GUI_Hide)
GUISetState () ;Show GUI
[/autoit] [autoit][/autoit] [autoit]$Obj1.navigate("http://www.google.at")
$Obj2.navigate("http://www.autoit.de")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
[/autoit] [autoit][/autoit] [autoit]GUICtrlSetState($Button1, $GUI_Disable)
GUICtrlSetState($Button2, $GUI_Enable)
GUICtrlSetState($Button3, $GUI_Enable)
GUICtrlSetState($Obj1_ctrl, $GUI_SHOW)
GUICtrlSetState($Obj2_ctrl, $GUI_HIDE)
Case $Button2
GUICtrlSetState($Button1, $GUI_Enable)
GUICtrlSetState($Button2, $GUI_Disable)
GUICtrlSetState($Button3, $GUI_Enable)
GUICtrlSetState($Obj1_ctrl, $GUI_HIDE)
GUICtrlSetState($Obj2_ctrl, $GUI_SHOW)
Case $Button3
[/autoit] [autoit][/autoit] [autoit]GUICtrlSetState($Button1, $GUI_Enable)
GUICtrlSetState($Button2, $GUI_Enable)
GUICtrlSetState($Button3, $GUI_Disable)
GUICtrlSetState($Obj1_ctrl, $GUI_HIDE)
GUICtrlSetState($Obj2_ctrl, $GUI_HIDE)
EndSwitch
WEnd
Danke für eure Bemühungen
Mit freundlichen Grüßen
LatroX