Opened 16 years ago

Closed 16 years ago

#196 closed Feature Request (Rejected)

Enable shell printing of AutoIt source code

Reported by: apoliak@… Owned by:
Milestone: Component: AutoIt
Version: Severity:
Keywords: Cc:


Most document types (at least the ones that come from Microsoft), provide a "Print" shell command, which Windows uses to figure out how to print or fax a document when using COM objects such as FAXCOMEX.FaxDocument. As it currently stands, a sample script (Originally in VBScript, translated to AutoIt) fails when called with an AutoIt script file name, works when called with the file's extension changed to .TXT, and works when the Print shell command is added to the AutoIt Script entry under HKEY_CLASSES_ROOT (located at HKEY_LOCAL_MACHINE\Software\CLASSES\AutoIt3Script\Shell\print\command)
, which in my case, I set to print with Notepad, since SciTE does not yet support the ability to print from the Command Line (although a script could be written that would call the print command). The command line I used (Default Value for Command key) is '%SystemRoot%\system32\NOTEPAD.EXE /p "%1"' (type REG_EXPAND_SZ), and it prints the source just fine.

It's a trivial change, but I think it would benefit programmers/system administrators to be able to programatically print any file in their system.

I bring this up because I am coding an email-to-FAX gateway, and as it is coded right now, it sends documents based on how they are printed by the Windows Shell (I might solve it by adding a Convert-To-PDF client-side feature once the server becomes stable)

Attachments (0)

Change History (2)

comment:1 Changed 16 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

comment:2 Changed 16 years ago by Valik

  • Resolution set to Rejected
  • Status changed from new to closed

You kind of ramble on a bit making it somewhat unclear what you are asking for. However, the only thing I can fathom that actually involves us making any change to anything is for us to add the print verb to the file association when registered by the installer. To me, this doesn't sound very useful. Rejecting this.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.