Search found 20 matches
- 05 May 2023, 19:59
- Forum: Ask for Help (v2)
- Topic: Modifying Clipboard Binary Data of Formatted Text
- Replies: 6
- Views: 663
Re: Modifying Clipboard Binary Data of Formatted Text
FanaticGuru flyingDman Thanks, I think you all make really good points. I can definitely try the COM object method, I already used the COM objects with ahk for Adobe Acrobat, so it probably won't be too hard, as long as the com object documentation for word is up to date and accessible. Thanks agai...
- 05 May 2023, 10:37
- Forum: Ask for Help (v2)
- Topic: Modifying Clipboard Binary Data of Formatted Text
- Replies: 6
- Views: 663
Re: Modifying Clipboard Binary Data of Formatted Text
wetware05 thank you! Your solution may work, I'm gonna do some tests today or tomorrow. However, so far I am able to restart my computer and the "CompanyLetter.Clip" file does successfully paste properly when I load it into the clip board, perhaps because it's copied from a fixed word doc on my sys...
- 05 May 2023, 02:47
- Forum: Ask for Help (v2)
- Topic: Modifying Clipboard Binary Data of Formatted Text
- Replies: 6
- Views: 663
Modifying Clipboard Binary Data of Formatted Text
Hey everyone, I have some word documents which are templates of different letters that we send out in my office. I have copied them and stored the binary data into a file, which includes the text formatting and images. This is basically the current code: ; copy letter and store the clipboard buffer ...
- 17 Apr 2023, 12:42
- Forum: Ask for Help (v2)
- Topic: Screen Capture to File AHK Library exist for 2.0?
- Replies: 4
- Views: 852
Re: Screen Capture to File AHK Library exist for 2.0?
Awesome, this is a great tool for v2, but the commands are more based around using the mouse to manually snip an image, and then using the right click to access a menu which you need to manually choose the "Save to PNG" option. I think I'll be able to use the functions I need from it though, without...
- 17 Apr 2023, 10:48
- Forum: Ask for Help (v2)
- Topic: Screen Capture to File AHK Library exist for 2.0?
- Replies: 4
- Views: 852
Screen Capture to File AHK Library exist for 2.0?
Hey everyone,
Has anyone written a screen capture and save to file function/library for AHK 2.0? If so, could you provide the link? Thank you!
Has anyone written a screen capture and save to file function/library for AHK 2.0? If so, could you provide the link? Thank you!
- 25 Mar 2023, 19:49
- Forum: Ask for Help (v2)
- Topic: Get filepath of the file currently selected in Explorer
- Replies: 9
- Views: 939
Re: Get filepath of the file currently selected in Explorer
A maybe more inferior approach, but simpler, is just to have your hotkey send a ctrl+c command which would both copy the file and the path, which is what youre after. You can put the A_Clipboard value into a variable and you can either keep the double quotes that are a part of the string, or remove ...
- 24 Mar 2023, 23:01
- Forum: Ask for Help (v2)
- Topic: Using OnMessage to hide windows before they are displayed
- Replies: 2
- Views: 228
Using OnMessage to hide windows before they are displayed
Hey everyone, I'm finding the OnMessage documentation hard to wrap my head around, but I think it's what I need to get the functionality I'm looking for. Does anyone know what the code would look like to have the OnMessage command intercept a WM_CREATE message for a specific pid or some sort of proc...
- 24 Mar 2023, 21:35
- Forum: Ask for Help (v2)
- Topic: Critical buffering for just a short excerpt: How?
- Replies: 1
- Views: 155
Critical buffering for just a short excerpt: How?
Hey everyone, I'm using the Adobe Acrobat COM obects inside AHK, and while these objects are communicating with Acrobat, sometimes they cannot be interrupted by hotkeys which contain other Acrobat COM functions. However, I still want the buffering of the hotkeys, so that when the original COM operat...
- 21 Mar 2023, 12:41
- Forum: Ask for Help (v2)
- Topic: Replace/Delete Fields in .CSV files Topic is solved
- Replies: 3
- Views: 326
Re: Replace/Delete Fields in .CSV files Topic is solved
@mikeyww thank you again, understanding this function really helps my scripting for working with csv. It even re-adds the quotes around the fields with commas. amazing!
- 20 Mar 2023, 18:55
- Forum: Ask for Help (v2)
- Topic: Replace/Delete Fields in .CSV files Topic is solved
- Replies: 3
- Views: 326
Re: Replace/Delete Fields in .CSV files Topic is solved
Thank you very much. I will study this now!
- 20 Mar 2023, 16:35
- Forum: Ask for Help (v2)
- Topic: Replace/Delete Fields in .CSV files Topic is solved
- Replies: 3
- Views: 326
Replace/Delete Fields in .CSV files Topic is solved
Hey everyone, Currently I am able read .csv files in AutoHotkey. But is there a straight forward way to replace or delete fields as well? This is my code currently which just reads each field line by line. It would be great if I could write the current selected field, but seems like that's not possi...
- 15 Mar 2023, 16:12
- Forum: Ask for Help (v2)
- Topic: StatusBarGetText string odd behavior, plz help!
- Replies: 1
- Views: 188
StatusBarGetText string odd behavior, plz help!
Hey everyone, getting some weird behavior from the StatusBarGetText() function. Trying to figure out if I'm just ignorant or there is some sort of bug/weird technicality I am not taking into account. In this block of code I am getting it to read the text in the status bar in Microsoft Edge. I'm test...
- 28 Feb 2023, 22:45
- Forum: Ask for Help (v2)
- Topic: Array of Function Pointers: How in v2?
- Replies: 5
- Views: 398
Re: Array of Function Pointers: How in v2?
Ah sorry, I misread the compiler error.
it's just line 025 that has an issue:
and it was just the syntax of the -1 that didn't work. Whoops, thank you all for assistance, excuse my lack of attention to the compiler message.
it's just line 025 that has an issue:
Code: Select all
funcs[A_Index-1]()
- 28 Feb 2023, 22:12
- Forum: Ask for Help (v2)
- Topic: Array of Function Pointers: How in v2?
- Replies: 5
- Views: 398
Re: Array of Function Pointers: How in v2?
@swagfag No, this doesn't compile in v2 due to the syntax being incorrect.
@mikeyww Thank you for this! Do you know what is the syntax for just an array of function pointers on its own?
@mikeyww Thank you for this! Do you know what is the syntax for just an array of function pointers on its own?
- 28 Feb 2023, 20:19
- Forum: Ask for Help (v2)
- Topic: Array of Function Pointers: How in v2?
- Replies: 5
- Views: 398
Array of Function Pointers: How in v2?
Hey everyone, What is the correct syntax for an array of function pointers in AHK v2? Here's an example of what I'm trying to do: ; Define function objects func1() { ; Code for the first iteration } func2() { ; Code for the second iteration } func3() { ; Code for the third iteration } ; Create an ar...
- 28 Feb 2023, 20:16
- Forum: Ask for Help (v2)
- Topic: How do I make Gui Control Objects? Topic is solved
- Replies: 7
- Views: 724
Re: How do I make Gui Control Objects? Topic is solved
thanks again, really appreciate the info here
- 28 Feb 2023, 12:12
- Forum: Ask for Help (v2)
- Topic: How do I make Gui Control Objects? Topic is solved
- Replies: 7
- Views: 724
Re: How do I make Gui Control Objects? Topic is solved
tysm this was extremely helpful.
Could you tell more about specifically the Gui["text"] element here? What is this exactly and why does it work?
Could you tell more about specifically the Gui["text"] element here? What is this exactly and why does it work?
Code: Select all
CtlObj.Gui["text"].Value := "new text"
- 28 Feb 2023, 02:53
- Forum: Ask for Help (v2)
- Topic: How do I make Gui Control Objects? Topic is solved
- Replies: 7
- Views: 724
How do I make Gui Control Objects? Topic is solved
Hi Everyone, I'm having trouble understanding the v2 reference documentation for creating gui control objects. Basically I just want to make a GUI with text where when some action occurs, like clicking a button or moving a mouse to a certain area on the screen, the text will change color or maybe ch...
- 16 Feb 2023, 16:00
- Forum: Ask for Help (v1)
- Topic: Acrobat COM Object API Reference Documentation
- Replies: 3
- Views: 431
Re: Acrobat COM Object API Reference Documentation
Ahh okay, I did manage to find it finally. Here's the direct link for anyone who stumbles onto this thread looking for the same info. It's under the OLE section:
https://opensource.adobe.com/dc-acrobat-sdk-docs/library/interapp/IAC_API_OLE_Objects.html#acroexch-app
Cheers!
https://opensource.adobe.com/dc-acrobat-sdk-docs/library/interapp/IAC_API_OLE_Objects.html#acroexch-app
Cheers!
- 16 Feb 2023, 11:34
- Forum: Ask for Help (v1)
- Topic: Acrobat COM Object API Reference Documentation
- Replies: 3
- Views: 431
Acrobat COM Object API Reference Documentation
Hey Everyone, I'm trying to do some automation with AHK and Acrobat. I've definitely found a handful of threads with example code and some explanation, but I would really like to go a bit deeper and explore all the options available. Where the heck is the documentation that goes over over the differ...