Batch Index du Forum
S’enregistrerRechercherFAQMembresGroupesConnexion
Répondre au sujet Page 3 sur 3
Aller à la page: <  1, 2, 3
BG.exe v2.8 Utility
Auteur Message
Répondre en citant
Message BG.exe v2.8 Utility 
Revue du message précédent :

Ok.
I posted now the version 2.3.
Changes:
-Added Unicode support !.
-Added "Sprite" parameter.
-"Wait" parameter renamed to "Sleep".
-"PrintColor" parameter renamed to "Print".
-"FontSize" parameter renamed to "Font".
-"ShowCursor" and "HideCursor" parameters replaced by "Cursor" parameter.-
-"Kbd" and "_Kbd" now when return extended keys it plus 255 to the key ascii.

and I updated the batch games examples.

Message Publicité 
PublicitéSupprimer les publicités ?


Répondre en citant
Message BG.exe v2.8 Utility 
Updated to version 2.4.

Changes:
-Rewrited the "Sprite" function (improved).
-Added "Time" function.

Is ironic, but I added Unicode support to the application, but I use in the code this line:
Code:
SetConsoleOutputCP(1252);

And for continue with the Unicode support it should be:
Code:
SetConsoleOutputCP(CP_UTF8);


But testing the application I found that it run more fast using 1252. If you have some problems with unicode characters, change the line and recompile.



Répondre en citant
Message BG.exe v2.8 Utility 
Updated to version 2.5
Changes:
-Full Unicode support.
-Incremented the speed.
-Improved the Sprite function.
-Improved the Time function.
-Improved the Cursor function.
-Add functions: Beep, Color, Cp.



Répondre en citant
Message BG.exe v2.8 Utility 
Hello people Cool

Really your BG.exe carlos, nothing to say.
By cons I'll be boring, the info is in French when? Mr. Green
This is a joke carlos, translate widely enough.

A +




______________________________________________________
Le batch est mon joujou de tout les jours,
plus pour le loisir que pour le travail,
et avec j'apprend presque tout les jours,
comment programmer et le travailler,
pour avoir enfin un résultat cool.

Ed la poignée du 93 (^_^)
Yahoo Messenger MSN Skype
Répondre en citant
Message BG.exe v2.8 Utility 
Salut,

Carlos n'est pas là pour traduire Smile

BG v2.5 (unicode)

BG.EXE est un outil pour afficher du texte en couleur dans cmd.exe. Il permet d'afficher des caractères ASCII. Il a aussi d'autres fonctions utiles.

::::: Paramètres :::::

Kbd
::Attend la pression d'une touche, et renvoie le code ASCII.
::Si une "touche étendue" est préssée, le code ASCII est renvoyée, plus 255. Par exemple, la flèche vers le haut (72) renvoie 327 (72+255).

_Kbd
::N'attend pas la pression d'une touche : si aucune n'est pressée, le code renvoie la valeur 0.
::Touches étendues : voir la commande précédente.

