Search found 74 matches

by DanielToward13
01 Oct 2020, 12:13
Forum: Scripts and Functions (v1)
Topic: Screen capture to video with Directx9 / Directx11 and Microsoft Media Foundation
Replies: 63
Views: 14050

Re: Screen capture to video with Directx9 / Directx11 and Microsoft Media Foundation

I disabled the speaker enhancement and it is working now but It crashes without any message when the duration is long. Is there a method to stream the screen? My settings (DirectX 11 + DXGI (Win10)): video_bitrate := 4000000 video_fps := 25 duration := 1800 capture_cursor := true audiodevice := "Ste...
by DanielToward13
26 Sep 2020, 16:34
Forum: Scripts and Functions (v1)
Topic: Screen capture to video with Directx9 / Directx11 and Microsoft Media Foundation
Replies: 63
Views: 14050

Re: Screen capture to video with Directx9 / Directx11 and Microsoft Media Foundation

malcev Thanks for your work. You are well experienced in this field. I would like to ask you a question that I have since long time a go. How some software programs can detect screen recording? Is your code traceable by video protector programs? How those advanced detector programs work? The second...
by DanielToward13
26 Sep 2020, 16:06
Forum: Ask for Help (v1)
Topic: Record System Sounds
Replies: 4
Views: 1057

Re: Record System Sounds

Anyone has done this before?
by DanielToward13
18 Dec 2019, 04:15
Forum: Scripts and Functions (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 452362

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

The injected JavaScript code is removed from the console (DOM) after refreshing the Chrome tab. The socket connection to the debug interface will stay alive but the injected JS code will be removed after refreshing the page. Is there a way to keep alive the injected JavaScript code in the console ev...
by DanielToward13
09 Nov 2019, 05:47
Forum: Ask for Help (v1)
Topic: Is this event emitter in AHK?
Replies: 2
Views: 668

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 (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 452362

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 (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 452362

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 (v1)
Topic: getElementByXpath in IE web scraping
Replies: 2
Views: 1220

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 (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 452362

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 (v1)
Topic: getElementByXpath in IE web scraping
Replies: 2
Views: 1220

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 (v1)
Topic: Does Machine code function works on X64?
Replies: 2
Views: 822

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 (v1)
Topic: How to store long numbers in an array? Topic is solved
Replies: 1
Views: 816

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 (v1)
Topic: Does AHK works on Windows 10 IoT?
Replies: 0
Views: 620

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 (v1)
Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Replies: 668
Views: 452362

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 (v1)
Topic: Getting position and size of the scroll bar
Replies: 6
Views: 4846

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: 3
Views: 2272

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 (v1)
Topic: [Class] SQLiteDB - Update on 2022-10-04
Replies: 303
Views: 204849

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 (v1)
Topic: Remove/hide scroll bars on Activex Gui control
Replies: 9
Views: 5079

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 (v1)
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 148
Views: 158584

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.

Go to advanced search