PROMPT formatting

Discussions and Tech Support specific to the iMacros Firefox add-on.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
Posts: 23
Joined: Sun Jun 16, 2019 10:27 pm

PROMPT formatting

Post by rstancuna » Tue Oct 08, 2019 1:36 pm

I'm trying to find a way to format the output of PROMPT so that i can create something similar to a table since i have strings of different lengths and want them to be aligned. JS alert() does support tab spaces (\t) but if output is too long it will show with scroll bars so i prefer iMacros PROMPT since if output is too long it will just resize the window.
An output would be like:
Problem is that PROMPT window is using a font (Arial maybe?) that doesn't have fixed character width and changing font settings in browser doesn't do anything in PROMPT window (nor alert()).
If i could change the font, then i could do something like this to make sure every block of text is the same size:

Code: Select all

emptyspace=" ";//emptyspace="_";
PROMPT does support Unicode characters, i made a function to change to some fonts, but even those which are fixed width in browser webpage don't show as fixed width in PROMPT:
promptfont.PNG (19.11 KiB) Viewed 7949 times

Any way to format PROMPT, to add tab spaces or just change the font(Courier New) to make some blocks of text the same width?
Waterfox 56.2, iMacros V8.9.7 on Windows
Post Reply