Making a Program

How To's, Questions, and Solutions for problems. This covers anything from computer hardware problems to software recommendations to tutorials for various software programs.

Note: Neither Gametoast nor any of its members/visitors are responsible for any damage to your computer as a result from advice given in this forum. Follow advice at your own risk and be sure to back up any important files.

Moderator: Moderators

Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Making a Program

Post by Darth_Z13 »

I searched the net for it and turned up no results so I'm asking here. I would like to make a program so that when I click on it a file from my addon folder is transferred to my desktop and back again. How would I do this?
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: Making a Program

Post by Penguin »

With C++ Programming, try using Visual Basic (( I think that uses C++ ?))
Adreniline
Command Sergeant Major
Command Sergeant Major
Posts: 290
Joined: Fri Oct 28, 2005 8:24 pm
Projects :: No Mod project currently.
xbox live or psn: XTIndie
Location: Coffee Centre of the World
Contact:

Post by Adreniline »

Actually what you should use is C or C++ and C++ Express Edition

You will need a book to learn some C, I would suggest checking out "C programming for Dummies" from the library, it would be very straight forward, and easy to understand.

But you first must understand this: you will be doing programming for several weeks before you can make the program you want to make.

Visual basic is a bit different than C++ express (the book may suggest another program)
User avatar
ShadowHawk
Old School Staff
Posts: 1232
Joined: Mon Feb 21, 2005 4:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Heartland, Texas
Contact:

Post by ShadowHawk »

VB and C<add pluses in any pattern you want. :P) are two completely different languages. One uses the basic programming language commands and layout while the C variants use the C programming language commands and layout.

Explain a little more and I could possibly find something for ya.
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

