Je suis un petit nouveau et je découvre AutoHotKey qui me rend déjà de grands services. Toutefois, j'ai un petit soucis. J'utilise ces lignes de code pour ouvrir deux applications dans IE :
Code: Select all
navOpenInBackgroundTab = 4096
navOpenInNewWindow = 1
#F1::
wb := ComObjCreate("InternetExplorer.Application") ; create a IE instance
IeHwnd := wb.Hwnd
wb.Visible := True
wb.Navigate("http ------- /pages/index.xhtml") Broken Link for safety
While wb.readyState != 4 || wb.document.readyState != "complete" || wb.busy ; wait for the page to load
Sleep, 10
; Msgbox Done!
wb.Navigate("https ------- /#!/", Broken Link for safety navOpenInNewWindow)
while !wb2
wb2 := New_IE("https ------- /#!/") Broken Link for safety
While wb2.readyState != 4 || wb2.document.readyState != "complete" || wb2.busy ; wait for the page to load
Sleep, 10
Send, {TAB}{TAB}{TAB}{TAB}{TAB}{TAB}-------{TAB}-------{TAB}{ENTER}
While wb2.readyState != 4 || wb2.document.readyState != "complete" || wb2.busy ; wait for the page to load
Sleep, 10
Msgbox Done!
return
New_IE(Url) {
For wb in ComObjCreate("Shell.Application").Windows
{
If instr( wb.LocationUrl, URL) && InStr( wb.FullName, "iexplore.exe" )
return wb
else
continue
}
}
Pouvez-vous me mettre sur la piste ou m'indiquer où je me trompe. Peut-être que je dois utiliser un autre code plus simple ou plus complexe.
Pour information, j'utilise la version portable.
NB : j'ai essayé de télécharger une photo du popup mais elle est bloquée.