Archive: preswticher (héhé preset switcher)


16th April 2002 04:11 UTC

preswticher (héhé preset switcher)
(ok i post this cause i writen it in another post so there could not be much talk about this)

ok i told myself that back and forth was not enough to makes the trip goes on....

ok who don't know about u and y to seek thus presets.....héhé

there's the need to seek thus folders that is mostly important and that can't realy works without a programmin day....



(sorry but basicly i'm french so please don't be too armfull to the perfection of my words)

:winamp: rocks!!!!


17th April 2002 02:32 UTC

hotlist?
hey magi.x could you add that kind of feature to hotlist.


7th May 2002 07:38 UTC

I did it !
get my preset switcher:
http://vfx10.***********/softs.htm
AVS playlister is just beta for now...Please test it and report bugs !!! fortunately you can read french so please read the doc before using it and I'd really be happy if you can translate it to english... :D


7th May 2002 08:18 UTC

i-e
friend i got some probs downloading some filetypes (like apes) with internet esplorer , hey mail me and i'd mayby find time to translate it (with some tips)
hey thanx a lot


7th May 2002 08:43 UTC

That's pretty cool. It's simple to use, and it's a nifty theory for getting AVS to play the preset you want. I say thoery because, unfortunately, on my machine, it did not work with random on. It worked if I pressed space, so I do not see why random would not work unless winamp does not rescan the dir when selecting a new preset. The advantage that this has oer the one made by magic.x in the random function, and that it has the transition effects.

You might want to include the documentation in the install of the program, and a help screen would be good too.


7th May 2002 09:11 UTC

what's the problem with the random function ??? can you tell me exactly so I'll try to fix it...For the documentation I prefer waiting that someone translate it to english before publishing it in the install...And where can I get magic.x preset switcher? I've never heard of it and I thought I was the first one to code this sort of software...Thanks for your beta testing...


7th May 2002 09:14 UTC

message to Mucks
in IE, right click on my ape link and click on "Enregistrer la cible sous..." ET VOILA, it's just because IE considerate APE files like text files....


7th May 2002 09:30 UTC

please help....
I hope Unconed can answer this question: how can I send a keystroke to the AVS display window using VB ? ( if you know how to do it in C++ tell me too and I'll try to translate...) If I could do that, my app would really be a LLLLOOOOOTTTTTT better :)


7th May 2002 10:49 UTC

Mucks, i designed Hotlist as a Live-act Tool. Thats why i didnt include random features but pictures instead, nobody can remember each of 150 Presets just by name ;) i think geobish's prog will be better for your purpose.

Geobish, i had those problems too programming hotlist. But i did it in Delphi, so it might be diffrent in VB. If you want to send AVS a message you have to understand that everything goes through Windows Messages (i think there are some hints on the developer page). Maybe you have WinSight. This Tool shows all Messages that are sent between Applications. Just look at the Messages that AVS sends and receives when you press a Key, there are plenty of them: KeyDown, KeyUp, KeyPress and others that won't interest you. First, you'll have to find the Handle of AVS. You can get the informations you need throuh WinSight too. In general the nam should be avswnd. once you have the handle, you can send windows messages to AVS, keystrokes or whatever. You'd better look those things up in your VB Help, that may be a bit hard, but the best possibillity to do it. And would you please add a ENglish version to your Homepage? My French is really bad and maybe there are others who will be confused too... :D


7th May 2002 11:05 UTC

Thanks, I'll try to find WinSight ( I hope it's freeware ) and I'll wait for Unconed to answer ( Unconed u're really great :) ), I think I'll also include an hotkey manager in my app ( for the manual mode ), I think this won't be too much dificult ( just have to mess with the APH files ),For my webpage in french, it's part of our VJ team website ( http://www.vfx.fr.st ) but I think I'll realease an english version of this page and of the doc for Playlister...Don't forget: suggestions are welcome...
P.S: you blame me coz my webpage is in french, but yours is in deutch.... :igor:


