Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Mouseclick()=1 if click is away from over the window (bug)

Author
Message
Leonid
User Banned
Posted: 28th Jun 2012 10:01 Edited at: 28th Jun 2012 10:51
Mouseclick()=1 if click is away from over the window (bug).
Mouseclick()=1 in window mode when user is pressing a mouse button not over the window from active window of the game.

Add: It does not work correctly on Pentium-4, Windows XP SP2 with large code.

I need a command MOUSE OVER WINDOW() to fix this bug. Example: IF MOUSE OVER WINDOW()=1 THEN msc=MOUSECLICK(): msx=MOUSEX(): msy=MOUSEY(). MOUSE OVER WINDOW() must be "=0" if mouse on the window's frame or on the top panel (where is icon, name and _ O X).
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 28th Jun 2012 18:59
Quote: "MOUSE OVER WINDOW()"

there's a similar command in bbb gui plugin

BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 29th Jun 2012 22:14
I'm not sure if this can be classified as a bug, since the mouse is being clicked and that's what you asked for. However, MOUSEX and MOUSEY seem to be returning ill-defined values, which might be bad and makes it tough to check if the mouse is actually in the window.

Login to post a reply

Server time is: 2026-07-07 15:10:50
Your offset time is: 2026-07-07 15:10:50