I have a large text document that must be edited while open.
I want to evaluate each line to see if it starts with a collection of certain words.
If the line does start with one of the words then I will do some key sends.
Is there a way to do this without copying every line, one at a time, to the clipboard and then getting the clipboard in order to do the evaluation? Is there a more direct way?
Evaluate each line of an open document without clipboard
- Blackholyman
- Posts: 1293
- Joined: 29 Sep 2013, 22:57
- Location: Denmark
- Contact:
Re: Evaluate each line of an open document without clipboard
Depends on the program the document is open in...
Courses on AutoHotkey
My Autohotkey Blog
Re: Evaluate each line of an open document without clipboard
Can you please explain technically why that is the case? For example Notepad++ vs Word. How would the script differ?
Re: Evaluate each line of an open document without clipboard
Well for one you could use COM in MSWord.
Re: Evaluate each line of an open document without clipboard
That's pretty cool. In this case it will be Visual Studio but I don't know if it provides COM access or not.
Re: Evaluate each line of an open document without clipboard
I think you'll be better off with FileRead / file objects.
Re: Evaluate each line of an open document without clipboard
That doesn't work on an open file that needs to have keystrokes sent to it.
Re: Evaluate each line of an open document without clipboard
yea its not gonna be visible to ahk. without a fileread tactic its going to be pretty hard. I tried some basics with MSAA just to see if it would work
have a look at this thread
looks like it can work
http://www.autohotkey.com/board/topic/7 ... ntry495073
have a look at this thread
looks like it can work
http://www.autohotkey.com/board/topic/7 ... ntry495073
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
- Blackholyman
- Posts: 1293
- Joined: 29 Sep 2013, 22:57
- Location: Denmark
- Contact:
Re: Evaluate each line of an open document without clipboard
Just try'd with UIA and that works for me.
heres a example: ScreenReader by nepter http://www.autohotkey.com/board/topic/9 ... -anywhere/
Hope it helps
heres a example: ScreenReader by nepter http://www.autohotkey.com/board/topic/9 ... -anywhere/
Hope it helps
Courses on AutoHotkey
My Autohotkey Blog
Re: Evaluate each line of an open document without clipboard
OK, I think I'll just use the clipboard.
Thanks.
Thanks.
Who is online
Users browsing this forum: No registered users and 214 guests