Search found 20 matches

by erohtar
15 Jul 2021, 08:22
Forum: Scripts and Functions (v1)
Topic: NeutronC - Run GUIs in Chrome!
Replies: 10
Views: 4195

Re: NeutronC - Run GUIs in Chrome!

Just to try it out, I adapted GeekDude's Bootstrap GUI and my AHK for NeutronC. It was quite simple really! https://i.imgur.com/f5GMBcI.png Attached file set should be ready to run and test on any PC, as long as your Chrome path is "C:\Program Files\Google\Chrome\Application\chrome.exe" In HTML file...
by erohtar
14 Jul 2021, 12:17
Forum: Scripts and Functions (v1)
Topic: NeutronC - Run GUIs in Chrome!
Replies: 10
Views: 4195

NeutronC - Run GUIs in Chrome!

This Library uses GeekDude 's Chrome.ahk , and tries to replicate his Neutron.ahk based GUIs. He has done amazing and super impressive work, and I wondered if something like Neutron could also be created in Chrome instead of the IE/Trident base that Neutron uses. NeutronC https://i.imgur.com/pHavy8G...
by erohtar
13 Jul 2021, 09:19
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 463178

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

What is the way to retrieve an object contents that's written to the console? Say I wanted to retrieve sender and value here. <button onclick="console.log({'sender':'button1', 'value':'clicked'})">Click Me!</button> msgbox % Event.params.message.text ;this gives me [object Object] Edit: One roundabo...
by erohtar
13 Jul 2021, 08:15
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 463178

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

@Xeo786 Thank you! That .value correction and your function are very helpful! :)
by erohtar
13 Jul 2021, 02:35
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 463178

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

I'm just a beginner with javascript, but shouldn't these work? ;1 js = myFunc(); function myFunc() {const json = '{"result":true, "count":42}'; const obj = JSON.parse(json); return obj.count;}; msgbox % pageInst.Evaluate(js) ;2 js = myFunc(); function myFunc() {const json = '{"result":true, "count":...
by erohtar
13 Jul 2021, 02:19
Forum: Scripts and Functions (v1)
Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids (now for v2!)
Replies: 141
Views: 61223

Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids

Tre4shunter Ah! Actually I vaguely remembered seeing some code in Chrome.ahk that looked for a free port number - that must've been the commented out example you just mentioned! Thank you for pointing it out! Based on latest testing, I see that two separate NeutronC windows work as expected as long...
by erohtar
12 Jul 2021, 13:32
Forum: Scripts and Functions (v1)
Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids (now for v2!)
Replies: 141
Views: 61223

Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids

burque505 So I've come across the first major roadblock with NeutronC. When I run two GUIs simultaneously, the second GUI doesn't work properly. In the above example script, if I just make a copy of it and run both, only the first one responds to button clicks and has the dynamic content (mousePos)...
by erohtar
08 Jul 2021, 13:22
Forum: Scripts and Functions (v1)
Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids (now for v2!)
Replies: 141
Views: 61223

Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids

burque505 Oh okay, got it. Those functions I added to chrome.ahk were just to make automating Chrome easier. They reduce the effort involved in getting/setting values based on different kind of identifiers, waiting for elements to show up or have a particular value, or reading a table into an array...
by erohtar
08 Jul 2021, 12:07
Forum: Scripts and Functions (v1)
Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids (now for v2!)
Replies: 141
Views: 61223

Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids

burque505 Sorry I'm a little lost on what exactly are we testing? But your script does everything it's supposed to though (I changed the paths to my chrome exe and profile), and then it ran, showed the alert, downloaded the text file, and exited cleanly. And that little silent download js snippet l...
by erohtar
08 Jul 2021, 11:25
Forum: Scripts and Functions (v1)
Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids (now for v2!)
Replies: 141
Views: 61223

Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids

burque505 Yes sure! Though it's just GeekDude's Chrome.ahk, with a few functions I created or enhanced for my use. My additions are at the top of the code. chm_launch(chromeExe:="", chromeProfile:="", chromeVisible:=0, chromeIncognito:=0, chromeParams:="") { If (chromeExe <> "") IfNotExist, %chrome...
by erohtar
08 Jul 2021, 11:12
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 463178

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

@Tre4shunter
:facepalm:
That was it!! I knew it had to be something silly I was doing! ugh.. sorry!
And thank you so much for pointing it out! :salute:
by erohtar
08 Jul 2021, 08:01
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 463178

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Tre4shunter Yeah I had that earlier in my code, and it would always throw an error: Chrome indicated error in response Specifically: {"code":-32601,"message":"'Console.Enable' wasn't found"} Line# 481: response := this.responses.Delete(ID) 482: if (response.error) ---> 483: Throw,Exception("Chrome ...
by erohtar
07 Jul 2021, 15:35
Forum: Scripts and Functions (v1)
Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids (now for v2!)
Replies: 141
Views: 61223

Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids

joedf Oh it's not github worthy yet, but it's a start towards Chrome based GUIs, if it takes off. Here is my AHK for launching that GUI Global chromeInst1,pageInst1 chromeExe=E:\Portables2\Chrome\App\Chrome-bin\chrome.exe chromeProfile=E:\Portables2\Chrome\Data\profile chromeW := 640 chromeH := 700...
by erohtar
07 Jul 2021, 13:37
Forum: Scripts and Functions (v1)
Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids (now for v2!)
Replies: 141
Views: 61223

Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids

Given the fact that future of IE/Trident isn't bright, I've been looking into somehow mimicking same/similar functionality using Chrome. I'm no expert like him, but here's GeekDude's Template running in Chrome (using chrome.ahk): https://i.imgur.com/5zX0kHh.png I simply ran Chrome in app mode (remov...
by erohtar
07 Jul 2021, 11:54
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 463178

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Tre4shunter Thank you, I tried the code and I got partial success. After creating my chromeInstance, when I call that custom javascript function from ahk, the callback function gets triggered, but none of the event data it checks for is populated. They're all blank. Only thing that I could find was...
by erohtar
06 Jul 2021, 17:33
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 463178

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

Is there any way to have an ahk function called when something on the webpage in Chrome is interacted with? Maybe via some fancy eventListener? Something like how when using Neutron library, a button click on the web app would call a function in the ahk script. Edit: Forgot to mention that the page ...
by erohtar
01 Jul 2021, 15:36
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 463178

Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!

I honestly LOVE this library - I had it all set up for myself with some custom functions added to make my operations easier. I also got it set up so it works with portable chrome, runs in incognito each time - basically a setup that I could port to pretty much any other computer easily and have the ...
by erohtar
24 Jun 2021, 13:41
Forum: Scripts and Functions (v1)
Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids (now for v2!)
Replies: 141
Views: 61223

Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids

burque505 YESS!! That's exactly what I needed - many thanks mate! I'm looking up more information on that execScript method and anything else I can find around it. This just opens up whole new channel of communication between AHK and Neutron window. Below ahk code (with zero changes to html) is som...
by erohtar
24 Jun 2021, 11:00
Forum: Scripts and Functions (v1)
Topic: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids (now for v2!)
Replies: 141
Views: 61223

Re: [Library] Neutron.ahk - AutoHotkey Web GUIs on Steroids

This library is phenomenal and a game changer - thanks for creating it, Geek Dude! I had some QQ that I wasn't able to find the answer to here, or the Neutron Webinar: 1) How do I call a JS function that I've added to the html code from AHK? Let's say something as simple as - function jsTest() { ale...

Go to advanced search