Is there a way to disable headless mode without starting a new browser object/ restarting the script?
I want to be able to fix login trouble / captcha if they occur then hide the window again, but keep headless mode as the default since errors like captcha are rare
Search found 19 matches
- 15 Mar 2023, 09:32
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 614
- Views: 131914
- 13 Mar 2023, 14:51
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 614
- Views: 131914
Re: Chrome Headless
PS: Are you planning to support AHK v2? Yes Rufaydium V2 Alpha Branch [Mod edit: Fixed quote tags, how they were meant to be, I guess.] Thanks for your great effort!! I tried my hand at V2 and would like to detail some hiccups (and how I fixed them) while trying the demo you posted at the readme. T...
- 07 Mar 2023, 12:10
- Forum: Wish List
- Topic: Possible feature to make AHK working with Browser
- Replies: 2
- Views: 1822
Re: Possible feature to make AHK working with Browser
There is a tutorial series on youtube for automating browsers with AHK, using UIA library maintained by Descolada. Search for it at
Joe - AUTOHOTKEY Guru channel
Joe - AUTOHOTKEY Guru channel
- 03 Mar 2023, 16:39
- Forum: Ask for Help (v2)
- Topic: How to access variables of Gui callback event in AHK v2? Topic is solved
- Replies: 11
- Views: 1477
Re: How to access variables of Gui callback event in AHK v2? Topic is solved
Thanks alot!!!teadrinker wrote: ↑03 Mar 2023, 13:42Maybe like this:Code: Select all
myGui:=Gui() myGui.onEvent('Close', (*) => myGui.Destroy()) editObj := myGui.addEdit() myGui.addButton(,"Submit").onEvent("Click",(*)=> myGui.Hide()) myGui.show() winwaitclose myGui if !WinExist() return msgbox editObj.Text
- 03 Mar 2023, 13:00
- Forum: Ask for Help (v2)
- Topic: How to access variables of Gui callback event in AHK v2? Topic is solved
- Replies: 11
- Views: 1477
Re: How to access variables of Gui callback event in AHK v2? Topic is solved
The problem with this approach is that I can't close the gui to stop the script, it will always get the control text. Why not: myGui:=Gui() myGui.onEvent('Close', (*) => ExitApp()) editObj := myGui.addEdit() myGui.addButton(,"Submit").onEvent("Click",(*)=> myGui.Hide()) myGui.show() winwaitclose my...
- 03 Mar 2023, 11:26
- Forum: Ask for Help (v2)
- Topic: How to access variables of Gui callback event in AHK v2? Topic is solved
- Replies: 11
- Views: 1477
Re: How to access variables of Gui callback event in AHK v2? Topic is solved
Thanks for all the responses
- 03 Mar 2023, 11:25
- Forum: Ask for Help (v2)
- Topic: How to access variables of Gui callback event in AHK v2? Topic is solved
- Replies: 11
- Views: 1477
Re: How to access variables of Gui callback event in AHK v2? Topic is solved
You do not even need vInput. Moreover, you don't need submit() in this case. :) myGui:=Gui() editObj := myGui.addEdit() myGui.addButton(,"Submit").onEvent("Click",(*)=> myGui.Hide()) myGui.show() winwaitclose myGui msgbox editObj.Text The problem with this approach is that I can't close the gui to ...
- 03 Mar 2023, 10:55
- Forum: Ask for Help (v2)
- Topic: How to access variables of Gui callback event in AHK v2? Topic is solved
- Replies: 11
- Views: 1477
Re: How to access variables of Gui callback event in AHK v2? Topic is solved
There are numerous ways to do this. One would be: myGui:=Gui() myGui.addEdit("vInput") myGui.addButton(,"Submit").onEvent("Click", submit_handler) myGui.show() submit_handler(ctrl, *) { output := ctrl.gui.submit() msgbox(output.Input) } I want to use the variable outsite the callback function
- 03 Mar 2023, 10:11
- Forum: Ask for Help (v2)
- Topic: How to access variables of Gui callback event in AHK v2? Topic is solved
- Replies: 11
- Views: 1477
How to access variables of Gui callback event in AHK v2? Topic is solved
I am trying to get the content of a edit control in a Gui i create in AHK v2, triggered after pressing a submit button, as the following code: myGui:=Gui() myGui.addEdit("vInput") myGui.addButton(,"Submit").onEvent("Click",(*)=> output:=myGui.submit()) myGui.show() winwaitclose myGui msgbox output.I...
- 25 Feb 2023, 06:31
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 614
- Views: 131914
Chrome Headless
Headless mode no longer working after Chrome update to version 110.0.5481.178. Is this behavior expected or just my pc? I searched the internet and the only relevant topic is that selenium changed its headless mode argument. PS: Are you planning to support AHK v2? Thanks! Update: Used the same metho...
- 19 Dec 2022, 05:42
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 614
- Views: 131914
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
When trying to get the size or location of any element in chrome, I get the following error: Size: {"error":"unknown command","message":"unknown command: Cannot call non W3C standard command while in W3C mode","stacktrace":"Backtrace:\n\tOrdinal0 [0x004FACD3+2075859]\n\tOrdinal0 [0x0048EE61+1633889]...
- 18 Oct 2022, 02:33
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 614
- Views: 131914
Re: Rufaydium WebDriver 1.7.0 (no selenium/websocket)
I am trying to get headless mode for chrome to work on my project (following updates on my amazon orders), but I wouldn't get many of the elements unless i turned headless mode off. I tried both browser.capabilities.HeadlessMode := True and browser.capabilities.addArg(" --window-size=1920,1080 ") b...
- 17 Oct 2022, 11:47
- Forum: AHK Studio
- Topic: AHK Studio
- Replies: 1179
- Views: 626134
Re: AHK Studio
Continuing: 1. I've checked if my problem isn't related to UAC (User Account Control) as found in FAQ and suggested in one of the other threads. So I asked my system administrator to temporarily elevate rights to admin level when running AHK Studio. Result: it didn't help, still the same message oc...
- 08 Oct 2022, 07:02
- Forum: AHK Studio
- Topic: AHK Studio
- Replies: 1179
- Views: 626134
Re: AHK Studio
Continuing: 1. I've checked if my problem isn't related to UAC (User Account Control) as found in FAQ and suggested in one of the other threads. So I asked my system administrator to temporarily elevate rights to admin level when running AHK Studio. Result: it didn't help, still the same message oc...
- 25 Sep 2022, 07:14
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 614
- Views: 131914
Re: Rufaydium WebDriver 1.7.0 (no selenium/websocket)
I am trying to get headless mode for chrome to work on my project (following updates on my amazon orders), but I wouldn't get many of the elements unless i turned headless mode off. I tried both browser.capabilities.HeadlessMode := True and browser.capabilities.addArg(" --window-size=1920,1080 ") b...
- 25 Sep 2022, 04:17
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 614
- Views: 131914
Re: Rufaydium WebDriver 1.7.0 (no selenium/websocket)
I am trying to get headless mode for chrome to work on my project (following updates on my amazon orders), but I wouldn't get many of the elements unless i turned headless mode off. I tried both browser.capabilities.HeadlessMode := True and browser.capabilities.addArg(" --window-size=1920,1080 ") br...
- 31 Aug 2022, 02:23
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 614
- Views: 131914
Re: Rufaydium WebDriver 1.7.0 (no selenium/websocket)
After reinstalling firefox, I keep getting this error.
I deleted and replaced gecko driver multiple times but it is not helping.- 26 Aug 2022, 10:47
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 614
- Views: 131914
Re: Rufaydium WebDriver 1.7.0 (no selenium/websocket)
When I access some streaming sites through the chrome webdriver, the websites block me with errors such as "Close Dev tools and reload" or open debugger mode in paused, then crash the site. Is there a workaround for this problem? These sites work fine using chrome normally (unless I use developer t...
- 26 Aug 2022, 10:29
- Forum: Scripts and Functions (v1)
- Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
- Replies: 614
- Views: 131914
Re: Rufaydium WebDriver 1.7.0 (no selenium/websocket)
When I access some streaming sites through the chrome webdriver, the websites block me with errors such as "Close Dev tools and reload" or open debugger mode in paused, then crash the site. Is there a workaround for this problem? These sites work fine using chrome normally (unless I use developer to...