[Help] Image in batch file
Moderator: DosItHelp
[Help] Image in batch file
I'm working on a simple text based adventure game, and i need to add some images to my batch file like images for items, locations, background.
Is there any way? Tool, Plugin?
Is there any way? Tool, Plugin?
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: [Help] Image in batch file
The command line is text-only. The closest you're going to get is with ASCII art.
Also, text-based adventure games by definition do not have graphics.
Also, text-based adventure games by definition do not have graphics.
-
- Posts: 118
- Joined: 02 Apr 2017 06:11
Re: [Help] Image in batch file
You can use InsertBMP.exe made by aGerman. You can find this plugin on my website: http://www.thebateam.org/2016/11/how-to-show-images-on-cmd-console.html
Though if you have a image in another format e.g JPG or PNG insertbmp.exe will refuse to work
But....
You can convert it into BMP using Microsoft Paint. Just click on the button near the Home text at the top of the window and then Save As > BMP Picture
PaperTronics
Though if you have a image in another format e.g JPG or PNG insertbmp.exe will refuse to work
But....
You can convert it into BMP using Microsoft Paint. Just click on the button near the Home text at the top of the window and then Save As > BMP Picture
PaperTronics
Re: [Help] Image in batch file
PaperTronics wrote:You can use InsertBMP.exe made by aGerman. You can find this plugin on my website: http://www...
I must say it's a little shameful, on a site frequented by aGerman, to use his work as yet another plug to your website.
Re: [Help] Image in batch file
It's freeware. So I'm fine
Steffen
Steffen
-
- Posts: 118
- Joined: 02 Apr 2017 06:11
Re: [Help] Image in batch file
Compo wrote:PaperTronics wrote:You can use InsertBMP.exe made by aGerman. You can find this plugin on my website: http://www...
I must say it's a little shameful, on a site frequented by aGerman, to use his work as yet another plug to your website.
Compo I just pointed to my website so that he could know how to use it. I could've added the syntax of InsertBMP in the reply but I din't want to make it long. So that's why I pointed to my website.
My apologies if I did anything wrong
Re: [Help] Image in batch file
I would like to make insertbmp.exe work with the latest version of Windows 10
Re: [Help] Image in batch file
If i remember right, then aGerman is the developer of "insertbmp.exe" and gave misol101 the source who implemented it in his utility "CmdBkg.exe":
viewtopic.php?t=7407
If "insertBmp.exe" doesn't work under winows 10, then i would suggest to use "CmdBkg.exe" instead.
penpen
viewtopic.php?t=7407
If "insertBmp.exe" doesn't work under winows 10, then i would suggest to use "CmdBkg.exe" instead.
penpen
Re: [Help] Image in batch file
Yes, CmdBkg is definitely the better choice. Not only that I don't know the reason why insertbmp doesn't work anymore, it would only draw in the console window itself which makes the image volatile.
Steffen
Steffen
Re: [Help] Image in batch file
CmdBkg will stretch the image to cover the entire cmd window though, which might not be what you want.
Cmdgfx_RGB might be a better choice (it can show BMP images among many other things), although I agree it seems strange that InsertBmp does not work.
Edit: there is also Cmdwiz ”insertbmp” operation, try if that works (simpler to use than cmdgfx_RGB, a few more options than aGermans insertbmp)
Cmdgfx_RGB might be a better choice (it can show BMP images among many other things), although I agree it seems strange that InsertBmp does not work.
Edit: there is also Cmdwiz ”insertbmp” operation, try if that works (simpler to use than cmdgfx_RGB, a few more options than aGermans insertbmp)
Re: [Help] Image in batch file
thanks for all the answers you gave me what I would like to do is do exactly like InsertBmp with windows 10 but the problem is that it does not work with Windows 10
Re: [Help] Image in batch file
I am the author of insertbmp. I did several tests and I confirm that this tool doesn't work using the new Windows 10 console. It still inserts the image, but it persists only as long as the insertbmp.exe process lives (some milliseconds). That means Microsoft changed something in the new console host. I don't know how to work around this issue.
Steffen
Steffen
Re: [Help] Image in batch file
you would not have an alternative if you find an alternative I will be a taker because it's been 5 or 6 months that I seek if you discord you could pass me your discord or I pass mine to you strictly POKEFAN62 # 9795
Re: [Help] Image in batch file
Unfortunately this doesn't fix anything. Letting the process live longer also means that the batch processing waits until the process terminates. But this doesn't make sense because you certainly want to immediatelly continue in your script. And guess what happens if the proces finally terminates ...
So, no this tool is just dead. If you want to have images then have a look at misol101's tools. Or use the Windows Terminal app to launch your batch scripts where you can define background images in its JSON profile settings.
Steffen
So, no this tool is just dead. If you want to have images then have a look at misol101's tools. Or use the Windows Terminal app to launch your batch scripts where you can define background images in its JSON profile settings.
Steffen