Bonsoir
Coté forum français :
Merci à sylvanie pour cette démonstration limpide sur le paramètre embedded.
Utilisant uniquement des fenêtres IE8 "complète", je dois définitivement ignorer cette option de _IEAttach
mais au moins, j'ai compris à quoi cela servait. Cela parait évident maintenant après ces explications.
Coté forum US :
Merci à Dale pour ses explications et ses conseils
Je suis vraiment désolé de ne pas participer directement au forum, mais je ne crois pas que mon anglais soit compréhensible.
Quant aux réponses, les traducteurs automatiques n'étant pas encore au point, je ne les comprend pas toujours.
J'ai déja analyser le code de _IEQuit dans IE.AU3, mais j'étais parti sur une mauvaise piste.
Je vais donc refaire des tests complémentaires en étudiant de plus près la fonction _IEAttach et je vous tiens au courant.
Et pour finir, merci à toi blacksoul305 pour ton aide très précieuse
PS : Fichtre, on se croirait à la remise des césars, je remercie tout le monde
---------------------------------------------------------------------------
Bonjour
J'ai avancé plus vite que prévu
Modification de la commande _IEAttach dans _IE.AU3 après ligne 388
"Local $f_NotifyStatus, $status, $f_isBrowser, $s_tmp"
Insertion des lignes suivantes
Code : Tout sélectionner
Local $string = ""
For $o_window In $o_ShellWindows
$string = $string & $o_window.Locationurl & @CRLF
next
MsgBox(0, "Shell Windows", "You have the following shell windows:" & @CRLF & @CRLF & $string)
Sauvegarde sous IE2.AU3
Nouveau programme de test
1er test
Toutes les fenêtres IE sont fermées
► Afficher le texte
Code : Tout sélectionner
#include <IE2.au3>
Opt("WinTitleMatchMode",-2)
#RequireAdmin
$Google_IE_Attached = _IEAttach("Google","url") ;~ msgbox -> Blank
If Not IsObj($Google_IE_Attached) Then
$Google_IE_Attached = _IECreate("http://www.google.fr",0,1,0)
EndIf
$Lycos_IE_Attached = _IEAttach("Lycos","url") ;~ msgbox -> http://www.google.fr
if $Lycos_IE_Attached=0 Then
$Lycos_IE_Attached = _IECreate("http://www.lycos.fr",0,1,0)
endif
$Fen_IE=_IEAttach("Google","url") ;~ msgbox -> http://www.google.fr
2ième test
Les fenêtres "GOOGLE" et "LYCOS" sont ouvertes "manuellement" avant le lancement du programme
► Afficher le texte
Code : Tout sélectionner
#include <IE2.au3>
Opt("WinTitleMatchMode",-2)
#RequireAdmin
$Google_IE_Attached = _IEAttach("Google","url") ;~ msgbox -> http://www.google.fr
;~ http://www.lycos.fr
If Not IsObj($Google_IE_Attached) Then
$Google_IE_Attached = _IECreate("http://www.google.fr",0,1,0)
EndIf
$Lycos_IE_Attached = _IEAttach("Lycos","url") ;~ msgbox -> http://www.google.fr
;~ http://www.lycos.fr
if $Lycos_IE_Attached=0 Then
$Lycos_IE_Attached = _IECreate("http://www.lycos.fr",0,1,0)
endif
$Fen_IE=_IEAttach("Google","url") ;~ msgbox -> http://www.google.fr
;~ http://www.lycos.fr
3ième test
Seule La fenêtre "GOOGLE" est ouverte "manuellement" avant le lancement du programme
► Afficher le texte
Code : Tout sélectionner
#include <IE2.au3>
Opt("WinTitleMatchMode",-2)
#RequireAdmin
$Google_IE_Attached = _IEAttach("Google","url") ;~ msgbox -> http://www.google.fr
If Not IsObj($Google_IE_Attached) Then
$Google_IE_Attached = _IECreate("http://www.google.fr",0,1,0)
EndIf
$Lycos_IE_Attached = _IEAttach("Lycos","url") ;~ msgbox -> http://www.google.fr
if $Lycos_IE_Attached=0 Then
$Lycos_IE_Attached = _IECreate("http://www.lycos.fr",0,1,0)
endif
$Fen_IE=_IEAttach("Google","url") ;~ msgbox -> http://www.google.fr
;~ http://www.lycos.fr
Seule la première fenêtre ouverte par _IECreate est reconnue par "ObjCreate("Shell.Application")" de la commande _IEAttach
J'ai fait le test sur plusieurs PC
OK : XP + IE8
NOK : Vista + IE8, Windows 7 + I8, Windows 7 + IE9
Le problème vient-il de _IECreate, de la configuration de Windows ou d'IE ?