7th May 2002 12:49 UTC

By the way, I'd like someone to translate the documentation I wrote for AVS Playlister from french to english...please send it back to me so I can include it on my website...Here is the url to download it: http://vfx10.***********/softs.htm (look at the bottom of the page) and here is my email: goebish*NOSPAM*@hotmail.com (remove the *NOSPAM* :))
And I'd be very happy too if someone could make me a NSIS script for the installation (this is a VB program so there are DLLs and other shits to copy in system dirs) mail me and I'll send you all the files with their locations.
Thanks in advance


7th May 2002 16:32 UTC

I suppose I could take a crack at translating the docs with my knowing enough french to talk down a speeding ticked in french, im Quebec.

As to the random problem I was having. It workrd fine in your program but not in Winamp.

Wait, wait.

Me dumb. Forgot that winamp does not do random switches while the edit window is open. :hang:

I do have as suggestion though. Perhaps when you figure out how to send messages to AVS, make it so it sends a space keypress to AVS instead of you having to use the random switcher. That way you don't have to go the the presets/hotkeys screen if you want to stop constart refreshing of the preset, just stop the manager.


7th May 2002 18:33 UTC

Can't you use the regular Win32 API in Visual Basic (SendMessage)? I don't use Visual Basic...


8th May 2002 10:28 UTC

OK OK
Ok, Unconed don't know how to do that ( you can't know everything guy :)), so do anyone know how I can use Win32 APIs to send a keystroke to the AVS render window via my VB program ?
Note to Unconed: if you know how to do it in another langage please let me know and I'll try to translate (my problem is that I don't know very much about Win32 APIs but I know I can use SendMessage in VB)


8th May 2002 10:45 UTC

If you can use sendmessage, simply send a pair of WM_KEYDOWN/WM_KEYUP with the correct scan code. Here's the docs for them:


WM_KEYDOWN
nVirtKey = (int) wParam; // virtual-key code
lKeyData = lParam; // key data


The WM_KEYDOWN message is posted to the window with the keyboard focus when a nonsystem key is pressed. A nonsystem key is a key that is pressed when the ALT key is not pressed.

Parameters
nVirtKey
Value of wParam. Specifies the virtual-key code of the nonsystem key.
lKeyData
Value of lParam. Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag, as shown in the following table:

Value Description

0-15 Specifies the repeat count. The value is the number of times the keystroke is repeated as a result of the user holding down the key.
16-23 Specifies the scan code. The value depends on the original equipment manufacturer (OEM).
24 Specifies whether the key is an extended key, such as the right-hand ALT and CTRL keys that appear on an enhanced 101- or 102-key keyboard. The value is 1 if it is an extended key; otherwise, it is 0.
25-28 Reserved; do not use.
29 Specifies the context code. The value is always 0 for a WM_KEYDOWN message.
30 Specifies the previous key state. The value is 1 if the key is down before the message is sent, or it is 0 if the key is up.
31 Specifies the transition state. The value is always 0 for a WM_KEYDOWN message.


And


WM_KEYUP
nVirtKey = (int) wParam; // virtual-key code
lKeyData = lParam; // key data


The WM_KEYUP message is posted to the window with the keyboard focus when a nonsystem key is released. A nonsystem key is a key that is pressed when the ALT key is not pressed, or a keyboard key that is pressed when a window has the keyboard focus.
Parameters
nVirtKey
Value of wParam. Specifies the virtual-key code of the nonsystem key.
lKeyData
Value of lParam. Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag, as shown in the following table:

Value Description

0-15 Specifies the repeat count. The value is the number of times the keystroke is repeated as a result of the user holding down the key. The repeat count is always one for a WM_KEYUP message.
16-23 Specifies the scan code. The value depends on the original equipment manufacturer (OEM).
24 Specifies whether the key is an extended key, such as the right-hand ALT and CTRL keys that appear on an enhanced 101- or 102-key keyboard. The value is 1 if it is an extended key; otherwise, it is 0.
25-28 Reserved; do not use.
29 Specifies the context code. The value is always 0 for a WM_KEYUP message.
30 Specifies the previous key state. The value is always 1 for a WM_KEYUP message.
31 Specifies the transition state. The value is always 1 for a WM_KEYUP message.


