Hello folks. I'm new to the forum, beginner user with ahk. I'm hoping someone can lend a hand on a script I'm working with. I run windows 10, and use edge as my primary browser. of course, IE is installed, but I don't use it much. I have a script that doesn't want to run unless IE browser is actually opened. If I have it opened, then the script runs fine. I'm not sure what to do to get the script to run without IE having to be opened. Please let me know what other info you will need to help me out. Thanks. Here is a portion of the script, I think the issue might lie here, but I can provide the whole script if needed: (username and password removed for this example.)
Code: Select all
#SingleInstance force
DetectHiddenWindows, On
gosub,inicheck
Checked:
pwb := ComObjCreate("InternetExplorer.Application")
pwb.Navigate("http://127.0.0.1:8000/Kernel?function=AskAuthKey&Login="username "&Password="password "")
While pwb.ReadyState != 4
Sleep 10
Var1 := pwb.document.getElementsByTagName("body")[0].innertext
Sleep, 20
pwb.quit()