Quand je lance l'Ouverture d'une fenetre IE, il m'est impossible d'intéragire avec le Gui, même si la page est fermé :/
Comment arrangé cela ?
Merci
Code : Tout sélectionner
; A simple custom messagebox that uses the MessageLoop mode
#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <INet.au3>
Opt('MustDeclareVars', 1)
_Main()
Func _Main()
Local $YesID, $NoID, $ExitID, $msg
GUICreate("Custom Msgbox", 210, 80)
GUICtrlCreateLabel("Please click a button!", 10, 10)
$YesID = GUICtrlCreateButton("Yes", 10, 50, 50, 20)
$NoID = GUICtrlCreateButton("Internet", 80, 50, 50, 20)
$ExitID = GUICtrlCreateButton("Exit", 150, 50, 50, 20)
GUISetState() ; display the GUI
Do
$msg = GUIGetMsg()
Select
Case $msg = $YesID
MsgBox(0, "You clicked on", "Yes")
Case $msg = $NoID
_IECreate("https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=5EFCDJCQQ9V34&lc=CA&item_name=AntiPorno%20Win%20%2d%20Achat%20a%20vie&amount=1%2e00¤cy_code=EUR&button_subtype=services&bn=PP%2dBuyNowBF%3abtn_buynowCC_LG%2egif%3aNonHosted")
Case $msg = $ExitID
MsgBox(0, "You clicked on", "Exit")
Case $msg = $GUI_EVENT_CLOSE
MsgBox(0, "You clicked on", "Close")
EndSelect
Until $msg = $GUI_EVENT_CLOSE Or $msg = $ExitID
EndFunc ;==>_Main

