Search found 468 matches

by misol101
25 Jun 2016 17:52
Forum: DOS Batch Forum
Topic: MarioRun - 2d scrolling game with parallax background
Replies: 16
Views: 7031

Re: MarioRun - 2d scrolling game with parallax background

Here is the script: :: Parallax scrolling jumping game : Mikael Sollenborn 2016 @echo off setlocal ENABLEDELAYEDEXPANSION cls & bg font 0 set W=240&set H=110 mode con lines=%H% cols=%W% mode con rate=31 delay=0 for /F "Tokens=1 delims==" %%v in ('set') do if not %%v==H if not %%v==...
by misol101
25 Jun 2016 17:49
Forum: DOS Batch Forum
Topic: MarioRun - 2d scrolling game with parallax background
Replies: 16
Views: 7031

MarioRun - 2d scrolling game with parallax background

You control Mario in this silly little game, don't run into the bad guys! Keys: SPACE or UP to jump DOWN to crouch (you can hold down the key to keep crouching) LEFT to run backwards (funny thing in this game: you can actually run away from the enemies, at least in the beginning of the game. However...
by misol101
25 Jun 2016 09:05
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 11145

Re: Programs blocking the current shell

The command shell initially consists of the (main) process "Console Window Host" and one working thread ("Windows Command Processor"; lets name this thread T1). With "start /B "" banana.bat " you create another thread (=: T2). When you press CTRL+BREAK then t...
by misol101
25 Jun 2016 04:52
Forum: DOS Batch Forum
Topic: CmdRunner - 3d game (CubeRunner clone)
Replies: 44
Views: 23107

Re: CmdRunner - 3d game (CubeRunner clone)

The cmdrunner archive was updated (see top for link), and now includes a second batch file called cmdrunner_fog.bat. As the name indicates, if you run cmdrunner_fog.bat, then you get "fog" in the game, i.e. cubes in the background are less visible. This looks better IMHO, but the downside ...
by misol101
25 Jun 2016 04:48
Forum: DOS Batch Forum
Topic: Listb - a file explorer/viewer inside the console window
Replies: 27
Views: 116452

Re: Listb - a file explorer/viewer inside the console window

Archive was updated again, following the long and somewhat confused discussion here: http://www.dostips.com/forum/viewtopic.php?f=3&t=7242&p=47374 Basically, when pressing 'i' or 'j' to launch a file, com/exe/bat/cmd files runs synchronously and in the same cmd window (as before), whereas al...
by misol101
25 Jun 2016 04:44
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 11145

Re: Programs blocking the current shell

aGerman: Hehe, this just gets more confusing The output is: "C:\Program Files\Internet Explorer\iexplore.exe" %1 But when I launch a html file with e.g. start "" "file.html", Chrome launches! Edit: and I never use Internet Explorer, I use either Firefox or Chrome.
by misol101
24 Jun 2016 18:10
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 11145

Re: Programs blocking the current shell

I've not seen this happening with other utilities and using /b with start. Have you experienced this with any other batch script? At the top of this page(page 2) I write about some odd behaviour that is caused by running start /b with a very simple example file called banana.bat. Does it behave the...
by misol101
24 Jun 2016 16:47
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 11145

Re: Programs blocking the current shell

I think my "solution" to this will be to use: call "file" for bat and exe files, and: start "" "file" for all other extensions. This could still lead to freezes if the user actively browsed to e.g. the Chrome folder and started the executable, but it's pretty ...
by misol101
24 Jun 2016 16:41
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 11145

Re: Programs blocking the current shell

Um ... from my point of view file explorers should run them rather asynchronously. At least I would complain if the Windows Explorer wouldn't ... Haha, yes, true of course. The thing is, I don't really care if they run asynchronously or not for listb, but yes, I guess it is better they do. And I'm ...
by misol101
24 Jun 2016 16:23
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 11145

Re: Programs blocking the current shell

...the issue you see on the first command in the initial question is with Chrome. If you try the same thing with Firefox it will release the batch script and is what all multi-threaded GUI programs should do. Agreed, they really should! The issue is within my listb file explorer though, so I can't ...
by misol101
24 Jun 2016 15:31
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 11145

Re: Programs blocking the current shell

foxidrive wrote:
misol101 wrote:Case (5): A new cmd window is opened, and nothing else happens (why is it like this?)

This is what is in your question and what I was addressing.


Ok, that was a side question, not the main one. But agreed, you did answer that. Thank you.
by misol101
24 Jun 2016 15:25
Forum: DOS Batch Forum
Topic: Programs blocking the current shell
Replies: 41
Views: 11145

Re: Programs blocking the current shell

This is a longish thread - but in essence the batch will stop because it is missing "" after the start keyword. No, surprisingly it runs as expected, the problem is another (as the thread explains). (though I have learned from this thread that the first argument to "start" shoul...
by misol101
24 Jun 2016 14:58
Forum: DOS Batch Forum
Topic: Listb - a file explorer/viewer inside the console window
Replies: 27
Views: 116452

Re: Listb - a file explorer/viewer inside the console window

Whoops, the link in the first post was not pointing to the new archive. Fixed now!

If you tried to download listb.zip (or gotoxy.zip) earlier today and didn't see the expected dividing lines, please re-download.
by misol101
24 Jun 2016 14:43
Forum: DOS Batch Forum
Topic: Listb - a file explorer/viewer inside the console window
Replies: 27
Views: 116452

Re: Listb - a file explorer/viewer inside the console window

Alright, one more update. Keep thinking it's the last one. Probably not I guess If files/folders are too long for their column, this is now marked at the end of the name with a ~ character. Also, I decided to turn on dividers in listb.bat (I got used to them now ). This means it's the opposite now t...