aMSN Forums
January 19, 2018, 08:23:14 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1] 2 3
  Print  
Author Topic: [howto] initate file transfer by dragging file on to window  (Read 61563 times)
Trel
Newbie

Offline Offline

Posts: 15


View Profile
« on: June 19, 2006, 05:03:53 am »

For a future version (or CVS) would it be possible to implement a feature which allows users to initiate a file transfer by dragging the file onto the conversation window?
Logged
vivia
Administrator
Super Power User
*****
Offline Offline

Posts: 2464


View Profile
« Reply #1 on: June 19, 2006, 10:42:06 am »

It's possible at the moment. Just get latest SVN snapshot and install tkdnd extension (google for it Smiley) - BUT be careful, don't install to /usr/local/lib otherwise it won't be detected by tcl/tk . Better try ./configure --prefix=/usr , or put it to your plugins directory.
Logged
Kreuger
Super Power User
**
Offline Offline

Posts: 204


View Profile WWW
« Reply #2 on: June 20, 2006, 12:45:26 am »

I tried to install using :

Code:
./configure --prefix /home/kreuger/.amsn/plugins --with-tclinclude /usr/include/tcl8.4/tcl-private/generic/tcl.h


It said

Quote
configure: warning: /usr/include/tcl8.4/tcl-private/generic/tcl.h: invalid host type
loading cache ./config.cache
checking for gcc... cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether cc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking whether make sets ${MAKE}... yes
checking for ranlib... ranlib
checking for Cygwin environment... no
checking for object suffix... o
checking for mingw32 environment... no
checking for executable suffix... no
checking for Tcl public headers... configure: error: yes directory does not contain Tcl public header file tcl.h


Can anyone help?
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #3 on: June 20, 2006, 01:34:08 am »

you probably need tcl-dev and tk-dev packages...
try to find a binary somewhere...
Logged

KaKaRoTo
Trel
Newbie

Offline Offline

Posts: 15


View Profile
« Reply #4 on: June 20, 2006, 03:48:05 am »

I got it working on Linux, but I can't seem to figure out how to do the same on my Windows box, any tips?
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #5 on: June 20, 2006, 04:52:31 am »

for windows, it's the most easy, just get a binary, no need to compile.. windows binaries usually always work on every windows machine.
Logged

KaKaRoTo
Trel
Newbie

Offline Offline

Posts: 15


View Profile
« Reply #6 on: June 21, 2006, 10:45:53 pm »

nothing is happening when I drag a file in windows <_<
or am I missing something
Logged
vivia
Administrator
Super Power User
*****
Offline Offline

Posts: 2464


View Profile
« Reply #7 on: June 22, 2006, 12:41:09 pm »

Download the Windows version of tkdnd and install it to your amsn plugins folder.
Logged
Trel
Newbie

Offline Offline

Posts: 15


View Profile
« Reply #8 on: June 23, 2006, 05:01:00 pm »

My amsn plugins folder?  Like c:\program files\amsn\scripts\plugins?

If so, nothing changed.
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #9 on: June 23, 2006, 06:58:34 pm »

try this path instead :
 c:\program files\amsn\scripts\utils

you should have there a directory with the tkdnd files, you should have this file existing (tkdnd directory can have a different name but not the file) :
 c:\program files\amsn\scripts\utils\tkdnd\pkgIndex.tcl
Logged

KaKaRoTo
Trel
Newbie

Offline Offline

Posts: 15


View Profile
« Reply #10 on: June 23, 2006, 07:49:11 pm »

I'm not sure I understand.

Here's what I did
in c:\program files\amsn\scripts\utils
I created a folder called "tkdnd", and then I pasted "libtkdnd10.dll" into that folder.

Am I missing something?
Logged
kakaroto
Administrator
Super Power User
*****
Offline Offline

Posts: 9428


View Profile WWW
« Reply #11 on: June 23, 2006, 09:43:48 pm »

ok, that's what you're missing, the pkgIndex.tcl, wihtout that file amsn won't know what's that dll for, what it represents, which version it is, etc...
I just downloaded tkdnd from here :  http://prdownloads.sourceforge.net/tkdnd/libtkdnd10.zip?download
and it seems it doesn't come with a pkgIndex.tcl file.. this is really weird... maybe they packaged it wrong.. I think that file only contained the .dll so it can replace a previous package... so this is what I suggest you do :
1 - download this file instead : http://prdownloads.sourceforge.net/tkdnd/tkdnd-1.0a2.tar.gz?download
2 - extract it, then move the subdirectory tkdnd-1.0a2\lib\tkdnd\ into amsn\scripts\utils
3 - take the other file you had, the libtkdnd10.dll, rename it to libtkdnd.dll and overwrite the one you just placed in amsn\scripts\utils\tkdnd
4 - restart amsn.

then you'll be able to use the drap and dop feature, but be aware that you need to drop the file inside the text area where you write in a chat window, not in the text area where you receive the messages...
good luck
Logged

KaKaRoTo
Trel
Newbie

Offline Offline

Posts: 15


View Profile
« Reply #12 on: June 24, 2006, 01:48:08 am »

Ok, I will try that now Smiley
EDIT: that worked, thank you Smiley
Logged
Bloodsucker
Power user
*
Offline Offline

Posts: 101


View Profile
« Reply #13 on: July 16, 2006, 01:46:00 am »

i try this:
1 - download this file instead : http://prdownloads.sourceforge.net/tkdnd/tkdnd-1.0a2.tar.gz?download
2 - ./configure  --with-tclinclude=/usr/include/tcl8.4/ --with-tcl=/usr/lib/tcl8.4/ --with-tk=/usr/lib/tk8.4/
3 - i go to instalation direc (/usr/local/lib) and copy tkdnd directory to amsn/utils directory.
4 - i restart amsn and start a convers.
5.- I try "drag and drop" and... fail, amsn crash.

In comand line, i see this error:
$ amsn
attempt to provide package tls 1.5 failed: package tls 1.50 provided instead
X Error of failed request:  BadAtom (invalid Atom parameter)
  Major opcode of failed request:  24 (X_ConvertSelection)
  Atom id in failed request:  0x233
  Serial number of failed request:  9796
  Current serial number in output stream:  9796

(the numbers chage all the time)
if case... i use XGL on dapper
Logged
vivia
Administrator
Super Power User
*****
Offline Offline

Posts: 2464


View Profile
« Reply #14 on: July 16, 2006, 11:00:33 am »

xgl?... hmm, that may be buggy, i don't know :S
Logged
Pages: [1] 2 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!