Search found 1734 matches

by burque505
15 Jan 2024, 11:56
Forum: About This Community
Topic: New subforum for Keysharp
Replies: 26
Views: 4326

Re: New subforum for Keysharp

Thanks, @joedf!
by burque505
07 Jan 2024, 18:04
Forum: Scripts and Functions (v2)
Topic: COM: Format fractions in MS Word.
Replies: 0
Views: 694

COM: Format fractions in MS Word.

G. Mayor has VBA code to do this here. The animation should show what it does. I'm going to post two versions of this, since ComObjActive() only works _sometimes_ for me. One version uses it, and it often works. But sometimes something goes haywire. For that reason the second version uses flyingDman...
by burque505
08 Dec 2023, 13:37
Forum: Scripts and Functions (v2)
Topic: PicSwitch - Switch, Checkbox controls with picture
Replies: 5
Views: 1007

Re: PicSwitch - Switch, Checkbox controls with picture

@tranht17, thanks very much for this. Works great, easy to modify.
Regards,
burque505
by burque505
01 Dec 2023, 08:57
Forum: Scripts and Functions (v2)
Topic: V2-Beta.1 COM - Word find/replace incl. headers/footers/text boxes
Replies: 2
Views: 1514

Re: V2-Beta.1 COM - Word find/replace incl. headers/footers/text boxes

Datapoint , thanks for the update. It prompted me to update my own code so it'll work with the v2.0.10 that I have installed, at least with Word 2021 (desktop version). All instances of [A_Index] were changed to (A_Index), and the newish requirement for ".Item" has been incorporated, as in your lin...
by burque505
22 Nov 2023, 14:07
Forum: Scripts and Functions (v2)
Topic: Portable Python: Create a portable installation of Python on a USB
Replies: 3
Views: 737

Re: Portable Python: Create a portable installation of Python on a USB

@iseahound, thanks very much for this. Bound to come in handy.
by burque505
29 Sep 2023, 14:12
Forum: RPA
Topic: Techforce.ai - Native AHK support, DOM access
Replies: 3
Views: 7745

Re: Techforce.ai - Native AHK support, DOM access

Frosti , the last time I tried this framework was in December 2020 - since then the name has changed to Supervity, and my free account looks totally unfamiliar and is now totally non-functional, so I can't answer your question about which approach is better. Obviously ChatGPT post-dates the version...
by burque505
29 Aug 2023, 10:14
Forum: Ask for Help (v2)
Topic: Sending keystrokes directly to an application when controlSend does not work
Replies: 4
Views: 501

Re: Sending keystrokes directly to an application when controlSend does not work

Spitzi , sorry, I didn't realize that. Perhaps this (with your code in the 'else' block)? #Requires AutoHotkey v2.0 !^r:: { if (!WinActive("ahk_class OpusApp")) { Send("{LControl down}{RAlt down}{space}{LControl up}{RAlt up}") } else { ; Do other things here ; MsgBox("Word running, can't send it.")...
by burque505
29 Aug 2023, 07:28
Forum: Ask for Help (v2)
Topic: Sending keystrokes directly to an application when controlSend does not work
Replies: 4
Views: 501

Re: Sending keystrokes directly to an application when controlSend does not work

Spitzi , maybe there's something else going on. I just tried this code with Word 2021 (desktop version), AHK v2.05, and it works for me. It requires that Word be running, as you can see. The text in the document is read aloud. #Requires AutoHotkey v2.0 if WinExist("ahk_class OpusApp") { WinActivate...
by burque505
19 Jul 2023, 13:05
Forum: Scripts and Functions (v2)
Topic: [Classic function]all elements on the web + Special character input
Replies: 1
Views: 622

Re: [Classic function]all elements on the web + Special character input

:bravo: jinok , I really the "Symbol table" script. For my own use I've added 3 extra rows, filled with various European letters and symbols that are not present on my US keyboard. I took out the width and height args for MyGui so the GUI will autosize, so far so good. I have it start out always on ...
by burque505
14 Jul 2023, 16:01
Forum: Ask for Help (v2)
Topic: ComObjGet/ComObjActive for Office apps Topic is solved
Replies: 27
Views: 2209

Re: ComObjGet/ComObjActive for Office apps Topic is solved

No, I didn't do anything like that when installing. It varies from machine to machine. Works on some, not on others. I install the same way everywhere.
by burque505
14 Jul 2023, 14:19
Forum: Ask for Help (v2)
Topic: ComObjGet/ComObjActive for Office apps Topic is solved
Replies: 27
Views: 2209

