Search found 784 matches

by GeekDude
21 Apr 2018, 22:38
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 61
Views: 5778

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 cons...
by GeekDude
10 Apr 2018, 12:40
Forum: Tips and Tricks
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 100
Views: 42077

Re: [GUI] Use HTML and CSS for your GUIs!

My socket library also ships with a super bare-bones HTTP server implementation that you could extend.

https://github.com/G33kDude/Socket.ahk/ ... Server.ahk
by GeekDude
22 Mar 2018, 23:55
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 61
Views: 5778

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

Hello Why does the Jxon_Dump method return the "menor pre u00E7 o do livro" value when the correct text is "menor pre ç o do livro"? I'm using the call below to bring the content of the list that is in the url https://www.estantevirtual.com.br/livros/robert-t-kiyosaki/pai-rico-p...
by GeekDude
21 Mar 2018, 16:59
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 61
Views: 5778

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

Chrome.ahk v1.1 has been released Please see the original post for a link to the release and revision history pages. Changes ⋅  class Chrome 's constructor now accepts additional flags for chrome ⋅ Pages are no longer connected to using Chrome.GetTab() Additions ⋅&n...
by GeekDude
18 Mar 2018, 09:49
Forum: Scripts and Functions
Topic: CodeQuickTester - Write and run code without touching the file system
Replies: 122
Views: 26035

Re: CodeQuickTester - Write and run code without touching the file system

CodeQuickTester v2.6 has been released Please see the original post for a link to the release and revision history pages. Changes ⋅ Stopped publish from always stripping comment-only lines ⋅ Made "Open Help File" open to the selected keyword Additions ⋅ Find ...
by GeekDude
05 Mar 2018, 13:30
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 61
Views: 5778

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

First fix was easy. Simply add https://github.com/G33kDude/WebSocket.ahk , https://github.com/cocobelgica/AutoHotkey-JSON to the already existing (empty) Folders. But then i got this error mesage by starting example https://github.com/G33kDude/Chrome.ahk/blob/master/Examples/InjectJS.ahk This error...
by GeekDude
25 Jan 2018, 23:14
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 61
Views: 5778

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

Thanks GeekDude. That’s great! :) is there a way to get the scroll bar position in order to know where in the page the current view is? You could run some javascript on the page that gets the scroll position and use the returned value. For example: Loop { Position := Tab.Evaluate("window.pageY...
by GeekDude
23 Jan 2018, 20:33
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 61
Views: 5778

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

If you have a chrome instance already running in debug mode, you can skip the initialization of the Chrome class and just call Chrome.GetTab() directly. For example:

Code: [Select all]GeSHi © Codebox Plus

#Include Chrome.ahk

TabInst := Chrome.GetTab()
TabInst.Evaluate("alert('hi!');")
by GeekDude
23 Jan 2018, 17:29
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 61
Views: 5778

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

I've been playing with this & it is pretty awesome! I've adapted it to use QuerySelectorAll (so items that are an array can be specified) I've also worked-through getting the OuterHTML (however there doesn't seem to be a way to get InnerText) Great! I'm glad to hear you like it. Feel free to sh...
by GeekDude
22 Jan 2018, 12:31
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 47
Views: 2727

Re: [Competition] AHK dwitter!

Will join at home, from time to time I go to the irc channel but it's mostly about gambling there it seems xD The various minigames going on in there drive up engagement, I think, even if it is a little off-topic. Do not be deceived though, if someone with knowledge pertaining to your question is o...
by GeekDude
22 Jan 2018, 01:09
Forum: AutoHotkey v2 Development
Topic: Object declaration syntax Topic is solved
Replies: 20
Views: 777

Re: Object declaration syntax Topic is solved

I've never studied the AutoHotkey source directly, so I may be a little off the mark, but this is what I understand the situation to be: It'd be more convenient to use, but the current way it works is very simple to implement and maintain. Essentially, any line that begins with an operator character...
by GeekDude
21 Jan 2018, 22:17
Forum: AutoHotkey v2 Development
Topic: Object declaration syntax Topic is solved
Replies: 20
Views: 777

Re: Object declaration syntax Topic is solved

I haven't done much with v2, but in v1 you can put your object into a continuation section and format it however you want (as shown in my tips thread ). For v2 you may have to specify the Quotes option after LTrim Join . ; http://www.json.org/example.html MyObject := ( LTrim Join { "glossary&qu...
by GeekDude
21 Jan 2018, 12:08
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 61
Views: 5778

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

Ah, hm. This script works by creating a hidden web control (IE) and using Microsoft's WebSocket object through COM. It then uses this WebSocket to connect to Chrome. On my system, IE is forbidden from accessing localhost , but is allowed to access 127.0.0.1 . It looks like your system is blocking 12...
by GeekDude
17 Jan 2018, 12:05
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 61
Views: 5778

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

What did the security error dialog say? If it was a problem that prevented the websocket form connecting, it would make sense that it would get stuck waiting for the connection to complete.
by GeekDude
17 Jan 2018, 07:39
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 61
Views: 5778

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

Make sure you're downloading the release file "Chrome.ahk_v1.0.zip" from the releases page, not the source code. As you have learned, GitHub does not include submodules (i.e. AutoHotkey-JSON and WebSocket.ahk) in its source downloads. The release has all the #Include 's built in (no lib fo...
by GeekDude
16 Jan 2018, 20:44
Forum: Scripts and Functions
Topic: [Competition] AHK dwitter!
Replies: 47
Views: 2727

Re: [Competition] AHK dwitter!

:)
Image
by GeekDude
16 Jan 2018, 17:38
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 61
Views: 5778

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

Chrome.ahk Automate Google Chrome using native AutoHotkey. How it works Chrome offers a WebSocket based API they call the Chrome DevTools Protocol . This API is what allows web development tools to build integrations, and tools such as Selenium to perform their automation. The protocol's documentat...
by GeekDude
04 Jan 2018, 15:03
Forum: Scripts and Functions
Topic: CodeQuickTester - Write and run code without touching the file system
Replies: 122
Views: 26035

Re: CodeQuickTester - Write and run code without touching the file system

There are two main rules to the development of CodeQuickTester: 1) Everything should fit in one file 2) CodeQuickTester should be able to be run inside CodeQuickTester For the first rule, having a separate ini file would break it. For the second rule, having IniRead try to read A_ScriptFullPath woul...
by GeekDude
04 Jan 2018, 13:01
Forum: Scripts and Functions
Topic: CodeQuickTester - Write and run code without touching the file system
Replies: 122
Views: 26035

Re: CodeQuickTester - Write and run code without touching the file system

CodeQuickTester v2.5 has been released Please see the original post for a link to the release and revision history pages. Changes ⋅ Opening new instances when AHK or CQT has spaces in its path now works (Thanks derz00!) ⋅ Pastebin integration has been updated to use HTTPS (Thank...

Go to advanced search