Accesso rapido:  

Forum: VirtualDJ Skins

Topic: Skinning Syntax Questions For The Experts..

Questo argomento è obsoleto e potrebbe contenere informazioni obsolete o errate.

Hey guys,

Thanks for taking a look. I want my skin's seek buttons to work exactly the same way as my keyboard shortcuts for "seek".

My keyboard shortcut's syntax for seek is "seek -4" and "seek +4". It moves the time exactly 4 beats (CBG), perfectly.

My skin's syntax for the backwards seek is "<button action="seek" chan="1" value="-8 temporary">". This moves the time to 1814.06ms back.

What is the correct syntax to make my skin move the time in beats, not ms??
 

Inviato Sun 17 Apr 11 @ 10:36 pm
<button action="seek -4" chan="1" rightclick="seek -8">
 

Inviato Mon 18 Apr 11 @ 12:35 am
PhantomDeejay wrote :
<button action="seek -4" chan="1" rightclick="seek -8">


PhantomDeejay,
Thanks for your help. Unfortunately, that didn't work. It actually made that button on the skin not work, LOL. But that's cool.

You helped me to look in the right direction. I started looking at skins that were made to look like controllers and other hardware.

And guess what? There I found what I was looking for!

The keyboard mapper value of seek is NOT the same as the skin value for seek.

The equivalent effect for use in skins that I found through trial and error while looking through other skins is skip_beat.

The syntax: <button action="skip_beat" chan="1" value="-4">.

This worked the same way as the keyboard mapper shortcut for "seek".

I hope this helps other novice skinners.

Thanks Phantom.

Peace.
 

Inviato Tue 19 Apr 11 @ 3:25 am
well couldn't you also write it this way and save some typing?

<button action ="deck 1 goto_bar -4">
 

Inviato Tue 19 Apr 11 @ 3:42 pm
cbgraphix wrote :
well couldn't you also write it this way and save some typing?

<button action ="deck 1 goto_bar -4">


I guess so. It's just that the first example I found was the skip_beat.

Does your command string move the time while the leftclick is being held down?

My skip_beat command string as written above doesn't do that. It must be clicked on repeatedly to advance.

I will try your command string.

 

Inviato Wed 20 Apr 11 @ 12:14 am
@Chris, Try this with your keyboard
isrepeat ? goto +1 to fast forward
and
isrepeat ? goto -1 to rewind

Not Sure if itll help, lol!
Huey
 

Inviato Wed 20 Apr 11 @ 12:39 am
cbgraphix wrote :
well couldn't you also write it this way and save some typing?

<button action ="deck 1 goto_bar -4">


That command string didn't work at all. Is it a keyboard shortcut or skin syntax?

I know what works for the keyboard shortcut, seek -4 and seek +4. Those work great.

I'm looking for a similar commands for REW and FWD buttons, for a skin that I'm developing.

The closest so far is skip_beat. Which is not bad, the only problem is that you must leftclick continuously to advance or rewind rapidly.

You can't hold the leftclick down with skip_beat, because nothing happens.

 

Inviato Wed 20 Apr 11 @ 2:17 am
Huey,
Are those keyboard shortcuts? I'm good to go with keyboard shortcuts.

What I need is skin FWD and REW buttons that do the same thing as the keyboard shortcut: seek.
 

Inviato Wed 20 Apr 11 @ 2:23 am
Im use this action for my skin
for SEEK--> REW AND FWR

<button action="deck 1 seek -4" >
<button action="deck 1 seek +4" >

<button action="deck 2 seek -4" >
<button action="deck 2 seek +4" >

for skip_beat

<button action="deck 1 goto -4">
<button action="deck 1 goto +4">

<button action="deck 2 goto -4">
<button action="deck 2 goto +4">
 

Inviato Wed 20 Apr 11 @ 8:04 am
I solved your problem Chris. Tested this and it works beautifully.

<button action="deck default seek +100ms">
<size width="18" height="12"/>
<pos x="1" y="123"/>
</button>

change the value to -100ms for reverse, and you can also change the value to suit your needs. I found 100 worked great for a seek.
And of course you don't have to use "Default" as the deck assignment, use whatever you like.

Chuck
 

Inviato Thu 21 Apr 11 @ 8:38 pm
Chuck,
Thank you for your help. Unfortunately, that command string doesn't produce the desired effect. As a matter fact, I think the syntax is wrong because it does not work at all.

