Search found 763 matches

by einstein1969
08 May 2017 08:31
Forum: DOS Batch Forum
Topic: How do I use the function sin (x) and cos (x) -do not understand the algorithm
Replies: 3
Views: 1154

Re: How do I use the function sin (x) and cos (x) -do not understand the algorithm

Hi phil, I have waited that Antonio Acini answered because him is very expert and I have depression and my mental health is not good. but I probe to explain: - The SIN function uses in input INTEGER number in form 10000*RADIANT and output from -10000 to 10000. Uses a FIXED POINT like math where ONE=...
by einstein1969
17 Apr 2017 13:44
Forum: DOS Batch Forum
Topic: Fractal: Dragon curve
Replies: 12
Views: 3565

Re: Fractal: Dragon curve

@neorobin
Have you tested the echo;%TAB%!BSs! with the "findstr colors"?
by einstein1969
14 Apr 2017 10:16
Forum: DOS Batch Forum
Topic: Fractal: Dragon curve
Replies: 12
Views: 3565

Re: Fractal: Dragon curve

Hi neorobin,

I have tested on italian windows 7 32bit and work well.

einstein1969
by einstein1969
12 Apr 2017 15:39
Forum: DOS Batch Forum
Topic: Batch Maze Game:(Another Major speed improvement)
Replies: 11
Views: 4045

Re: Batch Maze Game:(Another Major speed improvement)

Hi,

I have probed the V 2.0. and when i finish the game in time, the game change windows size and reinit a new maze without show the "congratulation" message.

einstein1969
by einstein1969
10 Apr 2017 13:59
Forum: DOS Batch Forum
Topic: Speecher | A Pro Text-to-Speech Engine in Batch | By PaperTronics
Replies: 15
Views: 4116

Re: Speecher | A Pro Text-to-Speech Engine in Batch | By PaperTronics

with mshta:

Code: Select all

@echo off

set /p "to_say=enter a text :"

mshta "javascript:code(close((V=(v=new ActiveXObject('SAPI.SpVoice')).GetVoices()).count&&v.Speak('%to_say%')))"
by einstein1969
10 Mar 2017 14:13
Forum: DOS Batch Forum
Topic: How display an image/pictures on cmd screen?
Replies: 22
Views: 12278

Re: How display an image/pictures on cmd screen?

with my code is possible get an result like this (using a 1x1 fonts and a calculate palette):

on left a dos windows, on rigth the windows viewer.
Image
by einstein1969
10 Mar 2017 11:26
Forum: DOS Batch Forum
Topic: Question about code pages, characters and fonts
Replies: 13
Views: 3330

Re: Question about code pages, characters and fonts

Hi Antonio,

+1 for this code page, fonts and characters questions :D . I'm interested too. 8)

einstein1969
by einstein1969
10 Mar 2017 11:07
Forum: DOS Batch Forum
Topic: How to center align text.
Replies: 30
Views: 6312

Re: How to center align text.

Hi, you can center a string at specified length using this tip: @echo off & setlocal EnableDelayedExpansion :: size of box or windows (specified length) set sizemax=70 set s=blablablablablabla for /L %%# in (1,2,!sizemax!) do if "!s:~%sizemax%,1!" == "" set "s= !s! "...
by einstein1969
10 Mar 2017 10:53
Forum: DOS Batch Forum
Topic: Batch Maze Game:(Another Major speed improvement)
Replies: 11
Views: 4045

Re: Batch Maze Game

Hi, good work Sounak@9434! can you add a timeout for completing a maze ? (this is very difficult) For pure batch game you can use neorobin's maze generator: @echo off & setlocal enabledelayedexpansion & color f0 & chcp 437 set /a "wid=60,hei=40,wid|=1,hei|=1,iMax=wid*hei,cols=wid,ro...
by einstein1969
01 Feb 2017 11:03
Forum: DOS Batch Forum
Topic: Dos Batch Raycast - Maze3D/Explorer3D Beta
Replies: 61
Views: 20227

Re: Dos Batch Raycast - Maze3D/Explorer3D Beta

aGerman wrote:einstein1969
To be honest I wouldn't feel comfortable providing non-ASCII variable names (like %%£) in a forum like DosTips :wink: You can't predict what default code pages computers of international members use.

Steffen


thanks Steffen. :oops:
by einstein1969
01 Feb 2017 09:39
Forum: DOS Batch Forum
Topic: Dos Batch Raycast - Maze3D/Explorer3D Beta
Replies: 61
Views: 20227

Re: Dos Batch Raycast - Maze3D/Explorer3D Beta

npocmaka_ wrote:Glad to see you back :)

I've tried the last code but I get this:

Code: Select all

%£ was unexpected at this time.



On my system this error is not show...

The "set ray" is a debug line. The code is not finished! Sorry :cry:

Francesco
by einstein1969
31 Jan 2017 13:05
Forum: DOS Batch Forum
Topic: Dos Batch Raycast - Maze3D/Explorer3D Beta
Replies: 61
Views: 20227

Re: Dos Batch Raycast - Maze3D/Explorer3D Beta

I have forgot the password of my laptop but I have recovered the last develop of raypacket method. Anyone know a method for recovery a lost password on windows seven? Use a private message for help me. TIA This is not finished. But is the way to traverse for finish the develop. ricorsiva.cmd: @echo ...
by einstein1969
26 Oct 2016 08:31
Forum: DOS Batch Forum
Topic: Dos Batch Raycast - Maze3D/Explorer3D Beta
Replies: 61
Views: 20227

Re: Dos Batch Raycast - Maze3D/Explorer3D Beta

I found another trick for speedup the algorithm. The output of the screen is symmetric on the X or Y. It is possible calculate only half number of lines. In this mode we can get 50ms off or more on the traslate procedure. I can't implement because I'm getting a depressive status and my mind not work...
by einstein1969
24 Oct 2016 04:15
Forum: DOS Batch Forum
Topic: Fastest sin(x) in dos batch
Replies: 36
Views: 15858

Re: Fastest sin(x) in dos batch

thanks Antonio for colorized version!
by einstein1969
22 Oct 2016 09:02
Forum: DOS Batch Forum
Topic: RdRand.exe: Robust random numbers for Batch files
Replies: 19
Views: 5667

Re: RdRand.exe: Robust random numbers for Batch files

On my old intel celeron I aspect 0.

But my "Avira antivir" found a "HEUR/APC (Cloud)' model.

All work fine without antivirus active (ERRORLEVEL=0)

Great utility! I think at Montecarlo methods for graphics generation :)

einstein1969