Search found 19 matches

by yousef_badr23
15 Mar 2023, 09:32
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)

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
by yousef_badr23
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...
by yousef_badr23
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
by yousef_badr23
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

teadrinker wrote:
03 Mar 2023, 13:42
Maybe 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
Thanks alot!!!
by yousef_badr23
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...
by yousef_badr23
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 ...
by yousef_badr23
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
by yousef_badr23
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...
by yousef_badr23
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...
by yousef_badr23
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]...
by yousef_badr23
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...
by yousef_badr23
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...
by yousef_badr23
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...
by yousef_badr23
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...
by yousef_badr23
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...
by yousef_badr23
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.
image.png
image.png (30.99 KiB) Viewed 2814 times
I deleted and replaced gecko driver multiple times but it is not helping.
by yousef_badr23
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...
by yousef_badr23
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...

Go to advanced search