djlunatico,
Thank you for your help. Your seek commands push the time in jumps of 907.03ms. I want it to move 4 beats. Your skip_beat command produces the same effect as mine, so there is no change there.

The skip_beat command works the best so far.

All I want is to do is add the capability of moving 4 beats continuously by holding the left click button (or right click button), instead of having to press the left or right click button repeatedly.



 

Inviato Mon 25 Apr 11 @ 4:44 am
djdadPRO InfinityDevelopment ManagerMember since 2005
Chris,
are you making a ver 7 skin? What is your skin's xml first line? Phantom's second post seems the right answer for me.

...
<button action="deck 1 seek +4" >
<pos x="268" y="412"/>
<size width="38" height="19"/>
<selected x="+0" y="+768"/>
<down x="+0" y="+768"/>
</button>
....
 

Inviato Mon 25 Apr 11 @ 5:02 am
That's strange... I copied that directly from the xml that I tested it with and it does exactly what I thought you were asking.

Like pressing the fast forward button on a dvd player or a vcr... fast shuttle forward (or back) while held... seek.

if you're looking for it to "jump forward or backwards then no it wouldn't work, but the coding should be correct. Did you try it with a static deck ... <button action="deck 1 +100ms"> ?

Chuck
 

Inviato Mon 25 Apr 11 @ 5:30 am
djdad wrote :
Chris,
are you making a ver 7 skin?


I think so.

djdad wrote :
What is your skin's xml first line?


The first few lines:

<Skin name="Denon Forever" version="10" width="1024" height="768">
<copyright>- (c)2001-2006 - Atomix Productions -</copyright>
Skin created with the Skin Creator Tool published by JeremK

djdad wrote :
Phantom's second post seems the right answer for me.

...
<button action="deck 1 seek +4" >
<pos x="268" y="412"/>
<size width="38" height="19"/>
<selected x="+0" y="+768"/>
<down x="+0" y="+768"/>
</button>
....


It doesn't work for me.

 

Inviato Wed 04 May 11 @ 2:09 am
cbgraphix wrote :
Like pressing the fast forward button on a dvd player or a vcr... fast shuttle forward (or back) while held... seek.


Chuck, that's exactly what I want. But I want it to move through the track by beats, not ms...

Seek -4 and Seek +4 for do this perfectly on my keyboard mapper and with my Denon DN-SC2000 mapper.

But I'm trying to achieve this on the skin, with my mouse. The same syntax on my skin moves the time 4 beats, correctly. But it won't advance if I leave my finger on the leftclick of the mouse. I must press it continuously so it advances.

What is the correct syntax?

 

Inviato Wed 04 May 11 @ 2:15 am
djdadPRO InfinityDevelopment ManagerMember since 2005
Change the first line of your skin to..

<Skin name="Denon Forever" version="7" width="1024" height="768">


and follow the syntax for seek i gave you in my previous post.
 

Inviato Wed 04 May 11 @ 5:05 am
djdad wrote :
Change the first line of your skin to..

<Skin name="Denon Forever" version="7" width="1024" height="768">


Ok. Will do. Will report back shortly.
 

Inviato Wed 04 May 11 @ 5:06 am
djdad,
Changing the version from 10 to 7 completely screwed everything up, LOL!

Half the buttons didn't work anymore.

Chan 1's CUE button affected both decks.

It was scary.

Didn't even get a chance to editing the seek buttons.

PM me your e-mail and I will send you the bmp and xml. You can check it out at your convenience.

Thanks in advance.
 

Inviato Wed 04 May 11 @ 5:48 am
djdadPRO InfinityDevelopment ManagerMember since 2005
Chris, this is why i asked you what version of skin are you making. Depending on the version of the SDK some action may work, some maybe not. If you 're modifying an old version skin you have to follow older code actions.
My suggestion is to start building a new ver 7 skin (xml), based on those graphics you have. This way you will learn ver 6-7 coding too.
See more here http://www.virtualdj.com/wiki/Skin%20SDK%20.html
 

Inviato Wed 04 May 11 @ 6:07 am
djdad wrote :
My suggestion is to start building a new ver 7 skin (xml), based on those graphics you have. This way you will learn ver 6-7 coding too.
See more here http://www.virtualdj.com/wiki/Skin%20SDK%20.html


Cool. Thanks. Will do. Wow, are they really that different?

 

Inviato Fri 06 May 11 @ 1:40 am


(Vecchi argomenti e forum sono automaticamente chiusi)