COM Object Reference

Post your working scripts, libraries and tools
User avatar
joedf
Posts: 5416
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: COM Object Reference

03 Oct 2013, 04:09

Interesting..
User avatar
Menixator
Posts: 68
Joined: 30 Sep 2013, 04:10

Re: COM Object Reference

03 Oct 2013, 04:13

We live alone. We die alone. Everything else is just an illusion.
kon
Posts: 1716
Joined: 29 Sep 2013, 17:11

Re: COM Object Reference

15 Jul 2014, 14:50

A remake of the index.
Index
Last edited by kon on 11 Jan 2015, 04:17, edited 2 times in total.
kon
Posts: 1716
Joined: 29 Sep 2013, 17:11

Re: COM Object Reference

06 Nov 2014, 18:42

COM Object: Publisher.Application
Purpose: Microsoft Publisher is an entry-level desktop publishing application from Microsoft, differing from Microsoft Word in that the emphasis is placed on page layout and design rather than text composition and proofing.
System Requirements: Microsoft Office Publisher
Documentation Link: Object model reference (Publisher 2013 developer reference)
Other Links: Save the active document as .jpg
Basic Code Example: This example will open Publisher, create a new document, draw a curve and a line, add some text, and SaveAs with two different formats (.jpg and .pub).

Code: [Select all] [Expand] [Download] (Script.ahk)GeSHi © Codebox Plus

GeekDude
Posts: 695
Joined: 02 Oct 2013, 22:13

Re: COM Object Reference

07 Nov 2014, 08:32

Wouldn't this be better suited to a GitHub repository or something along those lines? Perhaps under the AhkScript group?
lexikos
Posts: 5328
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: COM Object Reference

11 Jan 2015, 03:20

COM Object: Msxml2.XMLHTTP, a.k.a. XmlHttpRequest object.
Purpose: Making HTTP requests. Unlike UrlDownloadToFile, it doesn't require managing a temporary file. Unlike WinHttpRequest, it can notify us when the request is complete.
System Requirements: IE7+ and AutoHotkey v1.1.17+ to use onreadystatechange.
Documentation Link: XMLHttpRequest object
Basic Code Example:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


I started looking into this because using WinHttpRequest in synchronous mode causes the script to hang until the request completes, but it turns out you can get around that by opening the request in asynchronous mode and calling WinHttpRequest.WaitForResponse(). The advantages of XMLHTTP are that the API is well known to many web developers, and the events (like onreadystatechange) are compatible with AutoHotkey.
Last edited by lexikos on 30 Oct 2016, 18:46, edited 1 time in total.
Reason: Update URL
User avatar
joedf
Posts: 5416
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: COM Object Reference

11 Jan 2015, 13:15

Hello asynchronous downloads!
User avatar
Joe Glines
Posts: 397
Joined: 30 Sep 2013, 20:49
Facebook: https://www.facebook.com/theAutomatorGuru/
Google: https://plus.google.com/105328929654286634910
GitHub: joetazz
Location: Dallas
Contact:

Re: COM Object Reference

17 Jul 2015, 19:08

Any idea what the maximum size that can be stored in this? I read through some of the documentation however I was playing around and was storing a lot more characters than what I saw in the documentation.

sinkfaze wrote:COM Object: WScript.Shell
Purpose: Exchange variables between scripts
System Requirements: General
Documentation Link: WshEnvironment Object
Other Links: Environment Variables
User avatar
Joe Glines
Posts: 397
Joined: 30 Sep 2013, 20:49
Facebook: https://www.facebook.com/theAutomatorGuru/
Google: https://plus.google.com/105328929654286634910
GitHub: joetazz
Location: Dallas
Contact:

Re: COM Object Reference

18 Jul 2015, 11:09

Joetazz wrote:Any idea what the maximum size that can be stored in this? I read through some of the documentation however I was playing around and was storing a lot more characters than what I saw in the documentation.


I reached a max of 524,285 charchters on my 64 bit version of Windows 7
guesto

Re: COM Object Reference

10 Apr 2016, 14:32

sinkfaze wrote:COM Object: ImageMagickObject COM+ Object
Purpose: ImageMagick® is a software suite to create, edit, and compose bitmap images.
System Requirements: ImageMagickObject COM+ Object
Documentation Link:
Other Links: http://www.imagemagick.org/script/binary-releases.php#windows
Basic Code Example:


I have installed ImageMagick with the COM option in the installer (the checkbox about VBS something, don't remember exactly). I can run the ImageMagickObject .vbs test script that comes with ImageMagick. But I can't get it to work in AHK. The sample script generated "Invalid class string" error on this line

Code: [Select all] [Download] GeSHi © Codebox Plus

oI :=	ComObjCreate("ImageMagickObject.MagickImage.1")

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 8 guests