View Full Version : Paste register to window?
Ron
October 13th, 2002, 12:55 PM
I tested the sending of variables with the keyboard action and it seems to work. Maybe you need to play around with the targetting.
Ron
October 13th, 2002, 12:55 PM
Just though of something else. You know you can add playlists with the '/ADD' commandline option, well it works just as well for mp3 files!
So do this:
Execute action
File: winamp excutable
Stepsize: /ADD "[filename]"
Include the quotes, if your filename has spaces you'll need that. Also make sure that you have the filename in the 'filename' variable. Or rename the variable to the one that you use ;-)
You can also leave out the /ADD then winamp will replace the current playlist with this filename.
Ron
October 13th, 2002, 12:55 PM
Goodmorning Norway!
Seems that I got the question wrong ;-)
The stuff about the ; and : is weird! Maybe I need a norwegian keyboard too ;-)
Ron
October 13th, 2002, 12:55 PM
Ah I see you have multiple instances. Cool,... well I might have a solution.
I based my multiple instance example on the /CLASS=something method.
So we have two winamps one started
winamp /CLASS=winamp1
and the other
winamp /CLASS=winamp2
Now if I want to open something in winamp1 I do this
winamp /CLASS=winamp1 e:\music\a.mp3
And for winamp2 I do this:
winamp /CLASS=winamp2 e:\music\a.mp3
Or if I want to ADD something to the playlist of winamp2
winamp /CLASS=winamp2 /ADD e:\music\a.mp3
Works like a charm.
About the ; and the : if it fails in 3.1.3 it will in just about all versions. Its the same code.
Ron
October 13th, 2002, 12:55 PM
There is even a second option based on the Copydata plugin. Let me know if the previous example worked if not we can go on to the copydata thing.
Ron
October 13th, 2002, 12:55 PM
What is the difference between them two ? Why use two of them ?
( we can solve this by using the copydata's btw)
-Ron
Ron
October 13th, 2002, 12:55 PM
Okay here is the copydata approach.
Load the filename into a string (e.g. [filename]) variable the usual way
Open the copydata plugin ( 1.52 i think, the one that accompanies Girder 3.2 works )
Set the dwData field to 100
and the lpdata field to [filename]
Now by setting the target to one of the running winamps ( you can differentiate between them by looking at the filename ) et voila works!
Ron
October 13th, 2002, 12:55 PM
bad means bathroom in dutch too, though I was thinking of the english meaning ;-)
(copydata explanation in previous message)
Ron
October 13th, 2002, 12:55 PM
Oh thats my bad, a register is a variable. I started out calling them registers, but I changed that since I wrote GVMS. Variable is a more approriate name. Press f10 to see all the variables/registers that you have defined.
so if you have the name in [treg1] just put [treg1] in the copdata plugin.
Ron
October 13th, 2002, 12:55 PM
Ah but we are not aiming to put anything in that dialog. that is the wrong approach. We are trying to open a file through alternative means. What version of Girder are you using ?
Ron
October 13th, 2002, 12:55 PM
3.1.3 is fine. I'll send you something through the mail.
Ron
October 13th, 2002, 12:55 PM
Yep.
Mark F
October 13th, 2002, 12:55 PM
Could you use the keyboard tab and put the register in the sentence field?
Mastiff
October 13th, 2002, 12:55 PM
In my ongoing saga about opening playlists I suddenly got the idea to open the file open window in Winamp and then just paste the contents of the register into the right line. But how do I paste a register value to a window? I'm sure it's easy, and I'm dumb. :-?
Mastiff
October 13th, 2002, 12:55 PM
YES! Thanks! But one very weird thing: When I try to type : it comes out as a .
Why? Can this have something to do with the norwegian keyboard? Anyway, using the alternative prosedure didn't help either... So I need to rely on that I always keep the open dialogue in the right window.
Mastiff
October 13th, 2002, 12:55 PM
Good morning in The Flat Land! :D
The variable comes out all right ([reg7]) it's the colon (:) that comes out as a full stop (.) and that's not a variable in this sentence. Here's the sentence in the "sentence" windows of the keyboard action:
c:\dokumenter\playlists\[reg7].m3u
And the result in the winamp window (and even in a Notebook window I set it to, just to test):
c.\dokumenter\playlists\123.m3u
Weird, huh? The same thing happens even if I try just to make it send the keypress : (and also ; ), without any other characters or variables.
Mastiff
October 13th, 2002, 12:55 PM
Just though of something else. You know you can add playlists with the '/ADD' commandline option, well it works just as well for mp3 files!
You can also leave out the /ADD then winamp will replace the current playlist with this filename.
Nope, I need to allow multiple instances, and then it just opens up a new instance.
And the ; : thing really IS weird. Can this be a problem in my version only? I use 3.1.3.c
Mastiff
October 13th, 2002, 12:55 PM
Thanks, I'll try that. But right now I have to go with my wife and two kids to town. You'll hear from me in this very forum later today. Have a nice one! :D
Mastiff
October 13th, 2002, 12:55 PM
Hi, back again!
Ah I see you have multiple instances. Cool,... well I might have a solution.
winamp /CLASS=winamp1 e:\music\a.mp3
Question: Do you mean command line, as in "Execute"? If I do that, I get another instance. And another thing: I have two copies of winamp (one c:\programfiler\winamp\winamp.exe and one c:\programfiler\winampbad\winampbad.exe) so maybe that's the reason it doesn't work? I tried starting Winamp as class1 and Winampbad as class 2, but no. :cry:
Mastiff
October 13th, 2002, 12:55 PM
The first one uses the computers internal AC97 sound and cables to send sound to the stereo system in the bedroom, the second one uses a Sound Blaster Live! Value and a wireless video/audio transmitter to send sound to the bathroom. (bad means bathroom in norwegian).
But please tell me more about copydata. :P
Mastiff
October 13th, 2002, 12:55 PM
I'm afraid I don't know how to copy a register to a variable. Yes, call me a stupid, unwashed viking (allthough I'm pretty clean since it was our national day yesterday), but I just don't know. :roll:
Mastiff
October 13th, 2002, 12:55 PM
I have the WMCopyData 1.00 plugin in my system, is that totally wrong? Anyway, I can't get it to put anything into the "open file" dialogue box. I'm sure I'm making a mistake, but what? Should I send you the multigroup that does the action? Maybe you'd see right away what I do wrong then...
Mastiff
October 13th, 2002, 12:55 PM
3.1.3c. I can't chance on the experimental versions since I need reliability. My wife has a low tolerance for faults when she wants to listen to her Celin Dion and other sweet stuff. :)
Mastiff
October 13th, 2002, 12:55 PM
Thanks! You've got my mail address through the board, right?
Mastiff
October 13th, 2002, 12:55 PM
Like I said, yo the man! Thanks a lot for all you patience! It worked, and I finally have my 100 % reliability! :D
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.