According to the doc, " ControlGetText always retrieves the text using the slow mode ... ". I would like to know if it's possible to override this setting and let ControlGetText run at a faster speed? Or it needs a source code level change?
Thank you.
ControlGetText Fast ?
Re: ControlGetText Fast ?
Not fast enough?
Code: Select all
#Requires AutoHotkey v2.0
winTitle := 'ahk_exe notepad.exe'
ctl := 'Edit1'
start := A_TickCount
ControlGetText(ctl, winTitle)
MsgBox 'Elapsed time: ' A_TickCount - start ' ms', 'Result', 64
Re: ControlGetText Fast ?
Hi mikeyww,
In your case, yes. In my case, no. My "Elapsed time" would be 100ms at best, usually over 150~250+ ms. Please understand I have a reason to ask such question. I need to get multiple lines of text out of a control and I am looking for ways to make it run faster.
In your case, yes. In my case, no. My "Elapsed time" would be 100ms at best, usually over 150~250+ ms. Please understand I have a reason to ask such question. I need to get multiple lines of text out of a control and I am looking for ways to make it run faster.
Re: ControlGetText Fast ?
Do you use this parameters? Show the relevant code, please.SetTitleMatchMode wrote: Parameters
Speed
Specify one of the following words to indicate how the WinText and ExcludeText parameters should be matched