Search found 70 matches

by DanielToward13
09 Nov 2019, 05:47
Forum: Ask For Help
Topic: Is this event emitter in AHK?
Replies: 2
Views: 246

Is this event emitter in AHK?

I'm reading Chrome.ahk lib and trying to implementing it in Python. Is the code below an event emitter in AHK? Can you give a simple example code for the _Event function so that I can understand it better? ; Called by the JS in response to WS events _Event(EventName, Event) { this["On" EventName](Ev...
by DanielToward13
01 Nov 2019, 04:09
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 166
Views: 60956

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

Thanks gregster . How to define a callback function to always track the existence of an element in the DOM, even after the user has clicked on a button and the page/DOM is changed? I've tried a simple loop but that doesn't work after the page is changed. Loop { ShowText := Page1.evaluate("document.e...
by DanielToward13
31 Oct 2019, 03:01
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 166
Views: 60956

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

gregster Yes, multiple pages/tabs in a browser. One example would be to click on an element by dynamic Xpath as: function getElementByXpath(path) {{}return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;{}} getElementByXpath("//*[@id='Container']/...
by DanielToward13
31 Oct 2019, 01:47
Forum: Ask For Help
Topic: getElementByXpath in IE web scraping
Replies: 2
Views: 258

Re: getElementByXpath in IE web scraping

UPDATE: How to inject JS to IE COM? The getElementByXpath function can be defined in JS as

Code: Select all

function getElementByXpath(path) {{}return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;{}}
but how to inject it to the DOM?
by DanielToward13
31 Oct 2019, 01:39
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 166
Views: 60956

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

Is there any built-in function to control multi tabs in a page? How to open two tabs in a page and inject JS to each tab?
by DanielToward13
25 Oct 2019, 01:17
Forum: Ask For Help
Topic: getElementByXpath in IE web scraping
Replies: 2
Views: 258

getElementByXpath in IE web scraping

Is it possible to get an element by Xpath in IE web scraping using AHK? I know this is easy using Selenium, Beautifulsoup and all other tools out there but for some reasons, I have to do it in IE COM. My Xpath is //*[@id='minContainer']/div/div/div[div/span[contains(text(),'12345')]]/following-sibli...
by DanielToward13
20 Jul 2018, 17:22
Forum: Ask For Help
Topic: Does Machine code function works on X64?
Replies: 2
Views: 429

Does Machine code function works on X64?

This code displays a blank MsgBox on lines 16, 23. Did I miss something?

https://autohotkey.com/board/topic/1948 ... ntry141057
by DanielToward13
18 Jul 2018, 07:39
Forum: Ask For Help
Topic: How to store long numbers in an array? Topic is solved
Replies: 1
Views: 329

How to store long numbers in an array? Topic is solved

I want to store very large numbers (~100 digits long) in an array. How to do that and what is the Max limit? VarSetCapacity(MyArray, 10240000) VarSetCapacity(MyVar, 10240000) MyArray := [] MyVar := 10 MyArray[0] := MyVar + 33300000000000000000 MsgBox % MyArray[0] ;;; returns -9223372036854775799
by DanielToward13
02 Mar 2018, 12:06
Forum: Ask For Help
Topic: Does AHK works on Windows 10 IoT?
Replies: 0
Views: 310

Does AHK works on Windows 10 IoT?

Does anybody have tried AHK on Windows 10 IoT (e.g. on Raspberry Pi)?
by DanielToward13
25 Jan 2018, 16:06
Forum: Scripts and Functions
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No Selenium!
Replies: 166
Views: 60956

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?
by DanielToward13
25 Jan 2018, 15:12
Forum: Ask For Help
Topic: Getting position and size of the scroll bar
Replies: 6
Views: 1696

Re: Getting position and size of the scroll bar

@jeeswg Your code works in Notepad but is there a way to know the scroll bar position in almost every program (specially Chrome, Firefox, Adobe Acrobat)? If no then what are the alternative ways?
by DanielToward13
24 Jan 2018, 03:31
Forum: Wish List
Topic: google search results for AHK forum
Replies: 2
Views: 793

google search results for AHK forum

I have tried to search the exact title of the topics on Google but there are less related results from the new forum (/boards). It seems that the old forum is indexed completely by Google but there are some indexing problem with the new forum. It would be very helpful if you could improve the SEO ra...
by DanielToward13
28 Dec 2017, 00:25
Forum: Scripts and Functions
Topic: [Class] SQLiteDB - Update on 2019-07-12
Replies: 202
Views: 45864

Re: [Class] SQLiteDB - Update on 2016-03-28

I am trying to fetch some data and then insert them into another table but I am getting the Msg: near "n": syntax error Code: 1 error. The process can insert 22 rows but get stuck in the 23th row which starts with ǝ bad´'n . I suspect that the ' character is causing the problem. My database has more...
by DanielToward13
18 Dec 2017, 16:03
Forum: Ask For Help
Topic: Remove/hide scroll bars on Activex Gui control
Replies: 9
Views: 3313

Re: Remove/hide scroll bars on Activex Gui control

I know this is an old topic but it might still be useful. Injecting the following CSS code -ms-overflow-style: none; will force IE (Internet Explorer and Microsoft Edge) to hide the scrollbar, although the element can still be scrolled if the element's content overflows. You can also use -ms-overflo...
by DanielToward13
17 Dec 2017, 18:56
Forum: Tips and Tricks
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 128
Views: 75371

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

I have realized that the script with UTF-8 with BOM encoding works only when I type the Hebrew words using SciTE4AutoHotkey editor with BOM. Which means if I type them using UTF-8 somewhere else and then copy and paste them it won't show up correctly.
by DanielToward13
17 Dec 2017, 13:57
Forum: Tips and Tricks
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 128
Views: 75371

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

As an html file it works. When I convert the script to UTF-16 Little Endian, it works but I don't know why UTF-16 !?
by DanielToward13
16 Dec 2017, 20:39
Forum: Tips and Tricks
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 128
Views: 75371

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

It's saved as UTF-8 file and I have tried different options in order to display it correctly but none works for me. 1. I create a file in Notepad++ and save it in UTF-8 encoding. 2. In SciTE4AutoHotkey Ver 3.0.06.01, I go to the File>Encoding>UTF-8 3. Tools>SciTE4AutoHotkey settings>File>UTF-8 4. Ad...
by DanielToward13
16 Dec 2017, 02:47
Forum: Tips and Tricks
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 128
Views: 75371

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

How to change the innerHtml of the div tags in the DOM for UTF-8 languages in your code? I have modified your example code to change the default text to a Hebrew word מִבְחָן but the result isn't showing in UTF-8 despite adding the <meta http-equiv='X-UA-Compatible' content='IE=edge' charset='UTF-8'...
by DanielToward13
14 Dec 2017, 06:24
Forum: Ask For Help
Topic: show svg/wdp/jxr/animated gif image files in a GUI Topic is solved
Replies: 12
Views: 3256

Re: show svg/wdp/jxr/animated gif image files in a GUI Topic is solved

Thanks for sharing. Can't we use this explorer extension to display SVG vectors on Autohotkey GUI?

Go to advanced search