Page 1 of 2

Making a Program

Posted: Wed Jan 31, 2007 8:28 pm
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?

RE: Making a Program

Posted: Thu Feb 01, 2007 2:08 am
by Penguin
With C++ Programming, try using Visual Basic (( I think that uses C++ ?))

Posted: Thu Feb 01, 2007 4:20 am
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)

Posted: Thu Feb 01, 2007 4:39 pm
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.

Posted: Thu Feb 01, 2007 5:25 pm
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...

Posted: Thu Feb 01, 2007 5:30 pm
by ShadowHawk
addon as in xsi?

Posted: Thu Feb 01, 2007 5:37 pm
by Darth_Z13
Nah... SWBF2's addon folder.

Posted: Thu Feb 01, 2007 5:39 pm
by Qdin
don't tell me you just want a short-cut to the AddOn folder... O.o

Posted: Thu Feb 01, 2007 5:56 pm
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. :)

Posted: Thu Feb 01, 2007 6:00 pm
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:

Posted: Thu Feb 01, 2007 6:53 pm
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?

Posted: Thu Feb 01, 2007 8:19 pm
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.

Posted: Thu Feb 01, 2007 8:52 pm
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.

Posted: Thu Feb 01, 2007 9:05 pm
by Darth_Z13
Hey that works pretty well but... it copys the file, not moves it. Can I fix this?

Posted: Thu Feb 01, 2007 10:12 pm
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.

Posted: Fri Feb 02, 2007 11:37 am
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)

Posted: Fri Feb 02, 2007 11:53 am
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

Posted: Fri Feb 02, 2007 4:06 pm
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.

Posted: Fri Feb 02, 2007 4:22 pm
by Darth_Z13
So that means you started when you were like 4 or 5? Cool.

Posted: Sat Feb 03, 2007 8:10 pm
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.