Search found 10 matches

by kagato
01 Mar 2023, 10:02
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 467044

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

Hi. 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 o...
by kagato
14 Dec 2021, 23:08
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 467044

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

So I was doing some investigating with an issue that popped up, and noticed when I browse to localhost:9222, I get this message: https://i.imgur.com/9lVlLF6.png Will this have any impact on the ability to interact with Chrome? From the way the way it's worded in the subsequent link, I can't tell if ...
by kagato
12 May 2021, 12:18
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 467044

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

Thank you @teadrinker , Do you know how to get JSESSIONID which is Httponly and secure? Or how to handle API request with CSRF token instead of JSESSIONID if it is possible? Thanks Blue In reference to the CSRF token, it would depend on the site, but there's one I use that exposes the token via jqu...
by kagato
11 May 2021, 09:53
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 467044

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

Question now is .. How to create a IF statement to detect if Chrome Instance is in Debug mode? DebugPort := 9222 ;Default port for Chrome debugging IF (Chromes := Chrome.FindInstances()).HasKey(DebugPort) ;If existing instance of Chrome w/ Port 9222 found { ChromeInst := {"base": Chrome, "DebugPort...
by kagato
18 Feb 2021, 13:38
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 467044

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

teadrinker wrote:
18 Feb 2021, 12:55
kagato wrote: when I attempt to perform a reload (pageHandle.Call("Page.reload")) I get the parsing error
Thanks for the response, fixed:
Thank you kindly :dance:
by kagato
18 Feb 2021, 12:05
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 467044

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

Class LightJson: json = {"key": "value"} Obj := LightJson.Parse(json) ; json to AHK object MsgBox, % Obj.key ; set boolean value Obj.bool := LightJson.true MsgBox, % LightJson.Stringify(obj, " ") ; AHK object to json unescapedStr = ( text%A_Tab%abc new line ) escapedStr := LightJson.Stringify(unesc...
by kagato
19 Apr 2019, 10:07
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 467044

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

So I've been using this fantastic library at work to automate some mundane copy/paste work and GUI navigation, but have run into a hitch. I'm trying to simplify some of the code by pulling back multiple data points from a JSON response in a single jQuery, vs having to run the same jQuery multiple ti...
by kagato
04 Dec 2015, 18:56
Forum: Ask for Help (v1)
Topic: COM activity - clicking a button via class
Replies: 6
Views: 3207

Re: COM activity - clicking a button via class

tank wrote:value not innertext

Code: Select all

If InStr(buttons[A_index].value , "Investigate")
AHA! Could have sworn I had tried using value prior along with input, but apparently not. Thinking I should keep prior code commented out just to keep track :crazy:

Thanks to you both for such quick responses.
by kagato
04 Dec 2015, 18:35
Forum: Ask for Help (v1)
Topic: COM activity - clicking a button via class
Replies: 6
Views: 3207

Re: COM activity - clicking a button via class

The elements tags are not "button" or "action" but "input" So try with that Also if your using IE9+ you can use "getElementsByClassName()" Had tried with "input" as well with the same result - no errors but also button is never clicked. Had found a reference to the getElementsByClassName in a prior...
by kagato
04 Dec 2015, 17:38
Forum: Ask for Help (v1)
Topic: COM activity - clicking a button via class
Replies: 6
Views: 3207

COM activity - clicking a button via class

Have spent the better part of the past several days trying to get a macro to work on an internal website. Everything's been smooth except for being able to click on several buttons on the page, have probably spent a good 6+ hours bouncing around hte code. The buttons are assigned no name or ID to si...

Go to advanced search