IPB

Welcome Guest ( Log In | Register )

WSH Panel Mod, foo_uie_wsh_panel_mod
T.P Wang
post Mar 14 2009, 08:46
Post #1





Group: Developer
Posts: 486
Joined: 8-June 07
From: Chengdu
Member No.: 44175



MAIN FEATURES
Scripting

Both "VBSript" and "JScript" are supported.
Draw custom images.
Add popup menu, blur, timer and more operations to images.
Add support to run main menu and context menu command.
Add various helper functions.

Editor Window
Add support to pseudo transparent, syntax highlighting for JScript and VBScript, Import/Outport scripts, customizable font style and miscellaneous UI improvements.

Shortcuts:
  • Ctrl+F: Find
  • Ctrl+H: Replace
  • Ctrl+G: Goto
  • Ctrl+S: Apply
  • F3: Find Next
  • Shift+F3: Find Previous

NOTES & HINTS
  1. If anything goes wrong, check the console first.
  2. gdi.Font() is fully changed: gdi.Font(name, pxSize, style);
  3. Don't call repaint functions such as window.Repaint() in callback function on_size() {}, especially in pseudo transparent mode.
  4. Don't try to assign parameter "gr" from function on_paint(gr) {} with other value, nor try to store "gr" in another variable.
  5. CollectGarbage() is useful in JScript when you want to free memory immediately. (But please also refer to #11)
  6. It's better to retrieve window width and height in callback function on_size(), because their values during startup is not reliable.
  7. It's NOT recommended to create objects in callback function on_paint(), since it's called frenquently.
  8. Since v1.1.0, functions /methods which use IFbFileInfo Interface is replaced with IFbMetadbHandle Inferface.
  9. jsbeautifier.org is a good site for formatting your JScript files.
  10. Don't forget that error handling (JScript, VBScript) helps to create more stable scripts.
  11. Consider using Dispose() method instead of CollectGarbage() function.

CHANGELOG
View

DOWNLOAD
Binaries, Samples, References:
Download from here (GoogleCode)
Subscribe

Source:
You can Browse
Or, Obtain source through (using Mercurial):
CODE
hg clone https://foo-wsh-panel-mod.googlecode.com/hg/ foo_uie_wsh_panel_mod


This post has been edited by T.P Wang: Jan 28 2012, 10:44
Go to the top of the page
+Quote Post
 
Start new topic
Replies
TomBarlow
post Apr 26 2009, 10:31
Post #2





Group: Members
Posts: 585
Joined: 30-July 07
Member No.: 45750



T.P. Wang, thanks for the timer example, it works nicely. Not too resource hungry either- using window.Repaint() seems to work ok under on_mouse_move, which is probably repainting the window even more frequently.

Would you be able to add support for artist images? You might need this post. Also, should WSH Panel be able to get art from that new foo_covers component (here)?

Thanks!
Go to the top of the page
+Quote Post

Posts in this topic
- T.P Wang   WSH Panel Mod   Mar 14 2009, 08:46
- - Falstaff   Thanx for this T.P   Mar 14 2009, 09:27
- - tedgo   Thank you very much   Mar 14 2009, 12:49
- - Spirit_of_the_ocean   Sorry for asking: But I can't imagine what the...   Mar 14 2009, 12:53
- - chiwou   works great and a thank you button would do great...   Mar 14 2009, 13:06
- - tedgo   @Spirit of the ocean The most conspicious changes ...   Mar 14 2009, 13:10
- - TomBarlow   Awesome! I had a go at modding WSH panel last ...   Mar 14 2009, 13:15
- - Andreasvb   I tried this version instead of the old one, this ...   Mar 14 2009, 13:23
- - chiwou   // problem solved   Mar 14 2009, 13:49
- - tedgo   Sure you can. If you have a seekbar sample from th...   Mar 14 2009, 13:50
- - chiwou   ahh to late, no that wasn't the prob, But Andr...   Mar 14 2009, 13:52
- - tedgo   Hm, the "txt = g_titlefmt.Eval();" part ...   Mar 14 2009, 13:58
- - Andreasvb   Thanks, works now.   Mar 14 2009, 14:03
- - T.P Wang   @TomBarlow: I'll add StopAfterCurrent property...   Mar 14 2009, 18:23
- - Andreasvb   Thanks. Good to know!   Mar 14 2009, 18:28
- - T.P Wang   1.0.2 Released, with source.   Mar 15 2009, 06:05
- - TomBarlow   Thank you!! This is great. At last, a dece...   Mar 15 2009, 22:41
- - grounder   when used "pseudo transparent". small fl...   Mar 15 2009, 23:25
- - saivert   Here is my foopaint app updated for use with WSH P...   Mar 16 2009, 01:42
- - T.P Wang   1.0.4 Released @saivert: You can use 1.0.4, the ...   Mar 16 2009, 11:04
- - Hed1n   It would be very nice if you add support for older...   Mar 18 2009, 07:55
- - d0ng   I was wondering if you are able to release a versi...   Mar 20 2009, 19:09
- - T.P Wang   @d0ng: No SSE2 in this release.   Mar 20 2009, 19:28
- - NEMO7538   How can I apply a title formatting to the focused ...   Mar 22 2009, 10:40
- - NEMO7538   Nevertheless i've made those two toolbars to r...   Mar 22 2009, 22:07
- - chiwou   @NEMO: thanks for the templates, they are working ...   Mar 24 2009, 18:34
- - T.P Wang   Ver 1.1.0 Released, with some major changes. Now i...   Mar 30 2009, 20:01
- - NEMO7538   Thanks for the new version. However, it seems that...   Apr 1 2009, 05:44
- - TomBarlow   Is it possible to run a service using foo_run with...   Apr 2 2009, 11:15
- - T.P Wang   @NEMO7538: Thanks for your advice, I'll add th...   Apr 2 2009, 12:04
- - T.P Wang   1.1.1 released @TomBarlow: fb.RunContextCommand()...   Apr 2 2009, 14:09
- - TomBarlow   Fantastic!! This version is great! I s...   Apr 2 2009, 14:57
- - T.P Wang   @TomBarlow: I tried it and it works, however, it w...   Apr 2 2009, 15:35
- - NEMO7538   fb.RunContextCommand() only works with the nowplay...   Apr 3 2009, 07:37
- - T.P Wang   1.1.2 Released @TomBarlow: You now can change ...   Apr 4 2009, 04:59
- - T.P Wang   For setting in Preferences->Display->WSH Pan...   Apr 4 2009, 05:15
- - Black_Over_Bills_Mothers   I've never programmed this panel before so ple...   Apr 4 2009, 09:08
- - TomBarlow   Thanks for the new version, fonts work well now. C...   Apr 4 2009, 16:25
- - T.P Wang   @Black_Over_Bills_Mothers: Sorry, you cannot embed...   Apr 4 2009, 16:50
- - NEMO7538   Thank you TP Wang for the new version. For those ...   Apr 4 2009, 17:08
- - tedgo   @NEMO7538 Thanks for this sample! I'm on ...   Apr 4 2009, 18:15
- - chiwou   @NEMO: could you please change your seekbar/volume...   Apr 4 2009, 18:29
|- - NEMO7538   QUOTE (chiwou @ Apr 4 2009, 18:29) @NEMO:...   Apr 4 2009, 18:47
- - NEMO7538   This is another one for "Stop after current...   Apr 4 2009, 18:42
- - T.P Wang   @NEMO7538: Thanks for your advice, I now consideri...   Apr 4 2009, 18:43
|- - NEMO7538   QUOTE (T.P Wang @ Apr 4 2009, 18:43) I no...   Apr 4 2009, 18:53
- - chiwou   yeah I know but especially for the seekbar it wou...   Apr 4 2009, 18:53
|- - fbuser   QUOTE (chiwou @ Apr 4 2009, 18:53) yeah I...   Apr 4 2009, 22:24
- - T.P Wang   v1.1.3 Released. Notes: Previous editor propertie...   Apr 4 2009, 19:56
- - NEMO7538   Thanks ... it works well now. I have updated the r...   Apr 4 2009, 21:13
- - T.P Wang   v1.1.4 Released. I play around the Editor Propert...   Apr 5 2009, 14:24
- - 2E7AH   thank you T.P.Wang for this component scite is my ...   Apr 5 2009, 14:49
- - acmodeu   What should I put into txt variable to be able to ...   Apr 7 2009, 21:58
- - T.P Wang   QUOTE scite is my favourite editor, and if you are...   Apr 8 2009, 06:42
|- - 2E7AH   QUOTE (T.P Wang @ Apr 8 2009, 06:42) Well...   Apr 19 2009, 22:08
- - tedgo   Isn't it possible to display "artist...   Apr 8 2009, 08:49
- - T.P Wang   @tedgo: Here's the sample function: CODE // fi...   Apr 8 2009, 10:12
- - tedgo   @T.P Wang Thanks again (and again and again)   Apr 8 2009, 10:20
- - TomBarlow   T.P. Wang, I'm trying to do a reflection type ...   Apr 8 2009, 12:12
- - T.P Wang   @TomBarlow: The Rotate() method in IGdiBitmap inte...   Apr 8 2009, 13:53
- - TomBarlow   Cool, thanks very much, it works nicely.   Apr 8 2009, 14:19
- - Spirit_of_the_ocean   I just want to know if there are already shared co...   Apr 8 2009, 18:53
- - NEMO7538   Why don't you look at my posts above. I posted...   Apr 8 2009, 21:23
- - NEMO7538   For those who are interested, here is a new versio...   Apr 13 2009, 13:58
- - qwertz   Thank you very much NEMO7538 for your code example...   Apr 13 2009, 14:22
- - NEMO7538   Put the code of on_item_focus_change() in on_play...   Apr 13 2009, 15:52
|- - qwertz   QUOTE (NEMO7538 @ Apr 13 2009, 15:52) Put...   Apr 13 2009, 17:22
- - TomBarlow   I thought I'd share my volume control. It has ...   Apr 13 2009, 16:37
- - T.P Wang   v1.1.5 Released. Samples also updated (Add new To...   Apr 16 2009, 13:03
- - NEMO7538   Thanks TP Wang Regarding the volume control, I per...   Apr 16 2009, 22:03
- - Ironwalker   I didn't see anything in the folder that comes...   Apr 17 2009, 18:07
- - T.P Wang   @Ironwalker: You should learn about JScript (Prefe...   Apr 17 2009, 20:08
- - TomBarlow   Ironwalker- The (default) language used is JScript...   Apr 17 2009, 21:32
- - Spirit_of_the_ocean   I added the following line to my code: CODE gr.Dra...   Apr 18 2009, 00:03
- - Ironwalker   Thanks TomBarlow. If I wanted to learn programmi...   Apr 18 2009, 01:43
- - T.P Wang   @TomBarlow: There's no need to get metadb hand...   Apr 18 2009, 03:40
- - TomBarlow   Thanks, I got it working I'm just wondering ...   Apr 18 2009, 11:20
- - Spirit_of_the_ocean   Okay I got it working I use the 1.1.4 version of...   Apr 18 2009, 17:00
- - TomBarlow   I found out how to read from a text file: CODEvar...   Apr 19 2009, 11:31
- - T.P Wang   QUOTE I'm just wondering about window.CreateTi...   Apr 19 2009, 14:30
- - T.P Wang   WSH Panel Mod 1.1.6 Released. @TomBarlow: Now the...   Apr 19 2009, 17:54
- - tedgo   @Spirit_of_the_ocean I know what you're talkin...   Apr 19 2009, 18:49
- - T.P Wang   @2E7AH: The message is intended to show up when ...   Apr 20 2009, 21:26
- - 2E7AH   ok, i don't want to go exploring jscript right...   Apr 22 2009, 01:18
- - tedgo   @2E7AH I'm not very familiar with JScript. Cou...   Apr 22 2009, 08:19
- - 2E7AH   sure tedgo here it is: CODEfunction RGB(r,g,b){ ...   Apr 22 2009, 14:25
- - tedgo   Looks like exactly what i need (nearly at least ) ...   Apr 22 2009, 14:47
- - 2E7AH   probably headache you'll have to define vari...   Apr 22 2009, 15:40
- - tedgo   Oh the author helped me in the past a lot. I'l...   Apr 22 2009, 15:49
- - TomBarlow   T.P. Wang, thanks for the timer example, it works ...   Apr 26 2009, 10:31
- - T.P Wang   @TomBarlow: Artist images support is already inclu...   Apr 26 2009, 10:50
- - TomBarlow   Thanks for the offer, but foo_covers breaks embedd...   Apr 26 2009, 22:18
- - T.P Wang   QUOTE Oh and a small thing, when a wsh panel is po...   Apr 27 2009, 06:57
- - fbuser   The following code in WSH panel mod let fb2k crash...   Apr 30 2009, 23:27
- - Falstaff   Hi, i'm just trying to use this powerfull com...   May 1 2009, 10:32
- - TomBarlow   Hmm it's hard to tell without the full script,...   May 1 2009, 10:43
- - Falstaff   i've given the link to the full script : it is...   May 1 2009, 10:51
- - NEMO7538   var fileInfo=g_metadb.GetFileInfo(); <-- don...   May 1 2009, 11:21
- - Falstaff   removed (script updated above) Merci Nemo   May 1 2009, 11:23
- - T.P Wang   @fbuser: Yes, it's a bug applied to MetaValue(...   May 2 2009, 03:02
15 Pages V   1 2 3 > » 


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 30th September 2014 - 13:01