8th May 2002 15:08 UTC

Well, in don't understand everything in that :) but I asked for some help on programmersheaven forum and someone said me he'll answer my question, so all of you wait 2 or 3 days and I'll publish version 1.1 of Playlister which will be totally automated (don't have to use random switching in AVS any more :))...

And please excuse me for my bad english writting:igor:


9th May 2002 00:35 UTC

version 1.1 of AVS Playlister is out
It's there..Version 1.1, now it's totally automated, so you don't need any more to close the config window and you can switch off the randomly switch preset...It still got a little bug when it is in manual mode, you sometime have to click twice on a preset for it to be loaded..Now the interface is in English :) but the doc is still in french (I'm waiting for someone to translate :))
here's the page where you can find it:
http://vfx10.***********/softs.htm
Please send suggestions and bugs report !!!


9th May 2002 05:49 UTC

HOw do i install this ape's??? ...i dl them but all i get is the presets and no ape's? whts going on?:confused:


9th May 2002 11:39 UTC

well, Playlister isn't an APE, it's a 3rd party utility to manage presets playlists...If you're looking for APEs look for the thread APEs programming :)


10th May 2002 00:22 UTC

v1.2 :)
Again another version...Now you can take snapshots of the presets while in "play" mode and they will appear in "manage mode" and the little bug I had mentionned isn't there any more...Now I know (a bit) more about WIN32 API I can do a LLLOOOTTT of neat things...Cool ! I'd like to give a BIG thanks to the guys at www.programmersheaven.com for helping me to understand those things and thanks to UncoNeD for giving me the URL :)
The app is still availlable at http://vfx10.***********/softs.htm
hey ! I'm still looking for someone to translate the doc and to make a NSIS installation script for this app (mail me or send PV for details)...And suggestions are more than ever wanted :)


10th May 2002 15:08 UTC

English doc
thanks Mucks for translating the doc to english, now it's availlable on the same page as the software...Note: not all the features are in the doc (especially the take a snapshot feature),but it isn't dificult to understand :)


12th May 2002 23:45 UTC

v1.2.5
version 1.2.5 is now availlable: better snapshots managements, many bugfixes and english doc included, get it at: http://vfx10.***********/softs.htm
Now I'll try to implement that it can have a specific playing time for each preset...If you've other suggestions, they're always welcome...


14th May 2002 07:26 UTC

oups...big bug...
I find out there is a bug in my app (thanks Trolls and BonnetRose): it won't run if office 97 or later isn't installed on your PC...That's because fm20.dll (I use it for spinbuttons) correctly register only if office is installed.If you launch it on a PC where office 97 or later isn't installed, you got a system error &H8007007E module not found...I'll try to find a replacement today and to publish a clean version this afternoon...Sorry for the convenience...


14th May 2002 10:37 UTC

it's done
version 1.2.7 is done..You don't need to have office installed on your PC to run it anymore...Thanks again to Trolls[Art-Sonic] and BonnetRose for bug report and Sangoku for testing :)
availlable (installation and sources) at http://vfx10.***********/softs.htm


16th May 2002 07:13 UTC

1.3
version 1.3 is out....New features:
- you can choose a different playing time for each preset in your playlists
- few minor bugs corrected
- prev/next button (not 100% functionnal)
- total playing time display
and a few more things....

AVS playlister files (*.APL) saved with prior version are no more loadable due to new functionnalities (excuse me about that...)

download it at http://vfx10.***********/softs.htm

Please read the doc...(configuration, usage, contact me...)

