24 posts in this topic
Looking to automate...I have PDF files...Need to convert them all to 2 pages each but more specifically, retain only the first and last.
Searched a lot and hitting the wall....Any ideas? Just directions would do...
Not sure how to "print to file" and I believe |ShellExecuteWait($sFilePath, " /h /p", "", "print", @SW_HIDE)| doesn't give options of what pages...
Please tell me, who knows how to apply and cancel styles in RTF?
The following code does not work:
#include <GuiRichEdit.au3> #include <WindowsConstants.au3> $hGUI = GUICreate("RichEdit Style", 500, 500, -1, -1) $hRichEdit = _GUICtrlRichEdit_Create($hGui, "Test", 20,40,460,400) GUISetState(@SW_SHOW, $hGUI) Sleep(3000) GUICtrlSetStyle($hRichEdit, $ES_RIGHT) Sleep(3000) GUICtrlSetStyle($hRichEdit, -1) Sleep(3000) Thanks!
I have a project to print a prn printfile to a barcode printer. File is both binary (fonts and pictures) and text mixed in a format understandable for the printer. I need some advice about the methode to deal and use windows printer spooler. The printers could be connected in network or localy by USB, so easiest is to make that connection by windows.
I have not found any easy way to print in the site, just how to setup a new printer or change parameters. I thought printing was the easy part.
My program should be used by windows vista, 7, 8 and 10 and sometime in POS environment.
Right now I print by FTP to CAB printers, but its not always accepted in some networks or by firewalls. I need to change it, and also be open to use other printers.
The option I have seen is windows LPR command, but I dont know if its usable in all windows versions or if it behave different. I tested it from cmd.exe, but have not succeded for the printers I normaly use.
Copy to LPT or COM is also an alternative. DIsadvantage is I need to change in driver to connect LPT/COM to the printer and not userfriendly to install.
I want a solid solution, not complicated for the user and easy to understand and maintain.
Just a procedure in Auto-IT like 'Print ("Printer name", "File")' to put it in the que, and leave the printer maintain to windows.
Any ideas or considirations?
Where to begin?
(soory for the speling, not my naitive language)
Could you tell me is there any UDF that can help to highlight syntax in the _GUICtrlRichEdit element on the fly?
Is it possible to implement this feature in script in simple way using some UDF or something, instead of writing thousand of strings manually?
Thanks in advance.
I've been working with RichEdits and have come upon the very useful RESH UDF. But I baffled by one statement in the example's _LoadFile() function:
_GUICtrlRichEdit_ReplaceText($hRichEdit, '') Can someone explain this "non-replace"? Here's the context: