Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Columns UI appearance (Read 3294192 times) previous topic - next topic
0 Members and 6 Guests are viewing this topic.


Columns UI appearance

Reply #1202
Sure. They're doing it with a WSH Panel Mod version modified by me. I can post a link to the dll if you want (although I doubt T.P Wang would be happy about it...) and how to use it.

Nice work DarkJedii, however I don't understand how use it.

I have copied this in a wsh_panel:

INT utils.GetHWND( BSTR classname );
INT utils.GetChildHWND( INT ParentHWND, BSTR classname );
utils.CreateGlass( INT HWND , INT Left , INT Right , INT Top , INT Bottom );
utils.SendAMessage( INT HWND, INT MsgNum , INT wParam , INT lParam );
utils.ReleaseCapture_();

function on_paint(gr){
Foobar_hWnd = utils.GetHWND("{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}");
utils.CreateGlass(Foobar_hWnd, l, r, t, ;
}


and I got this script error in the console :

Error: WSH Panel Mod (GUID: 07B202A9-2FC7-4378-AF81-136257A874E5): Erreur de compilation Microsoft JScript:
';' attendu
Ln: 1, Col: 5
INT utils.GetHWND( BSTR classname );


Could you explain me please ?

Columns UI appearance

Reply #1203
The more foobar's I see, the better I make mine.
[a href="http://img9.imageshack.us/i/67136616.png/" target="_blank"]


Thanks. Keep it simple was the original idea.
I'm plannig to improve it, adding some buttons and removing the menu bar. But, the only way I can find to do that is coding a WSH panel - which would make the whole simple idea crash...

How can you add the name of the artist right after the name of the album (like the photo above)?


If you mean the track title (in top of the image), it's nothing special. Just %artist% - %title%, and in the next line %album% (%date%).
If you mean the group title in the playlist, the script just uses simple tags as well:
Code: [Select]
[%album artist%' ']['- '%album%' ']['- Disc '%discnumber%]$char(9)[$transition('------------',$rgb(255,255,255),$rgb(0,0,0))$rgb(0,0,0)'( '%date%' )']

Columns UI appearance

Reply #1204
Sure. They're doing it with a WSH Panel Mod version modified by me. I can post a link to the dll if you want (although I doubt T.P Wang would be happy about it...) and how to use it.

Nice work DarkJedii, however I don't understand how use it.

I have copied this in a wsh_panel:

INT utils.GetHWND( BSTR classname );
INT utils.GetChildHWND( INT ParentHWND, BSTR classname );
utils.CreateGlass( INT HWND , INT Left , INT Right , INT Top , INT Bottom );
utils.SendAMessage( INT HWND, INT MsgNum , INT wParam , INT lParam );
utils.ReleaseCapture_();

function on_paint(gr){
Foobar_hWnd = utils.GetHWND("{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}");
utils.CreateGlass(Foobar_hWnd, l, r, t, ;
}


and I got this script error in the console :

Error: WSH Panel Mod (GUID: 07B202A9-2FC7-4378-AF81-136257A874E5): Erreur de compilation Microsoft JScript:
';' attendu
Ln: 1, Col: 5
INT utils.GetHWND( BSTR classname );


Could you explain me please ?


The thing you have copied is just a list of functions that I added, so pasting it without any changes doesn't make much sense. All of them require some parameters. So before you paste anything you need to make sure you passed them. Writing for instance: utils.CreateGlass(Foobar_hWnd, l, r, t, b) produces an error because instead of l, r, t, b (undefined variables) the function wants some values. But utils.CreateGlass(Foobar_hWnd, 10, 20, 50, 100) will work.

"INT utils.GetHWND( BSTR classname );" is a C++ like structure. INT in the beginning of the line means what value does the function return. So if you want to get a window's HWND you know that it will be returned as an integer and not for instance a string. BSTR before classname tells you that as a parameter of the function you should pass a string. So to get a window's HWND you must prepare a string containing a classname and a variable which will contain the result as an integer.

To show how it works:
Code: [Select]
var HWND = utils.GetHWND("{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}");

"{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}" is a string.
HWND is now an integer.

You omit INT and BSTR because it was just for you to learn how use the function...

Columns UI appearance

Reply #1205
Sure. They're doing it with a WSH Panel Mod version modified by me. I can post a link to the dll if you want (although I doubt T.P Wang would be happy about it...) and how to use it.

Nice work DarkJedii, however I don't understand how use it.

I have copied this in a wsh_panel:

INT utils.GetHWND( BSTR classname );
INT utils.GetChildHWND( INT ParentHWND, BSTR classname );
utils.CreateGlass( INT HWND , INT Left , INT Right , INT Top , INT Bottom );
utils.SendAMessage( INT HWND, INT MsgNum , INT wParam , INT lParam );
utils.ReleaseCapture_();

function on_paint(gr){
Foobar_hWnd = utils.GetHWND("{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}");
utils.CreateGlass(Foobar_hWnd, l, r, t, ;
}


and I got this script error in the console :

Error: WSH Panel Mod (GUID: 07B202A9-2FC7-4378-AF81-136257A874E5): Erreur de compilation Microsoft JScript:
';' attendu
Ln: 1, Col: 5
INT utils.GetHWND( BSTR classname );


Could you explain me please ?



You don't need the first bit, all you need is the "function on paint" section. Replace l, r, t, b with the numerical values of how much you want the glass to protrude.

Columns UI appearance

Reply #1206
My first config!


Columns UI appearance

Reply #1207
about lastFOOdly preview:

@Arsefly / nickdc /velt / plinni / jazzthieve / r3v0 / kkamion
I will share my config, with pleasure, but this is a "preview". So i need time to achieve things (design and functions) and "betatest" it before sharing it.
thx for understanding it.

@Bryter : it is on purpose

@Falstaff/Br33t : thx for your comment. I know you are a perfectionnist, (after using a while your kameleon+Xchange configs to learn the way PSS & Graphical Browser work) so greating is appreciated, specially from you. "merci M'sieur!, j'apprends beaucoup de toi".


 

Columns UI appearance

Reply #1208
You omit INT and BSTR because it was just for you to learn how use the function...

Thank you for your explication even if it is really complicated for me as I don't know at all about C++ language... Would you mind sharing an exemple of what you wrote in a wsh panel ? Because I put that according to your explications but even if I don't get error message, it still don't work:

Code: [Select]
var HWND = utils.GetHWND("{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}");

function on_paint(gr){
Foobar_hWnd = utils.GetHWND("{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}");
utils.CreateGlass(Foobar_hWnd,10,20,50,100);
}


Columns UI appearance

Reply #1209
You omit INT and BSTR because it was just for you to learn how use the function...

Thank you for your explication even if it is really complicated for me as I don't know at all about C++ language... Would you mind sharing an exemple of what you wrote in a wsh panel ? Because I put that according to your explications but even if I don't get error message, it still don't work:

Code: [Select]
var HWND = utils.GetHWND("{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}");

function on_paint(gr){
Foobar_hWnd = utils.GetHWND("{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}");
utils.CreateGlass(Foobar_hWnd,10,20,50,100);
}



You have to know that black is the key color for the transparency, so draw a black rectangle in the background:

Code: [Select]
var ww = 0, wh = 0;

// START
function on_size() {
    ww = window.Width;
    wh = window.Height;
    Foobar_hWnd = utils.GetHWND("{E7076D1C-A7BF-4f39-B771-BCBE88F2A2A8}");
    utils.CreateGlass(Foobar_hWnd, 0, 0, 0, wh);
}

function on_paint(gr) {
    gr.FillSolidRect(0, 0, ww, wh, 0xFF000000);
}


This means that you also cannot write text in black directly on the glass, because it would be transparent. A workaround is to write the text on an image (like in the box blur example) and draw the image.

Columns UI appearance

Reply #1210
thanks for the explanation. i was totally stumped as well. 


Columns UI appearance

Reply #1212
i forgot to say thanks. cheers Darkjedii.

just one question. is it possible to have more than 1 panel with this effect in? i've tried 2 but one goes black when you resize the other and vice versa.

oh and to keep this thread vaguely on topic....



Columns UI appearance

Reply #1214
wowzers. that's very impressive.

i did manage to make your artwork panel crash though. i don't even know what i was doing that caused it because the panel was hidden. it's only because i heard the little "ding" sound that i knew something was wrong..

Code: [Select]
Error: WSH Panel Mod (GUID: 5E768E1C-26FB-4D7B-9B27-2FB246B5BB3C): Microsoft JScript runtime error:
'g_img' is null or not an object
Ln: 175, Col: 18


EDIT: one thing i really don't like and that is it's modifying my files yet you've given no advance warning of this. you really should let people know first.

Columns UI appearance

Reply #1215

Thanks for the error report.

I havent directly modified anything . I have only taken bits and pieces here and there and from the script examples that come with wsh panel mod and mix them with some of my own, because i started learning jscript only a fev months ago from zero and i have not enough experience to write the script from scratch yet. So i'm sorry if i have used some of your script pieces. 

Columns UI appearance

Reply #1216
I released my fooMMX today on deviantart
Really nice job. Apparently simple, but very complete. Your control panel is really good. I'm making my own "lcd control panel", so thx for your work. As you, i take from here and there to learn JScript and compile my own config.
Artviewer crash report too,
MilkDrop (winamp.exe) error, when PortableInstall is not in C:/ProgramFiles,
Maybe the way your filter panel works it is on purpose, but if you include a Filter in a PSS instead of a Horizontal or Vertical Spliter, all Filter panels can't interact one with others.
To achieve your "now playing" button, maybe you should add ";COMMAND:View/Column Playlist/Activate Now Playing" in your $textbutton.

Columns UI appearance

Reply #1217
Thanks for your recommendation and error report, strangely i haven't got any errors from cover panel, i have to look into it.
I tought i make it easier for some people by adding the milkdrop, but i think i'm gonna remove it and loose the installer too
and return to the good old manual suff.

Columns UI appearance

Reply #1218
and loose the installer too and return to the good old manual suff.
Installer is a good thing (i'm jalous not to be able to do same), but you could do both. Installer for new users, or rapid test, and zipped files. Don't change it all just because of Milkdrop. Keep on good work.

Another thing: in your WSH panel for Rating, does the square for unrate a song puts %rating%=0 or does it actually remove %rating% field ?

Columns UI appearance

Reply #1219

does the square for unrate a song puts %rating%=0 or does it actually remove %rating% field ?
[/quote]

it puts rating it to 0

Anyway i removed the installer and milkdrop for now and hopefully fixed the cover panel error. (if not let me know  )
I re-uploaded it too.


Columns UI appearance

Reply #1220
@ExtremeHunter, that's a great looking skin you've made  Kudos! I found a couple of issues by the way: The VU meter and the third spectrum visualization seem to eat a lot of CPU cycles when turned on.

Columns UI appearance

Reply #1221
Thanks! 

Hmm i'm not sure how the spectrum rendering is done and if the video drivers make a difference, but i openened Process Explorer switched between the spectrum presets and i didn't see any significant cpu change.

Columns UI appearance

Reply #1222
Thanks! 

Hmm i'm not sure how the spectrum rendering is done and if the video drivers make a difference, but i openened Process Explorer switched between the spectrum presets and i didn't see any significant cpu change.
I'm using a nVidia 8600GT. The issue is quite persistent on my end, when "full" mode is turned on. It doesn't seem to happen when using the mini mode.

Columns UI appearance

Reply #1223
OK i think i found the problem. Right click on the specific spectrum select configure and change the refresh interval! I changed mine to 25 and it takes much less cpu now.

Columns UI appearance

Reply #1224
I havent directly modified anything . I have only taken bits and pieces here and there and from the script examples that come with wsh panel mod and mix them with some of my own, because i started learning jscript only a fev months ago from zero and i have not enough experience to write the script from scratch yet. So i'm sorry if i have used some of your script pieces. 


actually that's not what i meant at all. i mean my music files are getting modified by the various components in your config. examples being lyrics saved to tags and also playback statistics.