PDA

View Full Version : Drag and Drop Time !!!



AudioSam
02-05-2008, 12:57 PM
This allows Drag and Drop.

Here is something I put together to show
that Drag and Drop can be done.
Info button top left on App.

http://www.box.net/shared/j8cr110ys0

AudioSamIam:D

RizlaUK
02-05-2008, 02:22 PM
very interesting,

1st, why dose it have to move the file, just lost 6 mp3's till i read the help, lol

2nd, what object is the file being dropped onto

im very curious as to how you got the object to receive files as all my efforts have failed (and thats using 3 programing languages), you could be on to something here mate :yes:yes:yes:yes

AudioSam
02-05-2008, 02:30 PM
lol..
Did you think it was eating the files???

Thanks for the reply.
Just wanted to mention so that everyone knows.
It doesn't eat your files it just moves them to a
folder named DropBox in Program files.
C:\\ProgramFiles\DropBox ...
So once you drop your files you can always go to that folder
and get them , then put them back in the folder you wish.
That's untill it's set up to not to move the files..


AudioSamIam:D

FoxLeader
02-05-2008, 04:42 PM
Hello!

I just tried it. I had some problems...

When I dropped a JPG, it did a sound then nothing else happened.
When I dropped a MP3, it did nothing in the program; it opened the file with my default applications.

I'm running Vista x64.

At least I saw the "drag-n'-drop" icon!
Hope that helps.

FoxLeader

AudioSam
02-05-2008, 04:48 PM
I guess that means it won't work for Vista x64.
Sorry for that.

I have no way to test on Vista.
Maybe I'll set it so that you can choose your DropBox Location.
That might work.


It works very well on Xp.

Thank You,
AudioSam

FoxLeader
02-05-2008, 07:06 PM
I have XP in dual-boot, so I'll try when I'll think about it again XD

AudioSam
02-05-2008, 07:09 PM
I hope it works.
Let me know if it doesn't and I'll refund your money.:D
Have a good day/night..

AudioSamIam;)

Dermot
02-05-2008, 09:29 PM
Vista won't let copy files to the Program Files folder. Not sure why you chose that location. Why not My Documents?

AudioSam
02-06-2008, 08:37 AM
I didn't know that.
I still have much to learn.
I will put that in my notes.
If not copy to Program Files
where wold new installs be allowed?

Thanks for the information.
AudioSam

reteset
02-06-2008, 08:58 AM
very interesting,

1st, why dose it have to move the file, just lost 6 mp3's till i read the help, lol

2nd, what object is the file being dropped onto

im very curious as to how you got the object to receive files as all my efforts have failed (and thats using 3 programing languages), you could be on to something here mate :yes:yes:yes:yes

AudioSam i solve your way he he he :lol

its very simple

1) create a folder
2) open that folder in a web object
3) create an Image Object for receive events
4) drag and drop a file in to that folder (already in web object)
5) find files on (On Enter) or (On Leave) event
6) assign a listbox

AudioSam
02-06-2008, 09:11 AM
Dang....
There goes my million dollars..;)
I said it was simple..
Now if someone could figure out a way
to get the path to a/the file that's being dropped
right before it's dropped and then create a (m3u to the file)
in the case of it being an mp3 that's dropped into the folder.
Then send the mp3 file back to it's original location.

Glad you got it figured out.
I just posted the example to show
there is a way to achieve drag and drop.
Not the very best way, but it will work
until something better comes along.

Another puzzle for you. : )
Figure out the volume control... :D
It's a little harder to figure out.

AudioSamIam

reteset
02-06-2008, 10:00 AM
i only did a joke ;)
i am sorry if i bother you:o
i know, there is no way to do this other than your method
good idea :yes
i always support good ideas and quick solutions :yes:yes

AudioSam
02-06-2008, 10:07 AM
I'm glad you got it figured out.
I know once I or anyone post something others
are going to figure it out.
I would have posted the apz file.
I wanted to show the example so that
it would get everyone thinking.
********************
About the volume control.
That isn't a included volume control
from AMS.
It's custom and can look anyway someone wants.
I read what I posted again, and I thought
you might be thinking it's a regular volume control.
It was hard for me to figure it out.
So, when I said try to figure it out, I wanted you to see
if you could duplicate it.

AudioSamIam:yes

sue
02-06-2008, 10:12 AM
AudioSam,

Could you post the .apz? Thank you!!

Sue

AudioSam
02-06-2008, 10:30 AM
I will post the apz file,
(without the volume control.)
You can add set volume as you wish.

Everything else will be there.
There is a trick to the mp3 being played.
That, I am pretty sure you would have to change
for the preview to work for you.

In your AMS folder there is a Data Folder.
In the Data Folder there is a file, _res_types.xml.
Open that file with notepad.
Scroll to
<Resource>
<Name>Audio</Name>
<Default>0</Default>
<Extensions>

Add
<Ext>mp3</Ext>
to the list of extensions.

As you know AMS doesn't officially support the MP3
format so this would be only for your use and testing purposes.

Give me a few minutes and I will post the Apz File.

AudioSamIam:)

sue
02-06-2008, 10:33 AM
Thank you....I'm always excited for a learning opportunity!!! Thanks for sharing your knowledge with us.

Sue

Dermot
02-06-2008, 10:59 AM
If not copy to Program Files
where wold new installs be allowed?
An installer can install to Program Files but while your app is running, you don't want to be creating folders or writing files there.

AudioSam
02-06-2008, 11:09 AM
Look at
Page Pre Load.
Page On Show

Look at each ListBox
On Double Click

Look at the blue image around drop box(web object.)
On Leave

AudioSamIam:D

AudioSam
02-06-2008, 11:26 AM
You can set The App to movable without the
Volume Control included.
I forgot to do that.

AudioSamIam

AudioSam
02-06-2008, 02:35 PM
Some of you may already know this and some may not.
If your dragging a file to the Drop Box.
Anytime before you drop the file you press ctrl key.
You don't have to press ctrl before grabbing the file.
Only before you drop it.
Your original file isn't moved, it's copied.
Anyone know how code
e_key == 17
even if it's not?

Thanks,
Audiosam

FoxLeader
02-06-2008, 03:47 PM
Would Worm's DLL work for that? (I think that's the SendKeys DLL !?!)

AudioSam
02-06-2008, 05:45 PM
Rizla mentioned that.
I guess I'll keep seeing what shows up.
For now anyone making a drag and drop app,
just press control before you drop your files.
I have something else I'm trying to make happen.
If I can figure it out, I'll be putting up another App.

That's all for now..
Thanks to Rizla ,:yes
I bother him alot when I need answers.

AudioSamIam:D

AudioSam
02-08-2008, 10:10 AM
It is possible to drag and drop without
pressing ctrl key. Your files stay where they were.
TimeSurfer and I have made that happen.
We are in talks with Sony, M$, Dell, the RIAA
about multi million $$$$$ deals...;)

Just wanted to let everyone know.
P.S Some of the above may not be true.
At least one of them are.;)

AudioSamIam:D