Re: ComObjGet/ComObjActive for Office apps Topic is solved

Maybe check if the CLSID stored in the registry key for Word.Application matches the one store for the version of Word you are using. ; On my machine, Office 365, these two registry keys contain the CLSID below ; Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Word.Application\CLSID ; Computer\HKEY_LO...
by burque505
14 Jul 2023, 13:50
Forum: Ask for Help (v2)
Topic: ComObjGet/ComObjActive for Office apps Topic is solved
Replies: 27
Views: 2209

Re: ComObjGet/ComObjActive for Office apps Topic is solved

@Datapoint, no, unfortunately. It happens regardless of switching windows, delay before calling, et cetera.
Regards,
burque505
by burque505
14 Jul 2023, 12:45
Forum: Ask for Help (v2)
Topic: ComObjGet/ComObjActive for Office apps Topic is solved
Replies: 27
Views: 2209

Re: ComObjGet/ComObjActive for Office apps Topic is solved

@Datapoint, that's the same on my machine, so I'll give it a try.
Edit: Still get the "Operation unavailable", which happens for me on some machines and not on others, and definitely does on my home desktop.
Regards,
burque505
by burque505
14 Jul 2023, 12:16
Forum: Ask for Help (v2)
Topic: ComObjGet/ComObjActive for Office apps Topic is solved
Replies: 27
Views: 2209

Re: ComObjGet/ComObjActive for Office apps Topic is solved

@Datapoint, thank you, I'll give it a try.
Edit: Works great! Posted a copy here.
Regards,
burque505
by burque505
14 Jul 2023, 06:33
Forum: Ask for Help (v2)
Topic: ComObjGet/ComObjActive for Office apps Topic is solved
Replies: 27
Views: 2209

Re: ComObjGet/ComObjActive for Office apps Topic is solved

@flyingDman, your version works fine and is much shorter than what I have. Both work for me, Win10 Pro latest, Office 2021.
Thank you!
Regards,
burque505
by burque505
13 Jul 2023, 17:45
Forum: Scripts and Functions (v2)
Topic: Word_Get() for v2
Replies: 0
Views: 517

Word_Get() for v2

You might try this case you have trouble with ComObjActive() and Office apps on your machine (in may case, ComObjActive works with Word on my laptop with Office 2016, but not on my desktop with Office 2021. This works on the latter). This is totally based on AHK_user 's post here. Thanks to sean , j...
by burque505
13 Jul 2023, 17:35
Forum: Ask for Help (v2)
Topic: ComObjGet/ComObjActive for Office apps Topic is solved
Replies: 27
Views: 2209

Re: ComObjGet/ComObjActive for Office apps Topic is solved

Here's Word_Get.ahk for v2, thanks to AHK_user for the function to modify, and to Sean, Jethrow and Learning one! ; Modified from AHK_user's Excel_Get code here: https://www.autohotkey.com/boards/viewtopic.php?f=83&t=107319&hilit=excel_get ; Uncomment to test /* #Requires AutoHotKey v2.0 #SingleInst...
by burque505
13 Jul 2023, 17:14
Forum: Ask for Help (v2)
Topic: ComObjGet/ComObjActive for Office apps Topic is solved
Replies: 27
Views: 2209

Re: ComObjGet/ComObjActive for Office apps Topic is solved

@boiler, I'll revisit this if I can ever figure it out. I'll try to port Word_Get to v2 (might take a while) and see if I can use that instead. Not sure that would help you either if COM isn't working at all, for whatever reason.
Regards,
burque505
by burque505
13 Jul 2023, 15:49
Forum: Ask for Help (v2)
Topic: ComObjGet/ComObjActive for Office apps Topic is solved
Replies: 27
Views: 2209

Re: ComObjGet/ComObjActive for Office apps Topic is solved

I tried the ComObjActive script on an old laptop running Win10, but with Office 2016 instead of Office 2021. It works fine.
Now to find out whether it's the machine I have 2021 on that's the culprit, or the Office version on that machine.
Thanks to all for your feedback!
Regards,
burque505
by burque505
13 Jul 2023, 09:56
Forum: Ask for Help (v2)
Topic: ComObjGet/ComObjActive for Office apps Topic is solved
Replies: 27
Views: 2209

Re: ComObjGet/ComObjActive for Office apps Topic is solved

@kczx3, that's a good point. I hadn't considered it - I'll give it a try.
EDIT: Apparently it doesn't make any difference whether I run as Admin or with UI access. I still get the same error(s).
Regards,
burque505

Go to advanced search