Mouse
::Attend un clic gauche dans le cadre de la console.
::Valeur renvoyée :
:: 1|2 numeroLigne numeroColonne
:: (1 est le bouton gauche, 2 est le bouton droit. C'est l'un ou l'autre.)

Time
::Affiche huit nombres, séparés par des espaces :
::Année Mois Jour JourDeLaSemaine Heure Minute Seconde Milliseconde
::
::JourDeLaSemaine : de 0 à 6. Attention : syntaxe anglophone, le premier jour (0) est dimanche, puis lundi... puis samedi (6).
::Jour : de 1 à 31
::Mois : de 1 à 12
::Année : de 1601 à 30827
::Heure : de 0 à 23
::Minute : de 0 à 59
::Seconde : de 0 à 59
::Milliseconde : de 0 à 999

Cursor 0 | 1 | 25 | 50 | 100
::Affiche ou masque le curseur dans la console, ou change sa taille.
::0 cache le curseur
::1 montre le curseur
::25 taille petite
::50 taille moyenne
::100 taille grande

Font 0 | 1| 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
::Change la taille de la police.

Sleep X
::Fait une attente de X millisecondes.

Locate Ligne Colonne
:Very Happyéplace le curseur dans la console (première case : 0 0).

Beep [0-3]
::Joue un son système.

Cp
::Affiche la valeur du code de la page (???) et la renvoie en errorlevel.

Color [0-F][0F]
::Change la couleur de la console.
::Sans paramètres, affiche la couleur de la console.

Print text
::print text without new line to end. The text is interpreted how regular expression.
::please see the regular expressions in down.

Print color text
::Affiche le texte indiqué, mais sans retour à la ligne.
::Le texte suit les expressions suivantes :
\n : Retour à la ligne
\\ print \
\Nombre : Affiche un caractère ASCII (Nombre va de 0 à 255). Exemple: \1 affiche un bonhomme.
Note 2: Vous pouvez répéter les arguments.
Exemple : BG Print CouleurA "TexteA" CouleurB "TexteB" ...

Sprite Ligne Colonne [color text ...]
::Commence l'affichage d'un sprite (image).
::\n : aller à la ligne suivante.
::\0 : espace transparent (donc qui laisse voir le fond éventuel) dans le sprite
::Exemple :
Color 07
Set "spi=A \32\32\219\32\32\32\32\32\219\32\32\n"
Set "spi=%spi%\32\32\32\219\32\32\32\219\32\32\32\n"
Set "spi=%spi%\32\32\219\219\219\219\219\219\219\32\32\n"
Set "spi=%spi%\32\219\219 E \219 A \219\219\219 E \219 A \219\219\32\n"
Set "spi=%spi%\219\219\219\219\219\219\219\219\219\219\219\n"
Set "spi=%spi%\219\32\219\219\219\219\219\219\219\32\219\n"
Set "spi=%spi%\219\32\219\32\32\32\32\32\219\32\219\n"
Set "spi=%spi%\32\32\32\219\219\32\219\219\32\32\32"
BG.exe Sprite 2 2 %spi%
Pause >Nul

::::: Colours :::::
[fond]texte
Les couleurs sont chacune un chiffre en hexadécimal (0123456789ABCDEF).

0 = Noir
1 = Bleu
2 = Vert
3 = Cyan
4 = Rouge
5 = Violet
6 = Jaune
7 = Gris-Blanc
8 = Gris
9 = Bleu clair
A = Vert clair
B = Cyan clair
C = Rouge clair
D = Violet clair (rose)
E = Jaune clair
F = Blanc





______________________________________________________
Skype
Répondre en citant
Message BG.exe v2.8 Utility 
ytrezAn a écrit:
Salut,

Carlos n'est pas là pour traduire

Tiens !

Mort de Rire C'étais pas nécessaire ytrezAn, mais merci quand-même Okay (ça m'évite de me le faire moi-même Mr. Green )

A +




______________________________________________________
Le batch est mon joujou de tout les jours,
plus pour le loisir que pour le travail,
et avec j'apprend presque tout les jours,
comment programmer et le travailler,
pour avoir enfin un résultat cool.

Ed la poignée du 93 (^_^)
Yahoo Messenger MSN Skype
Répondre en citant
Message BG.exe v2.8 Utility 
Hello I posted the version 2.7 of bg.exe



Répondre en citant
Message BG.exe v2.8 Utility 
Hello, Posted the version 2.8 of bg. I think that is the best version. It really fly. This is the version that I've always been looking.



Répondre en citant
Message BG.exe v2.8 Utility 
Thanks you Carlos, good afternoon.




______________________________________________________
Le batch est mon joujou de tout les jours,
plus pour le loisir que pour le travail,
et avec j'apprend presque tout les jours,
comment programmer et le travailler,
pour avoir enfin un résultat cool.

Ed la poignée du 93 (^_^)
Yahoo Messenger MSN Skype
Répondre en citant
Message BG.exe v2.8 Utility 
I will upload the versión 2.9 of bg this monday.

I will have some changes:
- the function sprite will be change the funcionality.
- fullscreen function.



Répondre en citant
Message BG.exe v2.8 Utility 
Greets, Carlos!
First of all, thanks for the nifty and useful command line utility! I've been using SuperBG.exe for a couple of years now with no worries and no complaints. I recently thought to search for an update and was really glad to see that you've continued development on BG. I just wanted you to know what an impressive little utility you've created for the masses. The C code is tight and concise, very easy to read.
Nice.

