Search found 139 matches

by Tre4shunter
18 Sep 2023, 08:56
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 33837

Re: WebView2

Any ideas if there was a change within the Webview2? All of my apps that use the printtopdf function now cut off the page when printing. The only print settings im using aside from default are setting background images and portrait mode. This has blown up like half of my apps - bit stuck what to do ...
by Tre4shunter
13 Feb 2023, 19:04
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 33837

Re: WebView2

Is there any major reasons to use 'AddHostObjectToScript' to transmit messages between AHK and the JS in your webpage, over simple Post/SendMessages? I know you can execute the 'AddHostObjectToScript' as Synchronous or ASnyc, which is useful, and pass/return data back and forth. In this simple snipp...
by Tre4shunter
08 Feb 2023, 15:28
Forum: Scripts and Functions (v2)
Topic: [Class] MySql By Just Me Conversion to V2
Replies: 4
Views: 2769

Re: [Class] MySql By Just Me Conversion to V2

As far as performance V2 vs V1, a simple query to an AWS hosted DB seems to reliably perform a little bit quicker

V1 ~12.5s
V2 ~9.5s

Table has ~80k records with about 30 Columns. total table size ~50Mb

Not bad!
by Tre4shunter
08 Feb 2023, 08:40
Forum: Scripts and Functions (v2)
Topic: [Class] MySql By Just Me Conversion to V2
Replies: 4
Views: 2769

Re: [Class] MySql By Just Me Conversion to V2

Thank you for the feedback!

I see what happened now with the 'GetNextRow' Method - I had hacked up the original class in order to modify the output to include field names. I just did it awfully.

Thanks for all your efforts!

-Tre4
by Tre4shunter
07 Feb 2023, 15:55
Forum: Scripts and Functions (v2)
Topic: [Class] MySql By Just Me Conversion to V2
Replies: 4
Views: 2769

Re: [Class] MySql By Just Me Conversion to V2

Slight modification: I notice on large queries (Say 70k records, 30 columns) everytime 'GetNextRow' tries to build the row data, it executes 'GetField' for every record. why does it need to do that? We already get the list of fields when we initially call 'GetResult' - so i just passed the fields ar...
by Tre4shunter
07 Feb 2023, 14:55
Forum: Scripts and Functions (v2)
Topic: [Class] MySql By Just Me Conversion to V2
Replies: 4
Views: 2769

[Class] MySql By Just Me Conversion to V2

Hey All, My first attempt at porting some code over to V2. All credit goes to original Authors panofish and just me . Sincere apologies for the code that i hopefully didnt butcher too much attempting to convert it.... It seems to work just fine for my purposes, but PLEASE advise me if you see anythi...
by Tre4shunter
30 Jan 2023, 10:16
Forum: Ask for Help (v2)
Topic: PowerAutomate to AutoHotKey - Browser manipulation, First Instance of Window
Replies: 2
Views: 654

Re: PowerAutomate to AutoHotKey - Browser manipulation, First Instance of Window

