Search found 32 matches

by KusochekDobra
22 Jul 2018, 05:45
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

Also noticed that adding a function call by event "Close" terminates the script earlier than the script itself describes. Sometimes the code finishes correctly, but more often it is incorrect: #SingleInstance, Force #NoEnv ;OnExit, BeforeExit #Include <Chrome> ; >>--++--<< >>--++--<< ProfilePath := ...
by KusochekDobra
21 Jul 2018, 18:33
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

Hello! I tried to add to my code processing event "OnExit" and noticed, that the GUI is freeze after close a browser window. After that, I added messages on "OutputDebug" and it turned out that exit from program is unreachable. Could you check this effect on your system? #SingleInstance, Force #NoEn...
by KusochekDobra
19 Jun 2018, 09:17
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

Help me please. I do not understand, how to use Chrome browser with "Chrome.ahk" in "Headless" mod. Can you give an example? Check out the ExportPDF.ahk example When I run example, MsgBox tells me "Could not retrieve page!". This is exactly the problem, because of which I can not understand how to ...
by KusochekDobra
13 Jun 2018, 12:12
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

Help me please.
I do not understand, how to use Chrome browser with "Chrome.ahk" in "Headless" mod.
Can you give an example?
by KusochekDobra
18 May 2018, 14:01
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

Is it possible to connect to events such as Target.targetCreated ? This feature would reduce the possibility of errors, telling the ahk-code what him need to create a new connection. I haven't tested it, but I think if use the Target.setDiscoverTargets method that you can receive those events using...
by KusochekDobra
15 May 2018, 12:24
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

Is it possible to connect to events such as Target.targetCreated? This feature would reduce the possibility of errors, telling the ahk-code what him need to create a new connection.
by KusochekDobra
14 May 2018, 10:35
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

And another question. Is it possible to replace this exception: Call(DomainAndMethod, Params:="", WaitForResponse:=True) { if !this.Connected throw Exception("Not connected to tab") ; ... other code } To return a connection to the state "disabled"? I think that this is logical, if all the tabs are c...
by KusochekDobra
14 May 2018, 08:51
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

Sometimes, when creating an instance of a class Chrome , passing an address to the constructor, the method WaitForLoad() returns flow control before the page loads: #NoEnv #SingleInstance, Force #Include Chrome.ahk SetBatchLines, -1 JS := "alert(document.querySelector('.rightside .nav-link').textCon...
by KusochekDobra
12 May 2018, 19:50
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

Can I ask you to add the name of the function to the constructor of class Page by the third parameter, which will be called when the connection is broken? For example: __New(wsurl, fnCallback:="", freeFunc := "") { this.fnCallback := fnCallback this.freeFunc := freeFunc this.BoundKeepAlive := this.C...
by KusochekDobra
10 May 2018, 12:55
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

It will be very powerful instrument! :)

In "Source code (zip)" - link => in "Chrome.ahk" file => in 72 code-line have a one missing letter "t" (...\App Pahs\chrome.exe).
by KusochekDobra
08 May 2018, 19:00
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

#1 In fact, it was just a guess witch I did not bother checking, and now I look like a fool. Apparently, somewhere in the implementation, this method has already been created. Thank you for this clarification. But for greater reliability, it can come in handy. :) #2 I use for automatic understandin...
by KusochekDobra
30 Apr 2018, 20:34
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

Thank you, this is very much noticed! ;) The method GetPageBy() is overridden, passing to the constructor Class Page two parameters. And it does not have to be an extension. I would like to see this tool to be in the future part of the library and just to not clutter up the author's original code, i...
by KusochekDobra
29 Apr 2018, 12:39
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

After a little reflection, I wrote an a simple extension for the class Chrome , which eliminates the need to change the original code and supports the functionality described earlier. Class ChromeEx Extends Chrome { __New(ProfilePath:="", URL:="about:blank", Flags:="", ChromePath:="", DebugPort:=922...
by KusochekDobra
24 Apr 2018, 19:25
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

If under the control of the script will be several pages and all of them will be send a messages, then we need implement the concept of the event stack for make a manage all of them without transmittance. For example: s := New Stacker() Esc:: ExitApp Class Stacker { __New() { this.eventStack := [] m...
by KusochekDobra
22 Apr 2018, 04:53
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

Oh, it's so great!!!

In a large family AHK it is customary to be generous to knowledge. It's nice to be a part of this!
Look forward to continuing! :thumbup:
by KusochekDobra
18 Apr 2018, 17:26
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

The only trouble-free solution that we managed to find is to activate the console domain: PageInst.Call("Console.enable") And catch incoming messages "Console.messageAdded" I had to change the "Chrome" class a little, adding the sixth parameter to the call constructor, here and there to transfer it ...
by KusochekDobra
14 Apr 2018, 10:45
Forum: AutoHotkey v2 Development
Topic: scrap commands?
Replies: 48
Views: 7487

Re: scrap commands?

For me, parentheses always describe the boundaries of priority, which always include something important. Functions and methods always accept or NOT accept parameters - this is important! Boolean operations decorated with round brackets are more pleasant to read. So they turn from a line of text int...
by KusochekDobra
11 Apr 2018, 18:13
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 150
Views: 52906

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

It's a good job!!! Great thanks!!! But how can i add event listener in JavaScript-code, which launches the functions in AHK-code? Next simple example shows the coordinates of a click in a fixed div-block, if click on the button "Click inform" when the page loads: #NoEnv #SingleInstance, Force SetBat...
by KusochekDobra
08 Aug 2017, 16:47
Forum: Scripts and Functions
Topic: Memory Process reading/Writing & Pattern Scans (Array of bytes)
Replies: 18
Views: 12301

Re: Memory Process reading/Writing & Pattern Scans (Array of bytes)

This is Great work!!! Thank You very much for so awesome, simple and beautiful solution!!!
Дай Вам Бог здоровья и долгих и интересных дней жизни! =)

Go to advanced search