Have fun :D (I'd like to know who have heard of my app by visiting this forum so please send me an email, my adress is in the software)


16th May 2002 09:18 UTC

hi goebish,

I tried to install , but it says type mismatch/

what does this mean?


16th May 2002 09:54 UTC

thanks for bug report
when do the problem occurs ? while installing the program or when first launching...Please let me know and I'll try to fix that...And do someone else have the same problem ??? Thanks for your reports :)


16th May 2002 10:21 UTC

hiya:)

it's when you first click the install button.

It starts okay, but when you hit the install button it gives that error. (well to me anyway)


Cheers:)


16th May 2002 10:34 UTC

well....
Ok, so the problem seems to come from my installation program...Grrr Micro$oft wizard suxxxx.But the problem seems to happen only on your PC...I'll try to make a NSIS installer instead of this uggly one..I've never used it yet so let me time to learn about NSIS scripting and I'll publish another version (I hope this afternoon or this evening...), and I just did version 1.3.1, please download it and tell me if you still have the same problem...thanks again :) dl it at http://vfx10.***********/softs.htm
I think peoples start to know this url know :blah:


16th May 2002 10:39 UTC

hehe this version Installs perfectly :)



and yes we all know this url well now :D


very nice program. Very well done :)


17th May 2002 02:34 UTC

upload problem
I've got a probluem...I'd like to send playlister on winamp.com but umy installation is 2Mb...It can't upload it with my u56k modem coz it crash before the upload endu...Can someone tell me what to do ?


17th May 2002 03:33 UTC

split it with winrar
well you can ry to use a compressor (like winrar) that makes an exe file and .r01 .r02 .....so then peoples won't need to own winrar but win32..héhé

then send it in 2 or 4 posts (i don't know the maount of bytes allowed)

i hope it will help


17th May 2002 10:13 UTC

1.3.3
No mucks, I can't do that because winamp.com just accept .exe uploads...I'll try to go at a friend who have adsl :) .... Version 1.3.3 of playlister is out... look my previous posts for the url...It has a better interface and some bugfixes


20th May 2002 19:19 UTC

1.3.4
I just finished v1.3.4, new features and bugfixes:
- minor bugfixes
- fixed bug that caused playlister to crash when clicking the new “send all to playlist” button…(oops…)
- better time management (but still not 100% accurate…)
- interface modifications
- prev/next buttons now 100% functional, no more depending of the current playing mode
- added buttons in settings window to quickly change AVS display window size to “standard” sizes when playlister runs: 160x120, 320x240, 352x288 and 640x480 or to a custom size-> I had this idea while looking into the AVS Wishlist forum

You can find the URL to get it in my previous posts...Please send reports...Thanks


27th May 2002 00:46 UTC

v1.3.5
here it is :) new in this version:

- added “delete from hard drive” button (ask for confirmation option in settings)
- reshaped thumbnail view to 4/3 aspect ratio
- snapshots are now saved in JPEG at thumbnail size(103x76) instead of BMP at current AVS window size to save space on your HD (files are about 30 times smaller), but your old snapshots are still compatibles :)
- disable screen saver while playlister is running

There's also a new URL to get it:

http://vfxsoftwares.fr.st (there's an english version now)
Please send reports...thanks


6th June 2002 05:33 UTC

playlister is loading the wrong presets
Whenever I try to play my list of presets the playlist program loads the wrong one! I've got multiple subfolder of presets and it keeps loading files from the wrong subfolders.

The program seems like exactly what I need to run visuals - except for this one glitch. Any ideas what's wrong?

BTW - Thanks for all your work on the program to date. Its a great idea.

Gieck


6th June 2002 06:57 UTC

hi!
Hi guy! Did you read the doc ? The folder in presets/hotkeys in AVS must be AVSPL and randomly switch presets must be off...And in playlister you need to go to file/settings to set your AVS dir location....

I just think you have a setting problem...Try what's above and I think it should work :) If not send me private message and I will try to help you since you're the only one to have this problem.

