Skip to content
Forum Archive

Upgraded AVS Editor

46 posts

Nanakiwurkz#
wee!!

I decided to have some fun and well heres my attempt at a better avs. pak-9 i borred your suggestions on the text box sizes. for compatibility reasons i decided not to change texer2 and GVM to match the sizes of my modded version.

this will be a 2 part installation.
unzip part1 and then unzip vis_avsBettered.zip in the same folder where you put the .z01 file.
Nanakiwurkz#
part 2

heres the other part.
Tooblai#
Changed size and added scroll bars of almost all code-boxes (didn't change any APEs included with Winamp).
Configured for resolution >>> 1024 X 768
Extract the tow Zip files in a folder and run the vis_Merge.bat to get the dll file.
Tooblai#
Contains the other half of the dll and the vis_Merge.bat file.
Nanakiwurkz#
why in the world would you use a batch file. when in my method all you need is the one file and use winzips built in ability to split and recombine?
Tooblai#
That's just a matter of taste and nothing else. 🙂
BTW, I forgot to mention on my previous post... take a look at your Dynamic Movement's Init code-box. The horizontal Scroll bar is messed up. 😁
Nanakiwurkz#
Tooblai i recently downloaded the souce for avs and i noticed while skimming the code i discovered the words
"Syntax Highlighting" i believe someone is trying to make your idea a reality.
DrO#
not sure how since no one's released any newer code that i've even been aware of (especially from nullsoft). wouldn't be surprised if that's been in there as comments for a few years of stuff to possibly do, heh

-daz
Nanakiwurkz#
actualy it a part of the code.
I was interested and looked for the comment slashs but found none. i think there is a possibility.
i'll show the text when i return next week.
Nanakiwurkz#
Found it.

Heres what i believe to be the code for it.
=============================================

#if 0//syntax highlighting
HINSTANCE hRich;
#endif

static int init(struct winampVisModule *this_mod)
{
DWORD id;
FILETIME ft;
#if 0//syntax highlighting
if (!hRich) hRich=LoadLibrary("RICHED32.dll");
#endif
GetSystemTimeAsFileTime(&ft);
srand(ft.dwLowDateTime|ft.dwHighDateTime^GetCurrentThreadId());
g_hInstance=this_mod->hDllInstance;
#ifdef WA3_COMPONENT
GetModuleFileName(GetModuleHandle(NULL),g_path,MAX_PATH);
#else
GetModuleFileName(g_hInstance,g_path,MAX_PATH);
#endif
char *p=g_path+strlen(g_path);
while (p > g_path && *p != '\\') p--;
*p = 0;

#ifdef WA2_EMBED
if (SendMessage(this_mod->hwndParent,WM_USER,0,0) < 0x2900)
{
MessageBox(this_mod->hwndParent,"This version of AVS requires Winamp 2.9+","AVS ERROR",MB_OK|MB_ICONSTOP);
return 1;
}
#endif
PAK-9#
As I mentioned before you would need to replace text boxes with rich text controls for syntax highlighting and that is exactly what that code stub is for (great minds eh 😛).

However linking the rich edit dll and actually integrating syntax highlighting are very different things; you would need to see if there is any other relevant code or if (as I suspect) this is just the preliminary framework for later features.
Nanakiwurkz#
scanned the main.cpp from the latest avs src download and there is nothing else except a piece of code after the big one i submitted.

//syntax highlighting
hRich=0
;

thats all that was left.