I hope that the previously mentioned v2.9 might still exist, and judging from cmdfs you're still working on it. I love the inclusion of sprites and sound! I originally needed your app for some menu control, but since the colored text functionality was there I started to use it. Now with the ability to easily play small wave snippets I'm sure to start using that as well. Fun! If I may make a request? I'm still using TinyBG.exe for the sole purpose of permenently changing the foreground/background colors (/c). Is there any chance that you may re-include this functionality into BG? I seriously use both programs in nearly every batch file I write and include TinyBG just for that reason. It would be great to only need one.

For some batch files using BG for control and a splash of color, check out the sparsely populated programming folder on my google drive.

I'm still working my way through HexNuts, I'm on level 35ish. What a great little game, and highly educational too! While your C code is easy to read... the WinNT script not so much. ^_^ However, I learned plenty by going through it and "cleaning up" the code so that I could read it more easily. If you'd like I could post it for others to see and learn from (v1.3.0).
I'm correct in assuming that SokoBox is a sprite-based and sound-included version of HexNuts?

I check here and on your code page often for any further additions or advancements on BG. I thought you might like to know there are folks out here who really dig your very tiny and incredibly useful app.

P.S. What does BG stand for? I originally found BG while searching for a WinNT version of the old and uber useful DOS utility BATCHMAN... any relation?



Répondre en citant
Message BG.exe v2.8 Utility 
@CirothUngol: thanks for your enthusiastic comments.
bg is and acronym of batch game.

Currently, I'm developing the new version of bg that will improve so much the sprite system, it will replace the current sprite function.
I'm stopped on decide the format for the sprite.

Yes, sokobox is a sound and sprite version of hexnuts.

About include the change color function. Sure.

Here you found the current developing version. It not have the sprite function, but I included the color function. If you read the source you can found that it have so mnay changes:
unicode support
"_kbd" renamed to "lastkbd"
"kbd" now sum 256 where the key is extended, before it sum 255
"time" now print the day of week in first
more clear and speedy code.

http://consolesoft.com/p/bg



Répondre en citant
Message BG.exe v2.8 Utility 
Yes! Thanx for including my request in the updated preview Carlos... you're a pal.
I snagged it a few weeks ago and have seamlessly and effortlessly incorporated it into my current batch projects. Since I really only use it for menu control and colored output, the sprites aren't even missed (though I'm quite curious as to how you'll implement them next time). I like the switch from "_Kbd" to "LastKbd", it's both easy and descriptive.

I've already logged hundreds of hours of use for this version of BG, not a single hiccup or glitch. Just for the record, I always include the source.txt when I redistribute your app. I look forward to checking out the newest version when you release it.



Répondre en citant
Message BG.exe v2.8 Utility 
Just dropping by to say that I've updated my programming folder with several batch files using the beta of BG.EXE you so kindly provided me. One of them automatically produces thumbnails and backgrounds for media menus from the source video files and another optimizes and reduces JPG and PNG images (really slow, but more effective than any other image optimizer I've found). All of the sleek, polished, convenient, and professional features such as color-highlighted text, pause during execution and clean exit on abort are provided courtesy of BG.EXE... gotta love it. ^_^
Thanks again Carlos, you're little app has made batch programming considerably more versatile.

I'm currently stuck on level 69 of HexNuts... still not even half-way there. *sigh*

Coupla questions: Which editor do you use for batch programming? So far NotePad++ is the best one I've found. Do you know of one better? Also, do you know of a batch debugger? I found one called "Running Steps", but the vendor is gone so the software is unavailable.



Répondre en citant
Message BG.exe v2.8 Utility 
PowerBatch is a good batch editor, with lots of tools Smile




______________________________________________________
~
Répondre en citant
Message BG.exe v2.8 Utility 
Currently, I use notepad++ for batch and c programming.
But I remember used SciTE for the programming of hexnuts.
About a debugger for batch I not know.



Message BG.exe v2.8 Utility 


Montrer les messages depuis:
Répondre au sujet Page 3 sur 3
Aller à la page: <  1, 2, 3
  



Index | créer un forum | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Copyright 2008 - 2016 // Batch