Modify

Opened 18 years ago

Closed 18 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:

Description

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 by TicketCleanup, 18 years ago

Version: 3.2.10.0

Automatic ticket cleanup.

comment:2 by Valik, 18 years ago

Resolution: Rejected
Status: newclosed

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.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.