Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionIl y a pas deux n à connerie ? Ou alors c'est un jeu de mot ?
var continuer = true; var shl = new ActiveXObject("WScript.Shell"); var SDL = "../../"+MsgPlus.scriptFilesPath.replace(/([a-zA-Z])(:\\)/, "").replace(/(\\)/g, "/")+"/SDL.dll"; var event; function OnEvent_Initialize(MessengerStart) { } function OnEvent_Uninitialize(MessengerExit) { continuer = false; } function loopEvent() { event; var keystate; Debug.trace("ok: "+(keystate = Interop.Call(SDL, "SDL_GetKeyState", 0))); while (continuer) { if(Debug.trace(Interop.Call(SDL, "SDL_PollEvent", event) != 0)) { shl.popUp("oki"); } } function OnEvent_MenuClicked(Id, Location, OriginWnd) { if(Id == "start") { openWnd(); continuer = true; } if(Id == "stop") { continuer = false; } if(Id == "startEvent") { loopEvent(); } } function openWnd() { Debug.trace(Interop.call(SDL, "SDL_Init", 0x00000020)); // SDL_INIT_VIDEO = 0x00000020 Debug.trace(ecran Interop.call(SDL, "SDL_SetVideoMode", 350, 150, 32, 0x00000000)); // SDL_SWSURFACE 0x00000000 Debug.trace(Interop.call(SDL, "SDL_WM_SetCaption", "Seul al première lettre sera affiché", 0)); loopEvent(); Debug.trace(Interop.Call(SDL, "SDL_Quit")); }