ControlGetText, OutputVar, Edit1, Untitled With Wildcard

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
mojobadshah
Posts: 25
Joined: 12 Nov 2019, 16:32

ControlGetText, OutputVar, Edit1, Untitled With Wildcard

05 Feb 2020, 19:23

I want to use the "ControlGetText, OutputVar, Edit1, Untitled" function, but implement a filename.filetype wildcard eg. *.doc. What is the accurate convention for performing this task?
w0z
Posts: 230
Joined: 19 Jun 2014, 08:21

Re: ControlGetText, OutputVar, Edit1, Untitled With Wildcard

05 Feb 2020, 21:46

You can use ahk_class ahk_id ahk_exe ahk_id instead the window title. Use the Window Spy to get those values.

Or you could use SetTitleMatchMode.
https://www.autohotkey.com/docs/commands/SetTitleMatchMode.htm
If I was helpful consider Donate me. :beer: , plz :D
mojobadshah
Posts: 25
Joined: 12 Nov 2019, 16:32

Re: ControlGetText, OutputVar, Edit1, Untitled With Wildcard

08 Feb 2020, 13:33

w0z wrote:
05 Feb 2020, 21:46
You can use ahk_class ahk_id ahk_exe ahk_id instead the window title. Use the Window Spy to get those values.

Or you could use SetTitleMatchMode.
https://www.autohotkey.com/docs/commands/SetTitleMatchMode.htm
Is this for generic filenames and filetypes -- wildcards eg. filename.* or *.filetype for reading data nested in a file and text, not necessitating to open a filetype or executable host application? Because having to assign values or setting titles appears to be a "uninvisible" convention to scan or pull data.

Say the getcontext convention is untenable when using wildcard operators, what ahk expression do I use as a header to match multiple strings across multiple files located in 1 folder?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: apeironn, fiaztv1, Google [Bot], Pianist and 178 guests