Just wondering if anyone knew if it was possible to have a permament line of text at the bottom of a cmd prompt window when running a batch file? So it floats, and if there is a lot of text flowing on the screen, and the cmd prompt starts to scroll, that line of text is still there at the bottom.
Not without external programs. Your output options are limited to:
Changing the foreground and background color of all text in the console
Printing a line of text at the current cursor position
Printing some text (without a trailing line break) at the current cursor position
Without writing your own programs (or resorting to others) you can't do anything else with the console output.
When needing a line or something to display status while the main portion of the output scrolls away I've usually been using the window title for that; you can set it with title.
Related
I am having the exact same issue described in this question: Multiline pdf text box
I have a PDF that has some dotted lines that I want to convert into a fillable multi-line field. I tried the solution in the linked question, but my setting is not staying when I try to fill in the field outside of Acrobat.
When I am preparing the form inside Acrobat, I set the line height to 30 and it is lining up fine:
But when I save this PDF and then try to fill in the field outside of Acrobat, the line height setting does not stay. It gets reset every time:
It's super frustrating and I have scoured the internet looking for an answer but I have nothing yet. If someone knows what to do to get the line height looking like the first screenshot, please save my sanity.
I'm using Adobe Acrobat Pro DC 2021.001.20135 on macOS 10.14.6.
Thank you
You can't. Those settings don't "stick" when the field is cleared and there's no way to set them programmatically. It's best to simply remove the lines from the PDF.
As #joelgeraci stated, the settings don't stick.
However, if the form has to be manually fillable, removing the writing lines may not be the best idea. In this situation, it would be better to change the field's background color. When the field has no content, its background color is transparent, otherwise white. And that will cover the writing lines.
googled this but didn't have success.
I'm using the horizontal split view of IntelliJ (the view that allow us to have files on the upper and bottom part of the screen).
The problem is that whenever I search for a file using the search for a target feature, instead of opening the already opened file which is located on the upper files' list, it opens again on the bottom list but I'd like it to open the one that's already open on the upper list.
Do you know how to change this behavior?
I'm writing an app using qml, and text messages have bi direction languages too.
I want to each line starts with appropriate alignment like below image.
I know i can split lines and set direction but i want to know if here is a better solution, because the QTextEdit handle this itself.
I made a program that saves in a *.txt file the factorial of a number. It is possible to wrap the content of a line to fit in the visible area of the screen?
IntelliJ:
Notepad:
1. Open setting either by selecting File -> Settings or (Ctrl + Alt +
s).
2. Navigate to Editor -> General
3. You should find an option '**Soft-Wrap these files**', add the desired file formats and apply the changes.
This should solve your problem.
No solution is viable (except a text editor with line wrap, but you've stated that's not what you're seeking), as the potential line breaks depend on a specific user's screen resolution, set text size etc.
You could read the screen resolution and make some assumptions with that information, but I would advise against it.
this time I'm fighting against a .txt file which doesn't want to be (programmatically) set to be printed in Portrait-mode instead of Landscape-mode (which is the default apparently).
Thing is I know how to do that with application like Word or Excel, but sadly enough I'm working on a device that has no Office at all.
I'm not providing any code at all since my problem is pretty straightforward, and I think I need a simple command in order to solve it. What I basically (programmatically) do in my subroutine is:
Open the file as #1 (I know this appears so '80, but I don't want to modify an up-and-running system, potentially having errors show up)
Write text to the file
Close #1
Save the file
Call text editor shell to show the file to the user
How can I then automatically set the print format to Portrait?
P.s.= I do not have the possibility to insert a userform or an object to print the txt file in "special ways", the user has to print the file from txt editor itself (wordpad just in case)
First to state the obvious: there are no print settings stored in text files (or indeed anything else except for the text). Print settings would be controlled within whatever you are using to print - in this case Notepad or Wordpad.
There are only very limited command line switches for Notepad and Wordpad, which unfortunately don't include page setup. In theory you may be able to automate setting portrait using SendKeys (see here and here) but if it is possible at all it's likely to be difficult and unreliable (focus and timing are two issues).
I can't see a good way round this within the parameters of your question. Adding an object within your application would probably have been the best solution. You might try looking for an alternative text editor you could install that is easier to automate. The only other alternative might be to set defaults within the printer drivers and hope that those stick when the user opens Notepad.