What I want to do Shadow, is make an easy to use program (doesn't have to be elaborate) that when I click on it a folder from my addon folder is moved to my desktop. When I click on that file again it sends the folder back into the addon folder...
User avatar
ShadowHawk
Old School Staff
Posts: 1232
Joined: Mon Feb 21, 2005 4:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Heartland, Texas
Contact:

Post by ShadowHawk »

addon as in xsi?
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

Nah... SWBF2's addon folder.
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Qdin »

don't tell me you just want a short-cut to the AddOn folder... O.o
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

No. :P What I need it for is that I'm editing a map (here referred to as 'MAP') that I don't have the source files for and so I have to remunge the LUA and sides to make it work. I'll call this folder 'MUNGE'. However, it has to have the same name in order for the LUA to work. That means that it's terribly inconvenient for me to every time I want to munge, go into addon and move MAP onto the desktop and move MUNGE into my addon folder to be munged.

And yes I have the person's permission to edit his map. :)
shade...

Post by shade... »

Qdin wrote:don't tell me you just want a short-cut to the AddOn folder... O.o
DO NOT TELL ME YOU DON'T KNOW HOW TO MAKE A SHORTCUT. IF YOU MOD THINGS YOU SHOULD ALREADY KNOW HOW TO DO THAT. :roll: :blackja:

if you dont know get the computer learning disc - the basics... ITS SO EASY :x
IN CASE U DONT KNOW HOW JUST RIGHT CLICK ON YOUR DESKTOP, GO TO NEW/CREATE NEW SHORTCUT...................................EASY.
FOLLOW THE INSTRUCTIONS, :shock:
User avatar
ShadowHawk
Old School Staff
Posts: 1232
Joined: Mon Feb 21, 2005 4:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Heartland, Texas
Contact:

Post by ShadowHawk »

Shade, lower the casings on those letters next time.
just so I'm clear, you want to move a file back and forth to two different locations.

Will it always be just the addon folder and desktop?
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

shade... wrote:
Qdin wrote:don't tell me you just want a short-cut to the AddOn folder... O.o
DO NOT TELL ME YOU DON'T KNOW HOW TO MAKE A SHORTCUT. IF YOU MOD THINGS YOU SHOULD ALREADY KNOW HOW TO DO THAT. :roll: :blackja:

if you dont know get the computer learning disc - the basics... ITS SO EASY :x
IN CASE U DONT KNOW HOW JUST RIGHT CLICK ON YOUR DESKTOP, GO TO NEW/CREATE NEW SHORTCUT...................................EASY.
FOLLOW THE INSTRUCTIONS, :shock:
No...
No. :P What I need it for is that I'm editing a map (here referred to as 'MAP') that I don't have the source files for and so I have to remunge the LUA and sides to make it work. I'll call this folder 'MUNGE'. However, it has to have the same name in order for the LUA to work. That means that it's terribly inconvenient for me to every time I want to munge, go into addon and move MAP onto the desktop and move MUNGE into my addon folder to be munged.

And yes I have the person's permission to edit his map. :)
Maybe you should read my post first.

@Shadowhawk, yes, addon to desktop and desktop to addon.
User avatar
ShadowHawk
Old School Staff
Posts: 1232
Joined: Mon Feb 21, 2005 4:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Heartland, Texas
Contact:

Post by ShadowHawk »

here is something that might be useful aleady buit into windows.
  1. Open my computer and on the top go to tools>Folder options>view tab and under advanced settings click "show hidden files and folders" then OK.
  2. Goto C:\Documents and Settings\(the name of your windows profile)\SendTo
  3. Open another folder window and browse to the location of the addon folder, right click, select copy.
  4. Go back to the SendTo window, right click, select paste shortcut. This will put the addon folder in the Send To option when you right-click on a file. Rename the shortcut and remove the "Shortcut to" part.
  5. Open another folder window and browse to C:\Documents and Settings\(the name of your windows profile), right click on desktop, and select copy.
  6. Go back to the SendTo window, right click, select paste shortcut. This will put the Desktop folder in the Send To option when you right-click on a file. Rename the shortcut to "Desktop (Non-Shortcut)" so you don't get confused with "Desktop (create Shortcut)".
  7. Organize the shortcuts in the order you would like them to appear in the Send To option.
Now all you have to do is right click on what you want and send it to where you need it.
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

Hey that works pretty well but... it copys the file, not moves it. Can I fix this?
User avatar
ShadowHawk
Old School Staff
Posts: 1232
Joined: Mon Feb 21, 2005 4:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Heartland, Texas
Contact:

Post by ShadowHawk »

Well there is a regedit file that adds Copy To and Move To to the right click menu.

http://www.kellys-korner-xp.com/xp_tweaks.htm #45 on the list.

You would still have to select the folder though but it moves what ever you need to that folder. I use that way for some of my stuff.
User avatar
Dohnutt
Hoth Battle Chief
Hoth Battle Chief
Posts: 3248
Joined: Sun Aug 20, 2006 9:25 am
Contact:

Post by Dohnutt »

Darth_Z13 wrote:
shade... wrote:
Qdin wrote:don't tell me you just want a short-cut to the AddOn folder... O.o
DO NOT TELL ME YOU DON'T KNOW HOW TO MAKE A SHORTCUT. IF YOU MOD THINGS YOU SHOULD ALREADY KNOW HOW TO DO THAT. :roll: :blackja:

if you dont know get the computer learning disc - the basics... ITS SO EASY :x
IN CASE U DONT KNOW HOW JUST RIGHT CLICK ON YOUR DESKTOP, GO TO NEW/CREATE NEW SHORTCUT...................................EASY.
FOLLOW THE INSTRUCTIONS, :shock:
No...
ROFL :P
Don't you hate it when people do that?
*smacks forehead*


So, anyways...
1. Right click on the folder you wanna create a shortcut to...


Heh :P
(Sorry, I hadda do it)
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

Ya I'm definitely NOT a n00b on computers... I've been messing around and (sometimes) ruining computers since I was 6. Ya, I accidentally overheated my computer once and it started spewing out smoke! LOL! :D
User avatar
ShadowHawk
Old School Staff
Posts: 1232
Joined: Mon Feb 21, 2005 4:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Heartland, Texas
Contact:

Post by ShadowHawk »

know how you feel. I have 24 years experience with computers, built my first one 14 years ago, and I'm not even thirty yet. :D Things keep changing though and they get harder and harder to keep up with.
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

So that means you started when you were like 4 or 5? Cool.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

If you want a quick program to move things around when you run it, I can do that for you. You would need to give me the folder locations, what exactly you want moved, and any other requirments. It would take me two days to write and test if for you. It would be in Java or C# (which ever you wanted). However, ShadowHawk's Move To sounds better.

You could also create two .bat files that do the moves. As a non-nood computer user, you know how to move a file/folder from the command line correct? Just put that line into a file ending with ".bat" and double-click to run it. Put the line to move it back into another .bat file.
Post Reply