You are here

NinjaCommandPortable 1.5.0.0 beta

105 posts / 0 new
Last post
powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
NinjaCommandPortable 1.5.0.0 beta

This program allows you to start command prompt when needed. It allows you to either start cmd, or if you are in a situation where you cannot use cmd, it will emulate one for you.
Please note:
I did not make this the credit goes to Tristiano77,
Ok with all that said here it the final version
NinjaCommandPortable
new to 1.5.0.0
added language support
TODO
setting up tab completion(may or may not happen)
Hey all we need the language support for the program, it is really easy, please post what a notepad file says when you open it
For Ex.

Language: English
Title of notepad: Untitled - Notepad
Name: powerjuce

thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
-

-

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
Any chance you could fix the

Any chance you could fix the Resources so it shows the same sort of Version | File | Description information that other PA apps do?

MC

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
done

is that what you were looking for?
~thanks

Please search before posting. ~Thanks

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
Excellent. Now all it needs

Excellent.

Now all it needs is a PAF installer.

MC

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
nsis :-(

i actually dont know how to do that
well more like how to compile it so sorry:-(
any help would be great
i am starting to research it now
btw
i used 7zip and changed
icons and the dialog
is that ok or should i stop?

Please search before posting. ~Thanks

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 8 years 5 months ago
Developer
Joined: 2007-01-10 19:25
Installer

I made you an installer. I had to change some names and redo the appicon.ico (just resolutions) so that it would work with the installer. Take it if you like it! Installer Download

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
looks great but...

when i run it it freezes at
"checking for Portableapps Platform"
also could you store the ini file it creates into the "Other" dir
please also remove this download because it has the copyrighted icon
thanks

Please search before posting. ~Thanks

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 8 years 5 months ago
Developer
Joined: 2007-01-10 19:25
What icon?

What copyrighted icon? If you are talking about John's icon, then it is okay. You can use his banner in installers as long as the installer mentions the copyright as "PortableApps.com and contributors." If you are talking about your icon, then you are violating the GNU GPL, as part of the icon comes from Command Prompt Portable, which uses a GPLed icon. I'll take a look into the freezing, as I've never even seen that page before. I will leave the download up until the copyright violation is verified.

EDIT:
I looked and saw that it did freeze, and will hopefully update the installer today.

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
icon problem

http://www.iconbuffet.com/tags/ninja
well the actual ninja icon is the from that site
the terms state that we cannot "change, modify or redistribute" this icon
we have done all three by using it,
i found another icon which is open source, so i guess i will have to say that the icons are form command prompt portable and this other site.

Please search before posting. ~Thanks

Kevin Porter
Kevin Porter's picture
Offline
Last seen: 8 years 5 months ago
Developer
Joined: 2007-01-10 19:25
Okay.

Thank you for the clarification. I'll bring the download down. Please let me know when you can get me the new icon, and I'll update the installer with the new icon and the freezing problem fixed.

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
already up

i changed it and the updated download is up
thanks by the way for making the NSIS script
once again could you change

	CreateDirectory "$INSTDIR\Data\settings"
	WriteINIStr "$INSTDIR\Data\settings\NinjaCommandPromptPortableSettings.ini" "NinjaCommandPromptPortableSettings" "AgreedToLicense" "YES"

to

	CreateDirectory "$INSTDIR\Other\settings"
	WriteINIStr "$INSTDIR\Other\settings\NinjaCommandPromptPortableSettings.ini" "NinjaCommandPromptPortableSettings" "AgreedToLicense" "YES"

also how do you set the NSIS up so it will create the installer
i tried it and it did not work, any help would be great
figured it out
used your code for the installer
read the help files (who knew they would help Shock )
once again
thanks

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
-

-

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
Just make sure

Just make sure you don't use someone's copyrighted icon. We might want to distribute this program without getting someone into trouble.

Besides, you can probably come up with a better icon than the one in notepad.exe

MC

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
i don't even make icons, i

i don't even make icons, i don't have any icon software. how bout the one of notepad.exe with one pixel changed?

Caehan
Caehan's picture
Offline
Last seen: 14 years 5 months ago
Joined: 2007-10-19 22:51
I was thinking about the icon...

.. And how it is seen when this app is in Ninja mode. If it is trying to look like a notepad app, shouldn't it have something that actually looks like a notepad icon? (Like the one Microsoft Notepad has, not Portable Notepad.)

...But the gift of God is eternal life through Christ. Romans 6:23

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
made one

well....
about that
i sorta spent finished a new version a couple of hours ago which includes the notepad icon
i am changing the link now

Please search before posting. ~Thanks

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
Is tab filename completion a

Is tab filename completion a possibility in Notepad mode? Or maybe I'm just not trying it right.

How about closing on the exit command?

(Just dreaming, not demanding.)

Thanks again.

MC

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
i dont know what tab

i dont know what tab filename completion is so i cant help you there
exit when typing exit is next on the list.

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
i know what it

i know what it is

http://en.wikipedia.org/wiki/Command_line_completion

it just doesnt work in ninja mode.

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
unavoidable

i think that it is unavoidable because the code first takes what you input as a string then puts it launches the command prompt and inputs the command into it
unless someone knows a different way i think it unavoidable.

Please search before posting. ~Thanks

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
Ok, in Ninja mode how about

Ok, in Ninja mode how about changing drive, like when you type

k:

to go to the K: drive? It responds like it is working, but doesn't appear to be. Or maybe it is the

cd

by itself that is showing me the wrong thing?

Could it be that the system call you are using is able to do executables, but not the built in commands? Or maybe it is doing those things in a shell that exits and loses the change?

MC

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
it does them in a shell so

it does them in a shell so it will lost the change
try using setx to store variables globally
~regards

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
if you want that to work in

if you want that to work in ninja mode you must make a batch file with the commands then execute it from ninja mode

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
i will have to make a change

because it still will look in the same directory
i guess i could ask it to look in a file first to check if a command exists then execute it, however nothing is going to happen until the icon prob is solved
i dont want you or myself to get into trouble

Please search before posting. ~Thanks

Caehan
Caehan's picture
Offline
Last seen: 14 years 5 months ago
Joined: 2007-10-19 22:51
Oops...

I read the User Agreement for the site I got that icon from (I need to learn to read them more often). The icon that I gave you is not supposed to be redistributed. I am sorry I didn't read the agreement before I sent it to you, Powerjuce.

...But the gift of God is eternal life through Christ. Romans 6:23

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
problem

ok can you tell me where you got the icon from
and its not that bad
we are just in the market for a new icon i guess now
~regards

Please search before posting. ~Thanks

Caehan
Caehan's picture
Offline
Last seen: 14 years 5 months ago
Joined: 2007-10-19 22:51
Here ya go...

...But the gift of God is eternal life through Christ. Romans 6:23

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
a simple modification to the

a simple modification to the code makes it wait for the next key press after panic mode and then clear the screen. here ya go!

#include    // For access().
#include   // For stat().
#include    // For stat().
#include 
#include 
#include 
using namespace std;
int command();
int getmode();
bool checkpath(string strPath);
int main()
{
//    if (ifstream("Data"))
//    if (PathExits("Data")==false)
    if (checkpath("Data")==false)
    {
    system("md Data");
    system("copy App\\DefaultData\\* Data");
    }
    else
    {
    system("cls");
    }
    system("Data\\autorun");
    getmode();
}
bool checkpath(string strPath)
{
    if ( access( strPath.c_str(), 0 ) == 0 )
    {
        struct stat status;
        stat( strPath.c_str(), &status );

        if ( status.st_mode & S_IFDIR )
        {
            return true;
        }
    }
    else
    {
        return false;
    }
}
int command()
{
    char str(80);
    char str2(112);
    char cmd[1024];
    cout>choice;
    if (choice == 1) {
       system("title Command Prompt");
       system("cls");
       system("cmd.exe");
       }
    else if (choice == 2) {
         system("@echo off");
         system("color F0");
         system("title Untitled - Notepad");
         system("@echo on");
         system("cls");
         command();
         }
    else {
         system("cls");
         cout
powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
nice

i would have never gotten that

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
well cin.get() is the

well cin.get() is the equivelent of pause only no text, it just came to me Blum

ok final code edit i gotta sleep. snow day tomarow tho Biggrin

anyway i made exit work. it was a simple trick.

#include    // For access().
#include   // For stat().
#include    // For stat().
#include 
#include 
#include 
using namespace std;
int command();
int getmode();
bool checkpath(string strPath);
int main()
{
//    if (ifstream("Data"))
//    if (PathExits("Data")==false)
    if (checkpath("Data")==false)
    {
    system("md Data");
    system("copy App\\DefaultData\\* Data");
    }
    else
    {
    system("cls");
    }
    system("Data\\autorun");
    getmode();
}
bool checkpath(string strPath)
{
    if ( access( strPath.c_str(), 0 ) == 0 )
    {
        struct stat status;
        stat( strPath.c_str(), &status );

        if ( status.st_mode & S_IFDIR )
        {
            return true;
        }
    }
    else
    {
        return false;
    }
}
int command()
{
    char str(80);
    char str2(112);
    char cmd[1024];
    cout>choice;
    if (choice == 1) {
       system("title Command Prompt");
       system("cls");
       system("cmd.exe");
       }
    else if (choice == 2) {
         system("@echo off");
         system("color F0");
         system("title Untitled - Notepad");
         system("@echo on");
         system("cls");
         command();
         }
    else {
         system("cls");
         cout
powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
i got it to work but you way

i got it to work but you way is better
just changed the icon will upload now

Please search before posting. ~Thanks

John Bentley
John Bentley's picture
Offline
Last seen: 12 years 12 months ago
Developer
Joined: 2006-01-24 13:26
You can use system("pause >

You can use system("pause > nul");

cowsay Moo
cowthink 'Dude, why are you staring at me.'

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
found a bug. in ninja mode

found a bug. in ninja mode you check to see if the first charicter is a p, thats bad practice you should use strcmp. im fixin it. the problem is when you type anything beginning with a p it goes into panic mode. eg path or prompt $p$g.

#include    // For access().
#include   // For stat().
#include    // For stat().
#include 
#include 
#include 
using namespace std;
int command();
int getmode();
bool checkpath(string strPath);
int main()
{
//    if (ifstream("Data"))
//    if (PathExits("Data")==false)
    if (checkpath("Data")==false)
    {
    system("md Data");
    system("copy App\\DefaultData\\* Data");
    }
    else
    {
    system("cls");
    }
    system("Data\\autorun");
    getmode();
}
bool checkpath(string strPath)
{
    if ( access( strPath.c_str(), 0 ) == 0 )
    {
        struct stat status;
        stat( strPath.c_str(), &status );

        if ( status.st_mode & S_IFDIR )
        {
            return true;
        }
    }
    else
    {
        return false;
    }
}
int command()
{
    char str(80);
    char str2(112);
    char cmd[1024];
    cout>choice;
    if (choice == 1) {
       system("title Command Prompt");
       system("cls");
       system("cmd.exe");
       }
    else if (choice == 2) {
         system("@echo off");
         system("color F0");
         system("title Untitled - Notepad");
         system("@echo on");
         system("cls");
         system("prompt $p$g");
         command();
         }
    else {
         system("cls");
         cout

fixed all bugs and code mistakes
nocr
nocr's picture
Offline
Last seen: 13 years 8 months ago
Joined: 2007-05-04 11:47
a thought

I know that this is really insignificant, but I was thinking that in a future release, you might want to delete the Thumbs.db file located at: NinjaCommandPromptPortable\App\AppInfo

Just to make it more sleek and ninja-like.

Please Make TiLP Portable

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
ill get that

thanks

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
oh yeah! tab completion is

oh yeah! tab completion is done! it like all other things required nothing more than a little thinking outside teh bockses! the drawback is that the panic batch file must now be in the same directory. its no big deal it wont show up in pam.

#include    // For access().
#include   // For stat().
#include    // For stat().
#include 
#include 
#include 
using namespace std;
int command();
int getmode();
bool checkpath(string strPath);
int main()
{
//    if (ifstream("Data"))
//    if (PathExits("Data")==false)
    if (checkpath("Data")==false)
    {
    system("md Data");
    system("copy App\\DefaultData\\* Data");
    }
    else
    {
    system("cls");
    }
    system("Data\\autorun");
    getmode();
}
bool checkpath(string strPath)
{
    if ( access( strPath.c_str(), 0 ) == 0 )
    {
        struct stat status;
        stat( strPath.c_str(), &status );

        if ( status.st_mode & S_IFDIR )
        {
            return true;
        }
    }
    else
    {
        return false;
    }
}
int command()
{
    char str(80);
    char str2(112);
    char cmd[1024];
    cout>choice;
    if (choice == 1) {
       system("title Command Prompt");
       system("cls");
       system("cmd.exe");
       }
    else if (choice == 2) {
         system("@echo off");
         system("color F0");
         system("title Untitled - Notepad");
         system("@echo on");
         system("cls");
         system("cmd /k prompt $H");
         }
    else {
         system("cls");
         cout

fyi theres an unused function in there, command. you can take it out if you so wish.
powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
i will put this in as a

i will put this in as a test, however i am not sure that it will work on a limited account, I have submited a request to sourceforge.net so we can start a beta version.
I will compile and get back to you tommorow

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
mkay, good good.

mkay, good good.

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
confirmed

i just tested it and it was blocked
using cmd /k
is the same thing as cmd.exe

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
hmmmmmmmmmmmmmmmmmm. what if

hmmmmmmmmmmmmmmmmmm. what if the required command was put in a batch file then executed from ninja mode?

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
yea

that is what i was planning on creating
creating another function allowing them to store a command into a batch file
then allowing them to execute it using a special key
the script is still in progress A.K.A. stilling in the planning phase
if you want to try go ahead

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
the thing is while under

the thing is while under regular mode the only functions we can give the user must be external :S... its fine if there are multiple bats in the folder but may be confusing.

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
well i just tried to create

well i just tried to create a seperate function that would let them pick a letter (not p or P or course),
here i will post my attempt

#include   // For access().
#include // For stat().
#include    // For stat().
#include 
#include 
#include 
using namespace std;
int command();
int getmode();
int createBatch();
char store[7];
bool checkpath(string strPath);
int main()
{
    if (checkpath("Data")==false)
    {
    system("md Data");
    system("copy App\\DefaultData\\* Data");
    }
    else
    {
    system("cls");
    }
    system("Data\\autorun");
    getmode();
}
bool checkpath(string strPath)
{
    if ( access( strPath.c_str(), 0 ) == 0 )
    {
        struct stat status;
        stat( strPath.c_str(), &status );

        if ( status.st_mode & S_IFDIR )
        {
            return true;
        }
    }
    else
    {
        return false;
    }
}
int command()
{
    char cmd[1024];
    string temp;
    coutData\\" + (store,7) + "path.bat");
 command();
}
int getmode()
{
    int choice = 1;
    cout>choice;
    if (choice == 1) {
       system("title Command Prompt");
       system("cls");
       system("cmd.exe");
       }
    else if (choice == 2) {
         system("@echo off");
         system("color F0");
         system("title Untitled - Notepad");
         system("@echo on");
         system("cls");
         system("prompt $p$g");
         command();
         }
    else {
         system("cls");
         cout

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
good. i got an idea here.

good. i got an idea here. since external files is imperative, we do what is always done in that situation with a portable app, store the real app in the data folder and only have a launcher in the main folder! then external files will be used but not seen Wink

kinda like a ninja... or santa! or me Shock

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
cool

i can make the nsis
but that will be against the PA formatting
if that is ok with u
~regards

Please search before posting. ~Thanks

dragonmage
Offline
Last seen: 9 years 7 months ago
Joined: 2007-01-15 02:25
Could you not use the

Could you not use the launcher to make NCP "Start in" ..\..\Data , while the .exe itself is in the App folder? That would conform to the PAP right?

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
not sure how to do that though

NSIS is not my strong point
how would that be done?

Please search before posting. ~Thanks

dragonmage
Offline
Last seen: 9 years 7 months ago
Joined: 2007-01-15 02:25
No idea, I don't know any

No idea, I don't know any NSIS, you could ask Patrick or Ryan though.

whibo
Offline
Last seen: 1 year 8 months ago
Joined: 2006-11-23 16:00
.

.

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
Hmm. Maybe just get rid of

Hmm. Maybe just get rid of all the prompts and labels. It's a command prompt, after all.

Seriously, it might be good to try to localize it.

What name does Notepad.exe put in the Title bar in France?

MC

whibo
Offline
Last seen: 1 year 8 months ago
Joined: 2006-11-23 16:00
.

.

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
the installer has the different languages

however i am not sure how to make this happen
also, what prompts and labels are you talking about?

Please search before posting. ~Thanks

whibo
Offline
Last seen: 1 year 8 months ago
Joined: 2006-11-23 16:00
.

.

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
like i said i would love to

like i said i would love to but i do now know how
is there a way in C++ to directly do this?
ill start searching or if Tristiano77 could try that and i could start on the wrapper for it.
how does tat sound?

Please search before posting. ~Thanks

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
The things that need

The things that need changing are the title bar, the little menu when it first starts ("1 or 2", plus the description) and any help files.

A quick and easy way to do it would be to tell the user to change the .bat files to comply with their own language. Then all you'd have to do is figure out what to put on the title bar for the Ninja mode. That could be read from a file too, e.g. an .ini file.

I'd expect that one would prefer to have the choice of language belong to the portable app, rather than the host computer; that is, if you're from Quebec and running the program in an Internet Cafe in Mexico, you'd want the French/Quebec prompts on the screen rather than the Spanish/Mexican, but if you are in a school classroom in Mexico you would want to be able to choose the Spanish/Mexican appearance of Notepad in spite of running OOo in French. So reading the language from the machine's registry doesn't sound like a good option.

Is there a place in the Portable Apps setup where a language preference can be made that can be passed along as a default to the apps PAM runs?

Otherwise, just collect sample bat files for each language, in a "sample/[lang]" directory, and let people do what they want. It is a command prompt, after all. Or set up the different language versions of the batch files in standard directories and have the preference directory specified in the ini file.

MC

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
sounds good

so if anyone can send me the new batches that would be cool
i or Tristiano77 will be starting the wrapper
the language you want will be chosen by the language in the installer
or depending on how many different languages i get can be manually selected at the beginning of the program.
this version will be a beta and when it is up it will be in the sourceforge site.
so please send the text for the batch files!!!

Please search before posting. ~Thanks

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
icon copyright

hey this comment is for John or really anyone who can deal with the copyright stuff
Part of the ninjacommand icon is the cmdPortable, is that ok there is a file that says that the icon is copyrighted to PA.
thanks

Please search before posting. ~Thanks

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
My understanding is that you

My understanding is that you should use generic or your own custom icons for testing and beta versions until it is clear whether it is going to be accepted under the PA umbrella. That goes for the splash screen in the installer too. If John says it's ok, then it should be just a few keystrokes to put in the "official" icons and splash screen. Otherwise just say "compatible with PortableApps.com format" and use your own graphics.

I'm not sure which icon you're talking about. Copyright aside, I'd prefer to have my icons unique for each application. If an icon is associated with CommandPromptPortable, it would probably be a good idea to associate a different icon with NinjaCommandPortable.

It does look like the 16x16 icon is radically different from the 32x32 icon, but I don't see that either looks much like the CommandPromptPortable icons. Maybe I have a different version?

MC

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
well it was not meant to be

i drew out a small cmd window of so i could put it into the .ico file (so it could be NinjaCommandPromptPortable Smile )
however when i looked at the commandprompt portable it looked a lot like it
so i still gave John the credit
Also the 16x16 is meant to look different because it is supposed to look like a notepad icon so that the notepad mode looks like notepad mode

Please search before posting. ~Thanks

whibo
Offline
Last seen: 1 year 8 months ago
Joined: 2006-11-23 16:00
.

.

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
Most of the stuff is in the

Most of the stuff is in the two .bat files that exist currently.

But I think you'll have to wait until the developers decide how they are going to handle getting the different language titles into the Ninja (Notepad) title bar.

The bat files are pretty simple:

::Command Prompt in disguise as notepad,
::your welcome.
@echo off
cls
color 0A
title Ninja Command 1.0
echo        [--------Ninja Command 1.0---------]
echo        [ Made by Tristiano77              ]
echo        [ press 1 for standard mode        ]
echo        [ press 2 for notepad mode         ]
echo        [----------------------------------]
@echo on

the p.bat file is a quote from an essay on Shakespeare. The task there would be to find an appropriate brief essay or paragraph in the target language and put it into the p.bat file, copying the format.

MC

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
sorry forgot

here you go

@echo off
cls
color 0A
title NinjaCommandPromptPortable
echo        [----NinjaCommandPromptPortable----]
echo        [ Made by Tristiano77              ]
echo        [ press 1 for standard mode        ]
echo        [ press 2 for notepad mode         ]
echo        [----------------------------------]
@echo on

i guess only the stuff in bold needs to be translated since that is all that displays
also
this right here

A Midsummer Nights Dream                                                    
      In Shakespeare's "A Midsummer Night's Dream" the mortal teenage characters fall in love foolishly, and the character Bottom states, "O what fools these mortals be". They are foolish because they act like children. Although Lysander, Hermia, Demetrius, and Helena appear grown-up, when they are in love they act foolishly. The four teenage lovers are fools.                                                            
      Demetrius is a fool because he is unaware that his love changes through out the play. At the start of the play Demetrius does not love Helena. (II ii,line 188) Demetrius says, "I love thee not, therefore pursue me not." (II ii,line 194) "Hence, get thee gone, and follow me no more." In III ii, Demetrius after being juiced begins to love Helena. (III ii,line 169-173) Demetrius says, "Lysander, keep thy Hermia; I will none. If e'er I loved her, all that love is gone. My heart to her but as guest- wise sojourned, And now to Helen is it home returned, There to remain." This proves he is a fool, because he is not aware of his changing love for Helena.                                                                    
      Helena is a fool because Demetrius does not love her but she still persists in chasing him. Demetrius shows no love for Helena. (II i,line 227-228) Demetrius says, "I'll run from thee, and hide me in the brakes, And leave thee to the mercy of wild beasts." (II i,line 199-201) "Do I entice you? Do I speak you fair? Or rather do I not in plainest truth Tell you I do not, nor I cannot love you?" Demetrius clearly illustrates to Helena that he has no interest, but Helena persists. (II i,line 202-204) Helena says, "And even for that do I love you the more. I am your spaniel; and, Demetrius, The more you beat me, I will fawn on you." (II i,line 220-222) "Your virtue is my privilege. For that It is not night when I do see your face, Therefore I think I am not in the night;" This proves that Helena is a fool because Demetrius does not love her, but she still persists.                             
      Lysander is a fool because he persuades Hermia to avoid death and run away with him. Hermia must marry Demetrius or she will be put to death. (I i,line 83-88) Theseus says, "Take time to pause, and, by the next new moon- The sealing-day betwixt my love and me, For everlasting bond fellowship- Upon that day either prepare to die For disobedience to your father's will, Or else to wed Demetrius, as he would," Hermia does not love Demetrius. (I i,line 140) Hermia says, "O hell! To choose love by another's eyes." Hermia loves Lysander. (I i,line 150-155) "If then true lovers have been ever crossed, It stands as an edict in destiny. Then let us teach or trial patience, Because it is a customary cross, As due to love, as thoughts and dreams and sighs, Wishes and tears, poor fancy's followers." Lysander has an alternative idea. (I i,line 157-159) Lysander says, "I have a widow aunt, a dowager Of great revenue, and she hath no child; >From Athens is her house remote seven leagues." (I i,line 164- 165) "Steal forth thy father's house tomorrow night, And in the wood, a league without the town." Lysander is a fool because he convinces Hermia to risk death and run away with him. 
      Hermia is a fool because she risks death for love. Hermia is to marry Demetrius, or be put to death. (I i,line 95-98) Egeus says, "Scornful Lysander, true, he hath my love, And what is mine my love shall render him. And she is mine, and all my right of her I do estate unto Demetrius." Lysander suggests an idea. (I i,line 157-159) Lysander says, "A good persuasion. Therefore her me, Hermia. I have a aunt, a dowager Of great revenue, and she hath no child;" Hermia agrees with the idea. (I i,line 168-169) Hermia says, "My good Lysander, I swear to thee by Cupid's strongest bow," (I i,line 178) "Tomorrow truly will I meet thee." Hermia is a fool because she is risking death for the love of Lysander.                               
      Therefore this proves, the four teenage lovers are fools. (VI i, Theseus states) "Lovers and madmen have such seething brains, Such shaping fantasies, that apprehend More than cool reason ever comprehends." William Shakespeare's A Midsummers Night's Dream shows how childishly foolish lovers can be. 

really it does not matter what it is as long as it is not computer related
also i am going under the assumption that the actual commands do not need to be changed is that correct?
thanks for all your help

Please search before posting. ~Thanks

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
I can't recall -- did

I can't recall -- did someone check the copyright on that little Shakespeare essay? I wouldn't want the author or copyright holder coming after the distributor of NinjaCommandPortable.

MC

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
i just googled it and so im

i just googled it and so im probably breaking like 15434523515800000000000000^2-pi*(sqrt(7))+92 laws.

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
::your welcome.

At some point you might want to spell the abbreviation for "you are" properly: "you're" rather than "your".

MC

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
never! that just adds to the

never! that just adds to the magic! i wrote that XD

whibo
Offline
Last seen: 1 year 8 months ago
Joined: 2006-11-23 16:00
.

.

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
wow... lots of replies... ok

wow... lots of replies... ok i kind of did make the program in the first place so i should be workin on this... what do you guys want again?

ok i can make a function called lang which will change the language but i need translations for the text. anybody can help here but im lingually challenged (obviously)

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
They want the title bar in

They want the title bar in the Ninja (Notepad) view to be localized to their language version of Windows -- that is, Notepad.exe shows something different on the title bar depending on the language. It would look bogus if everything else on the screen is in French but the title bar in the Ninja/notepad window.

They can edit the batch file themselves, which controls the title bar in regular CMD mode; but I don't see a way to customize the title bar for Ninja mode.

You could have it set in an INI file, or ... whatever is convenient.

There's a picture up there.

MC

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
just translate this for me
title Untitled - Notepad

i am not sure about the title part
but everything after that
thanks

Please search before posting. ~Thanks

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
It's not just a translation,

It's not just a translation, but the actual words used on their version of Notepad. You want it to be authentic, right?

Gee, I hope the M$ folks don't get miffed if the program mimicks Notepad briefly ... Maybe we can say it's a parody, those are legal...

MC

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
a lot of work

hey Tristiano77
due to the fact that there is a lot of work
i think we should split up
is there a way i can contact you
here is my email
powerjuce(at)gmail(dot)com

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
e-mailed u.

e-mailed u.

so basically all we need is the translations of untitled - notepad? wow easy. ill have em in a few minutes, ill just change my computers language XD

edit: crap u need to restart to apply changes. ill just look em up on the google machine.

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
and the whole language of

and the whole language of the actual command prompt
the language cannot be registry dependent so it will not work like that
we have to make sure the whole program can be used with a different language

Please search before posting. ~Thanks

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
The only thing you have to

The only thing you have to worry a lot about is stuff that the user can't change via the batch file; they can change almost everything (including prompts) from the batch file. Right?

MC

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
yea they can change

yea they can change everything except the name of the "notepad"
so we need the exact name that pops up for an untitled file, right
also if the title is one language say french and they use a computer witha an english language wouldn't that look weird?
don't we need to control the actual language of the NinjaCommand?

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
im almost done programming

im almost done programming the engine but i need your "untitled - notepad" translations

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
if the title is one language

if the title is one language say french and they use a computer with an english language wouldn't that look weird?

Yeah, but that's why you need to set it up so they can choose. I could see them using the bat file in French while leaving the Ninja title in Spanish in certain circumstances. It would depend on the context.

MC

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
actual user input for the emulator

the actuals inputs for the emulator will be the default language
so if the title is French
then would that be weird

Please search before posting. ~Thanks

rab040ma
Offline
Last seen: 2 weeks 2 days ago
Joined: 2007-08-27 13:35
if the title is one language

if the title is one language say french and they use a computer with an english language wouldn't that look weird?

Yeah, but that's why you need to set it up so they can choose. I could see them using the autorun.bat file in French while leaving the Ninja title bar and p.bat in, say, Spanish in certain circumstances. It would depend on the context.

MC

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
Translations Only

please post the string for what the title for an untitled notepad is post like this

Language: You language

String: Your string

Name:  the name you want to see for the thanks.txt

thanks
no other posts execept for translations
make the title of the post be the language you are translating to

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
good idea. now i need help

good idea. now i need help with the language engine.

heres the code. i get errors and i cant figure out why. its probably just a dum mistake but i cant figure it out.

#include <io.h>   // For access().
#include <sys/types.h>  // For stat().
#include <sys/stat.h>   // For stat().
#include <iostream>
#include <string>
#include <fstream>
#include <stdlib.h>
using namespace std;
int command(int cmdlang);
int getmode();
int readit();
int settitle(int titlelang);
bool checkpath(string strPath);
int main()
{
//    if (ifstream("Data"))
//    if (PathExits("Data")==false)
    if (checkpath("Data")==false)
    {
    system("md Data");
    system("copy App\\DefaultData\\* Data");
    }
    else
    {
    system("cls");
    }
    system("Data\\autorun");
    getmode();
}
bool checkpath(string strPath)
{
    if ( access( strPath.c_str(), 0 ) == 0 )
    {
        struct stat status;
        stat( strPath.c_str(), &status );

        if ( status.st_mode & S_IFDIR )
        {
            return true;
        }
    }
    else
    {
        return false;
    }
}
int command(int cmdlang)
{
    char str(80);
    char str2(112);
    char cmd[1024];
    system("@echo off");
    system("color F0");
    settitle(cmdlang);
    system("@echo on");
    cout>lang;
       ofstream myfile;
       myfile.open ("lang.dat");
       myfile >choice;
    if (choice == 1) {
       system("cls");
       system("cmd.exe");
       }
    else if (choice == 2) {
         system("@echo off");
         system("color F0");
         settitle(lang);
         system("@echo on");
         system("cls");
         command(lang);
         }
    else {
         system("cls");
         cout> x;
    inFile.close();
    return x;
}

int settitle(int titlelang) {
    switch (titlelang) {
       case 1:
            system("title Untitled - Notepad");
            break;
       case 2:
            system("title french");
            break;
       case 3:
            system("title spanish");
            break;
       case 4:
            system("title german");
            break;
       default:
            cout
powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
overload command()

this is my java experience
but i think you will need to overload the method so it can be command(int cmdlang) and it can be command()

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
nevermind i fixed it... but

nevermind i fixed it... but i suddenly cant edit my posts Shock

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
prob # of posts

it may think you are spam

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
well that only forces me to

well that only forces me to post more... anyway i fixed everything the language engine is done i just need the translations heres the code
<>

#include <io.h>   // For access().
#include <sys/types.h>  // For stat().
#include <sys/stat.h>   // For stat().
#include <iostream>
#include <string>
#include <fstream>
#include <stdlib.h>
#include <windows.h> 
using namespace std;
int command();
int getmode();
int readit();
int settitle();
bool checkpath(string strPath);
int main()
{
//    if (ifstream("Data"))
//    if (PathExits("Data")==false)
    if (checkpath("Data")==false)
    {
    system("md Data");
    system("copy App\\DefaultData\\* Data");
    }
    else
    {
    system("cls");
    }
    system("Data\\autorun");
    getmode();
}
bool checkpath(string strPath)
{
    if ( access( strPath.c_str(), 0 ) == 0 )
    {
        struct stat status;
        stat( strPath.c_str(), &status );

        if ( status.st_mode & S_IFDIR )
        {
            return true;
        }
    }
    else
    {
        return false;
    }
}

int command()
{
    char str(80);
    char str2(112);
    char cmd[1024];
    system("@echo off");
    system("color F0");
    settitle();
    system("@echo on");
    cout>lang;
       ofstream myfile;
       myfile.open ("lang.dat");
       myfile >choice;
    if (choice == 1) {
       settitle();
       system("cls");
       system("cmd.exe");
       }
    else if (choice == 2) {
         system("@echo off");
         system("color F0");
         settitle();
         system("@echo on");
         system("cls");
         command();
         }
    else {
         system("cls");
         cout> x;
    inFile.close();
    return x;
}

int settitle() {
    switch (readit()) {
       case 1:
            system("title Untitled - Notepad");
            break;
       case 2:
            system("title french");
            break;
       case 3:
            system("title spanish");
            break;
       case 4:
            system("title german");
            break;
       default:
            cout
powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
ill get it uploaded as the beta

right now aint great
how about tommorow?

Please search before posting. ~Thanks

Tristiano77
Offline
Last seen: 3 years 6 months ago
Joined: 2007-11-11 02:29
well that only forces me to

well that only forces me to post more... anyway i fixed everything the language engine is done i just need the translations heres the code

#include <io.h>   // For access().
#include <sys/types.h>  // For stat().
#include <sys/stat.h>   // For stat().
#include <iostream>
#include <string>
#include <fstream>
#include <stdlib.h>
#include <windows.h> 
using namespace std;
int command();
int getmode();
int readit();
int settitle();
bool checkpath(string strPath);
int main()
{
//    if (ifstream("Data"))
//    if (PathExits("Data")==false)
    if (checkpath("Data")==false)
    {
    system("md Data");
    system("copy App\\DefaultData\\* Data");
    }
    else
    {
    system("cls");
    }
    system("Data\\autorun");
    getmode();
}
bool checkpath(string strPath)
{
    if ( access( strPath.c_str(), 0 ) == 0 )
    {
        struct stat status;
        stat( strPath.c_str(), &status );

        if ( status.st_mode & S_IFDIR )
        {
            return true;
        }
    }
    else
    {
        return false;
    }
}

int command()
{
    char str(80);
    char str2(112);
    char cmd[1024];
    system("@echo off");
    system("color F0");
    settitle();
    system("@echo on");
    cout>lang;
       ofstream myfile;
       myfile.open ("lang.dat");
       myfile >choice;
    if (choice == 1) {
       settitle();
       system("cls");
       system("cmd.exe");
       }
    else if (choice == 2) {
         system("@echo off");
         system("color F0");
         settitle();
         system("@echo on");
         system("cls");
         command();
         }
    else {
         system("cls");
         cout> x;
    inFile.close();
    return x;
}

int settitle() {
    switch (readit()) {
       case 1:
            system("title Untitled - Notepad");
            break;
       case 2:
            system("title french");
            break;
       case 3:
            system("title spanish");
            break;
       case 4:
            system("title german");
            break;
       default:
            cout
whibo
Offline
Last seen: 1 year 8 months ago
Joined: 2006-11-23 16:00
.

.

powerjuce
powerjuce's picture
Offline
Last seen: 11 years 6 months ago
Developer
Joined: 2007-09-20 21:34
not translations

just what appears on a notepad file when it is untitled

Please search before posting. ~Thanks

Pages

Log in or register to post comments