Hey arcylix You can probably 100% do you what are asking via AHK. I also would maybe ask this question in a different forum - this one is for Finished AHK scripts for V2, not sure if you are working in V1 or V2 as well. But for starters, if using V1 I into Chrome.ahk by Geekdude (there is now a V2 v...
by Tre4shunter
16 Aug 2022, 13:34
Forum: Scripts and Functions (v2)
Topic: WatchFolder() - monitor changes of files and/or folders
Replies: 7
Views: 3226

Re: 2.0-beta.1 - WatchFolder() (alpha.1)

This doesn't seem to work on newer beta versions > .3

It does run, just does not 'notify' of changes. Not sure where to look, could someone point me in the right direction and ill see if i can figure out how to update it to work with the newer beta versions.

Thanks again,

Tre4
by Tre4shunter
05 May 2022, 15:34
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 33837

Re: 2.0-beta.1 - WebView2

@userXeo1 -

I haven't come up with a better solution than you described above...however it seems to work perfect fine. I just bring the window in and out of view.

currently im fine just doing that, but if there is a more 'correct' method, id love to know what that would look like.

Thanks!
by Tre4shunter
03 May 2022, 10:58
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 33837

Re: 2.0-beta.1 - WebView2

Has anyone sorted out how to use SetVirtualHostNameToFolderMapping("host","path", 1) yet? I'd like to add access to some local resources, but am not sure how to implement this function. the page im loading is a local file located on a network share. I just want to be able to access some resources lo...
by Tre4shunter
25 Apr 2022, 12:52
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 33837

Re: 2.0-beta.1 - WebView2

Hi @userXeo1

that certainly does work - but what im wanting is to fully create the instance BEFORE ever showing it. I cant seem to get that to happen unless i show it briefly if only for a second, before i call .Create()
by Tre4shunter
23 Apr 2022, 20:30
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 33837

Re: 2.0-beta.1 - WebView2

Is there a way to create the wv2 control and have it be completely hidden, untill activated at a later time? This is the only way ive been able to get it to work....and its not great. g := Gui() g.Show('w0 h0') wv := WebView2.create(g.Hwnd) g.Hide() wv.CoreWebView2.Navigate('https://autohotkey.com')...
by Tre4shunter
21 Apr 2022, 10:10
Forum: Scripts and Functions (v1)
Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Replies: 610
Views: 124742

Re: Rufaydium WebDriver (no selenium/websocket)

using "--log-PATH=c:\myfile.log --enable-chrome-logs" does work to log the console messages from a web page...but whenever I add those two switches, for some reason it continuously pops up multiple cmd windows for chrome.exe which are blank. I've not yet figured out how to prevent those cmd windows ...
by Tre4shunter
20 Apr 2022, 10:59
Forum: Scripts and Functions (v1)
Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Replies: 610
Views: 124742

Re: Rufaydium WebDriver (no selenium/websocket)

Actually, I dont see a way to emulate Callbacks like we could in chrome.ahk. Is this something that would be possible with Rufaydium? Looking online i see some examples for python/selenium related to monitoring console messages etc, but havent dug in too far yet. What im referencing would be like so...
by Tre4shunter
20 Apr 2022, 09:04
Forum: Scripts and Functions (v1)
Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Replies: 610
Views: 124742

Re: Rufaydium WebDriver (no selenium/websocket)

So, at the end of the day, Rufaydium is CDP(chrome.ahk - Minus the IE websocket) being controlled via chromedriver.exe? Obviously IE(Websocket for chrome.ahk) has its issues, but its like...the devil you know vs the one you don't. Are there any reliability concerns here? I'm thinking about moving my...
by Tre4shunter
15 Apr 2022, 12:21
Forum: Scripts and Functions (v1)
Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Replies: 610
Views: 124742

Re: Rufaydium WebDriver (no selenium/websocket)

@gregster

That is correct - The process here is essentialyl the same, and i modified the config to include the --headless switch, but to no avail. so, its got to be something else.

Using --headless did in fact start it 'hidden' properly, but the printtopdf method didnt work still.
by Tre4shunter
15 Apr 2022, 10:33
Forum: Scripts and Functions (v1)
Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Replies: 610
Views: 124742

Re: Rufaydium WebDriver (no selenium/websocket)

Very impressive work!

Have been playing with it, only thing so far which you state in the example isn't fully working yet for whatever reason is printtopdf.
If anyone is able to sort that, i'd be grateful! If I come across a solution as well I will let you know.

Thanks!
by Tre4shunter
28 Dec 2021, 10:47
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 33837

Re: 2.0-beta.1 - WebView2

Hi @thqby -

I am still unable to get the printtopdf function to be a 'blocking' action. Could you possible update your example to reflect that?

Sorry for being dense here :(

Thanks again for the effort on this.

-tre4
by Tre4shunter
04 Nov 2021, 12:10
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 33837

Re: 2.0-beta.1 - WebView2

You can wait a value that changed in asynchronous callback. wait := 1 web.ExecuteScript(code, handler := WebView2.Handler((*) => wait := 0)) while wait sleep -1 And I haven't used ICoreWebView2_3::SetVirtualHostNameToFolderMapping method and don't know the application scenario. I've tried every whi...
by Tre4shunter
29 Oct 2021, 07:52
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 33837

Re: 2.0-beta.1 - WebView2

Hi thqby , Thanks for clarifying - I think that's what i ended up with, I was just frustrating myself for a bit and I think overcomplicating things. Again, this library is excellent and thank you very much for assembling what I'm sure was a load of work on your end. I'm endlessly appreciative! got a...

Go to advanced search