I had a problem with my website yesterday: I reached maximum bandwith on Tripod and the page has been unavaillable for 1 or 2 hours...I'll try to change the location of the files today so the problem won't occur anymore...sorry

I'm actually finishing v1.4, now it include a keyboard manager (for hotkeys) and a few more things...I'll post here when it's finished...


10th June 2002 20:59 UTC

version 1.4 with hotkeys manager
version 1.4 is ready, to save download time, I just put an update on my website, so version 1.3.5 must be installed on your PC before upgrading... Get it here: http://vfxsoftwares.fr.st ...Please read the doc and if you still have problem then mail me (e-mail in the app) .....


11th June 2002 13:54 UTC

keyboard layout
I need help from one UK and one US people to include correct keycodes for these keyboards in playlister(actually, only french and german(thanks Magic.X)keyboards are fully supported)...please contact me in private and I'll tell you how you can help me...
Thanks:)


11th June 2002 19:35 UTC

Surely you don't hardcode every possible layout in code??? Why not use Win32 API functions to do the conversion? Don't re-invent the wheel... You can use ToAscii()/ToUnicode() to convert scancodes into the correct character, and it even handles 'dead' keys (keys that combine with the next one you press).


11th June 2002 21:04 UTC

vb problem
the problem is that I can't access keycode with VB(or only with win9x)....hey! unconed do french or deutch keyboard works for you in belgium ????


11th June 2002 21:13 UTC

The Belgian keyboard layout is similar but still different from the french layout (only the letter layout is the same: AZERTY). In any case, I think you should really find another way other than storing all the known keyboard maps. Not only is it a lot of work, it's also a bad programming practice to do these kinds of things yourself.

Have you tried sending WM_CHAR messages by the way? That way you only need the character value, not the scancode. Normally these are generated by the receiving application's TranslateMessage() (when it receives a WM_KEYDOWN/WM_KEYUP pair), but maybe you could send them directly?

I guess the alternative is to use a 'real' programming language :) :p.


12th June 2002 11:33 UTC

lol
Yes, I know I should use a 'real' language...But programming this app in C++ isn't possible for me for now...But it isn't a lot of work to do like I'm doing...I'll send you a little prog by email so you can help me include the good keycodes for belgian keyboard...Hey! what do you think of my app now it has a hotkeys manager ?


12th June 2002 14:32 UTC

Re: playlister is loading the wrong presets

Originally posted by Gieckboy1
Whenever I try to play my list of presets the playlist program loads the wrong one! I've got multiple subfolder of presets and it keeps loading files from the wrong subfolders.
heya, Gieckboy! i got exactly the same bug and i dunno what's wrong.
Just wait a bit until i'm through my final testings of Hotlist 2, it doesnt has this anoying bug (maybe others? :P) i'll post a link here if everything is done.

Good luck to Goebish, writing down all keyboard codes of the world :D

12th June 2002 14:36 UTC

am i right or does i looks stupid like always
did you try to take the preset/hotkeys's subdirectory to the folder avspl?


14th June 2002 11:15 UTC

The problem i'snt caused by file handling. I tryed out something: i added only one Preset switched to manual mode and clicked on it on and on. Every time i clicked on it, a diffrent preset was loaded, but never that one that i added (maybe i stopped clicking too early?). It was like pressing the space bar. I guess this has got something to do with the hotkey posting stuff.


14th June 2002 13:25 UTC

avs config
your problem is that you haven't set avs corectly:
in avs, go to presets/hotkeys and set AVSPL as dir...and the problem is gone....In the next version i'll handle presets loading in another way so you won't have to set up avs this way anymore...


14th June 2002 15:51 UTC

Goebish, I think I may have found a solution to your keyboard-layout problem. I've been poking around with keyboard functions :). I don't know if this will work in VB though...


The VkKeyScan function translates a character to the corresponding virtual-key code and shift state for the current keyboard.

