Great, thanks man, I did notice something though, not sure if that script works on your machine, but it kills mine like usual, but with some tweaking I got it to work.
1. switch (WM_COMMAND) {
case WM_COMMAND:
switch (wParam) {
//you have switch (message) this didn't work for me until I changed it back to WM_COMMAND
2. case 2:
printf("Es wurde auf 'Neue Map' geklickt");
return(1);
//I don't know why this wouldn't work, but case 2 always seems to be for mousing over the window bar or menu and freezes it.. all I did was change the InsertMenu line to not have 2, I also had to mix and match different numbers or the same numbers to make the window title stop being a button, see below for the sample and change my commented lines to see what I mean


Here is my updated code in case anyone else has the same problem
Code:
//-------------------------------------------------------------------------------------------------
// • Einbinden der Scripts
//-------------------------------------------------------------------------------------------------
#include <acknex.h>
#include <default.c>
#include <windows.h>

//-------------------------------------------------------------------------------------------------
// • Einbinden der Pfade
//-------------------------------------------------------------------------------------------------

//-------------------------------------------------------------------------------------------------
// • Funktionen
//-------------------------------------------------------------------------------------------------
long ScanMessage(UINT message, WPARAM wParam, LPARAM lParam);

function menucreate()
{
	long menuheader;
	long submenu1;
	long submenu12;
	
	HWND hwnd=hWnd;
	
	//	CreateMenu(); ist der Befehl dazu, der gibt ein Handle auf das neue Menü zurück
	menuheader = CreateMenu();
	submenu1 = CreateMenu();
	submenu12 = CreateMenu();
	
	//	InsertMenu(); ist der Befehl der Menüpunkte erstellt
	// InsertMenu(longpointer, Position, Flags, sublongpointer / id, "Anzeigestring");
	InsertMenu(submenu1, 1, MF_BYPOSITION|MF_STRING|MF_POPUP, submenu12, "Neu");
	InsertMenu(submenu1, 3, MF_BYPOSITION|MF_STRING, 3, "Öffnen");
	InsertMenu(submenu1, 4, MF_BYPOSITION|MF_STRING, 4, "Beenden");
	
	InsertMenu(submenu12, 5, MF_BYPOSITION|MF_STRING, 8, "Karte");		// use different numbers if you have a problem
	InsertMenu(submenu12, 6, MF_BYPOSITION|MF_STRING, 6, "Map");		// or use the same if you have a problem, I had to use both methods here
	InsertMenu(submenu12, 7, MF_BYPOSITION|MF_STRING, 7, "Quest");
	
	InsertMenu(menuheader, 0, MF_BYPOSITION|MF_STRING|MF_POPUP, submenu1, "Datei");
	
	
	SetMenu(hwnd,menuheader);
}

//-------------------------------------------------------------------------------------------------
// • Mainscripts
//-------------------------------------------------------------------------------------------------
function main()
{
	fps_max= 60;
	video_mode = 8;
	video_aspect = 1.777;
	level_load(NULL);
	wait(3);
	
	menucreate();
	on_scanmessage = ScanMessage;
}

//-------------------------------------------------------------------------------------------------
// • Longs
//-------------------------------------------------------------------------------------------------
long ScanMessage(UINT message, WPARAM wParam, LPARAM lParam)
{
	switch (WM_COMMAND) {
		case WM_COMMAND:
		switch (wParam) {
			case 3:
			printf("Öffnen");
			return(1);
			
			case 4:
			printf("Beenden");
			return(1);
			
			case 8:
			printf("Es wurde auf 'Neue Karte' geklickt");
			return(1);
			
			case 6:
			printf("Es wurde auf 'Neue Map' geklickt");
			return(1);
			
			case 7:
			printf("Es wurde auf 'Neue Quest' geklickt");
			return(1);

			
			default:
			return(0);
			break;
		}
		default:
		break;
	}
}




I am using A7.8 on Windows 7 32 bit if you want to know

thanks for the help and if I find out how to add the scrollbars and stuff I'll let you know.

Last edited by Nicholas; 12/16/09 14:08.

Black holes are where God divided by zero.