PLEASE HELP ME SIR REGARDING THE ABOVE QUESTION....̣.,,
![🙏](http://cdn.jsdelivr.net/emojione/assets/3.1/png/64/1f64f.png)
![🙏](http://cdn.jsdelivr.net/emojione/assets/3.1/png/64/1f64f.png)
![🙏](http://cdn.jsdelivr.net/emojione/assets/3.1/png/64/1f64f.png)
Need to add 2 command line switches --disable-web-security --user-data-dir="C://YourDir".edhalsim wrote: ↑12 Dec 2022, 15:58I hope this isn't a stupid question. Is there any way to get the contents of an iFrame whose domain is different? I know cross-domain scripting may prevent it, but I need to check the attributes of an element inside the iframe. If Autohotkey doesn't support it, can you think of any other scripting solutions for Chrome that may allow it?
Thanks.
"--disable-site-isolation-trials" Would also be needed, seemalcev wrote: ↑05 Feb 2023, 15:02Need to add 2 command line switches --disable-web-security --user-data-dir="C://YourDir".edhalsim wrote: ↑12 Dec 2022, 15:58I hope this isn't a stupid question. Is there any way to get the contents of an iFrame whose domain is different? I know cross-domain scripting may prevent it, but I need to check the attributes of an element inside the iframe. If Autohotkey doesn't support it, can you think of any other scripting solutions for Chrome that may allow it?
Thanks.
edhalsim wrote: ↑25 Feb 2023, 10:38Hi. How can I run two instances of Chrome simultaneously each with their own commands? For example, in one Chrome I want to press F1 and have it execute and in another Chrome I want to press F2 and do something else. I tried hard coding the debugger port on a copy of Chrome.ahk to 9223 and having one script use that and one script use the regular one, but that doesn't work. Chrome.ahk has code in it to change debugger ports on its own, but so far I haven't been able to get it to do what I want.
Thanks for the help.
Code: Select all
DebugPort := 9222
DebugPortTwo := 9223
IF (Chromes := Chrome.FindInstances()).HasKey(DebugPort)
{
ChromeInst := {"base": Chrome, "DebugPort": "9222"}
}
ELSE ; If port 9222 debug instance of Chrome found, launch one
{
AHKProfilePath = C:\Users\%A_UserName%\AppData\Local\Google\Chrome\AHK
IFNotExist, %AHKProfilePath%
{
FileCreateDir, %AHKProfilePath%
}
ChromeInst := new Chrome(AHKProfilePath,,"--start-maximized",,9222)
}
IF (ChromesTwo := Chrome.FindInstances()).HasKey(DebugPortTwo)
{
ChromeInstTwo := {"base": Chrome, "DebugPort": "9223"}
}
ELSE
{
AHKProfilePathTwo = C:\Users\%A_UserName%\AppData\Local\Google\Chrome\AHKTwo
IFNotExist, %AHKProfilePathTwo%
{
FileCreateDir, %AHKProfilePathTwo%
}
ChromeInstTwo := new Chrome(AHKProfilePathTwo,,"--start-maximized",,9223)
}
FirstInst := ChromeInst.GetPage()
SecondInst := ChromeInstTwo.GetPage()
I also get this problem suddenly from yesterday. All scripts applied Chrome.ahk worked fine before. I didn't even touch the computer. The Windows Update Log seems didn't have any new updates recently.neogna2 wrote: ↑01 Mar 2023, 14:43It appears the recent Windows update related to Internet Explorer made Chrome.ahk stop working on a Windows 10 PC I have.
https://arstechnica.com/gadgets/2023/02/microsoft-will-forcibly-remove-internet-explorer-from-most-windows-10-pcs-today/
Chrome starts but I then get an error popup saying "Websocket Error!".
Trying to start Internet Explorer now redirects to Edge. There are still ways to force open Internet Explorer but none of the IE settings proposed earlier in this thread as workarounds for the websocket error solves it now.
Does anyone here have that update installed on Windows 10 yet still have working Chrome.ahk scripts?
Did you have to change some new setting to get it working?
What's the current best alternative (if one exists) for headless browser scripting through AutoHotkey (v1 or v2)?
3. Edit registry to stop Internet Explorer to Edge redirect
You can stop Internet Explorer to Edge redirect by disabling the IEToEdge Browser Helper Object (BHO) from the registry editor. Here’s how.
Open the registry editor.
Paste the below path in the address bar and press Enter.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Ext\CLSID
On the right panel, double-click on the “{1FD49718-1D00-4B19-AF5F-070AF6D5D54C}” value.
Change the Value Data from “1” to “0”.
Click on the “Ok” button.
Close the registry editor.
Restart Windows 10.
Return to “Scripts and Functions (v1)”
Users browsing this forum: MrHue, trouble003 and 271 guests