SHORT VkKeyScan(
TCHAR ch // character to translate
);

Parameters
ch
Specifies the character to be translated into a virtual-key code.
Return Values

Return Value
If the function succeeds, the low-order byte of the return value contains the virtual-key code and the high-order byte contains the shift state, which can be a combination of the following flag bits.

Bit Meaning
1 Either shift key is pressed.
2 Either CTRL key is pressed.
4 Either ALT key is pressed.
8 The Hankaku key is pressed
16 Reserved (defined by the keyboard layout driver).
32 Reserved (defined by the keyboard layout driver).


If the function finds no key that translates to the passed character code, both the low-order and high-order bytes contain –1.

Remarks
For keyboard layouts that use the right-hand alt key as a shift key (for example, the French keyboard layout), the shift state is represented by the value 6, because the right-hand alt key is converted internally into ctrl+alt.

Translations for the numeric keypad (VK_NUMPAD0 through VK_DIVIDE) are ignored. This function is intended to translate characters into keystrokes from the main keyboard section only. For example, the character "7" is translated into VK_7, not VK_NUMPAD7.

VkKeyScan is used by applications that send characters by using the WM_KEYUP and WM_KEYDOWN messages.

QuickInfo
...
Import Library: Use user32.lib



By using this function, you can convert character back into key codes. This means you don't need to store keyboard layouts, right?

From what I know about VB, you should be able to import this function from user32.dll/lib from this definition.



Here are some corrections on the documentation btw:

...This tool allows you to choose... (beginning)
...but your old snapshots are still compatible (adjectives don't change in English :))
...prev/next buttons now 100% functional, no more depending on the...
...to write after I'd seen/heard many peoples saying that one of the most wanted features in AVS was that...
...AVS presets! You can get some at http://www.winamp.com/plugins/...
...I recommend a minimum of a 400 MHz processor (but a high-end machine is really the only way to)...

I know French too by the way (though I suck at speaking/writing, I can understand it well), so if you need some help with translations, just ask :).


25th June 2002 08:23 UTC

v1.4.1
v1.4.1 is on my website: http://vfxsoftwares.fr.st

-now compatible with EVERY keyboard of the world ;) (excepted some japanese keyboards maybe)
-fixed lot of minor and not so minor bugs
-reduced preset loading lag time a lot

This version need at least directX 7 to work (I now use Direct Input for keyboard handling:))

note for unconed: I'll re-write the doc in french so you can translate it to 'good' english :) thanks

please send reports... goebish at hotmail.com


7th February 2007 22:58 UTC

Whish the project is still alive!
Goebish!? Still around? I got a few ideas about the project.. and also i found a buf:P
it starts logitech's setup when i gets to run it....:P
Mayby a Windows Vista version would be da wroxx?


8th February 2007 21:53 UTC

Re: well....

Originally posted by goebish
Ok, so the problem seems to come from my installation program...Grrr Micro$oft wizard suxxxx.But the problem seems to happen only on your PC...I'll try to make a NSIS installer instead of this uggly one..I've never used it yet so let me time to learn about NSIS scripting and I'll publish another version (I hope this afternoon or this evening...), and I just did version 1.3.1, please download it and tell me if you still have the same problem...thanks again :) dl it at http://vfx10.***********/softs.htm
I think peoples start to know this url know :blah:
Ok goebish i'm going to save your life right here.
TRASH the installer you made with microsoft wizard and learn to use the Nsis Programming language for making very powerful Installers.
Nsis is much easier to learn and use and also provides more features then microsoft Install provides.

9th February 2007 07:56 UTC

Hmmm .. This little proggy is like 5 or 6 years old and I'm not planning to update it (this was one of my first app for WIN32)

I suggest you to use hotlist from Magic.X, I think it's still updated and it provide more functionalities than Playlister.

To Nanakiwurkz: I don't use M$ Wizard anymore for my installers, I now use Inno Setup, which I think is more powerfull than NSIS.