View Full Version : AVS controls from external app
11th September 2004, 22:33
I searched as much as I could, and can't find any info on controlling AVS from something like a visual basic app, something external. About all I can do is start and stop a visual plugin. What I would like to do is be able to tell it to switch to full screen mode, or change the visualisation, some kind of controls...
What I have is an app that I wrote that is a front-end for winamp. It's for a car, so it has all kinds of different buttons and program controls, and winamp is part of it.
Also, where can I find the info on scripting? Is this something fully implemented? I'm so confused...
13th September 2004, 14:14
17th September 2004, 10:13
Currently there is no IPC mechanism for AVS (it's Advanced Visualization Studio, right). As you well put it, you can only start/stop a visualization plug-in. There is a possibility though:
HWND hwndWinamp = FindWindow("Winamp v1.x", NULL);
HWND hwndAVS = FindWindowEx(hwndWinamp, 0, "AVS", NULL);
// DO this to make AVS go fullscreen.
SendMessage(hwndAVS, WM_COMMAND, ID_VIS_FS, 0);
17th September 2004, 11:25
#define IPC_SETVISWND 611 // param is hwnd, setting this allows you to
// receive ID_VIS_NEXT/PREVOUS/RANDOM/FS wm_commands
#define ID_VIS_NEXT 40382
#define ID_VIS_PREV 40383
#define ID_VIS_RANDOM 40384
#define ID_VIS_FS 40389
#define ID_VIS_CFG 40390
#define ID_VIS_MENU 40391
#define IPC_GETVISWND 612 // returns the vis cmd handler hwndhow about those especially the top two
18th September 2004, 03:22
Man, many thanks to both of you, I'll try it and let you know.
25th September 2004, 02:15
Didn't work. I finally got all the code right, but it just didn't work. I'm coding in VB6, so I took both of you guy's suggestions, and combined them, converted to VB and tested, no avail. Any other suggestions? Can I post part of my code, will that help?
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.