GLBasic forum

Main forum => Bug Reports => Topic started by: Woka on 2009-Aug-20

Title: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
Hello.

Yesterday, I downloaded the Beta version of the GLBASIC editor and I have a very serious problem. I type:

SETSCREEN 800, 400, 0
PRINT Hello World, 100, 100
SHOWSCREEN
MOUSEWAIT 
END

The computer cannot see the command mousewait, whatever I do. The screen opens and then instantly closes. I have Windows Vista but I had the same problem on XP, too. I disconnected the mouse (for MOUSEWAIT) and then the keyboard (for KEYWAIT) but nothing changed. I tried the C++ editor and copied a similar code to the above. Nothing changed, the problem is still here. Can someone explain me why is this happening and how can I make it recognise that command? If you know PLEASE answer because I want to be a professional programmer (yeah, Im so lucky I stuck in the beginning).

Losts of respect,

Woka.

Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Schranz0r on 2009-Aug-20
pls update to the new version!

on the GLBasic-Editor:
web / internet update

this code wirks fine:

Code (glbasic) Select
SETSCREEN 800, 400, 0
PRINT "Hello World", 100, 100
SHOWSCREEN
MOUSEWAIT 
END
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
I tried to update it but it tells me something about a Runtime Error. I will try again.

EDIT: I tried again, it cannot update. Damn, I MUST be cursed, when it comes to technology, I always have problems  :'(

EDIT 2: Ok, I think it updated... lets see....  oh man, nothing happened. The command MOUSEWAIT is still invisible for the machine.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
I downloaded the NEWEST version from the site. No success.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: MrTAToad on 2009-Aug-20
I'll give it a go with the demo.  I'll Report back when I have some news...
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
I'm sorry, did I say Beta? I meant Demo version (sry).
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: MrTAToad on 2009-Aug-20
By the way, your original example wont work anyway - its invalid.

What you need is :

Code (glbasic) Select
SETSCREEN 800, 400, 0
PRINT "Hello World", 100, 100
SHOWSCREEN
MOUSEWAIT 
END


It does work fine in the demo
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
I copied your code, activated debug mode and compiled before trying it (F8). I ran it (F5) and nothing changed.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: MrTAToad on 2009-Aug-20
Try 640,480,0 instead - 640,400 is usually an invalid screen resolution although the demo does change it automatically.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
Tried. Compiled. Failed.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: MrTAToad on 2009-Aug-20
Last thing to try is :

Code (glbasic) Select

DEBUG "1\n"
SETSCREEN 800, 400, 0
DEBUG "2\n"
PRINT "Hello World", 100, 100
DEBUG "3\n"
SHOWSCREEN
DEBUG "4\n"
MOUSEWAIT
DEBUG "5\n" 
END


and watch the debug window at the moment - if it displays all the numbers then there is something on the machine simulating mouse presses and/or keypresses.  Do you see the message stating that the demo is limited to 640x480 ?

If all the numbers aren't displayed then its crashing and you've got a problem with your machine - do the usual update Windows, graphics drivers and sound drivers etc etc.

I too use Vista - Vista x64 to be precise, and XP Home.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
Tried. Compiled. Ran. Failed.

Maybe I should just abandon the language or try an online editor. Oh, I MUST be cursed...
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: MrTAToad on 2009-Aug-20
And what were the results ?  Were all the numbers displayed ?
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
I get this with your code.

Quote*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.7.038 SN:32c13952 - 2D, WIN32
Project 1.gbas (failed to open)
Wordcount:0 commands
compiling:
IncrediBuild skips: Project 1.gbas,

linking:
success
_______________________________________
*** Finished ***
Elapsed: 1.8 sec. Time: 14:55
Build: 1 succeeded.

The image appears, then istantly closes. No difference from before.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: MrTAToad on 2009-Aug-20
Well, IncrediBuild skips: Project 1.gbas denotes the file has been skipped, so its not surprising.

However, Project 1.gbas (failed to open) denotes that Vista is preventing the file from being opened.

Where is the project stored ?
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Kitty Hello on 2009-Aug-20
QuoteProject 1.gbas (failed to open)

Oh dear! Did you use the project wizard to create the project? It's very strange.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
My name > Documents> GLBasic > Project1 > The project is here.

In the GLBasic folder are also the folders Samples and Template.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
Quote from: Kitty Hello on 2009-Aug-20
QuoteProject 1.gbas (failed to open)

Oh dear! Did you use the project wizard to create the project? It's very strange.

Yes, I used the project wizard.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
I put a new code, so it can be repeated:

QuoteSETSCREEN, 640, 480, 0
WHILE TRUE
PRINT "HELLO", 100, 100
SHOWSCREEN
MOUSEWAIT
WEND
END

The code doesn't repeat itself. It behaves like before.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Kitty Hello on 2009-Aug-20
The compiler does not compile your program.
AHHHH!
Please don't have any greek characters in the whole path!
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
My operating system is in Greek but I use only english characters.

Why something tells me I am never going to solve the problem?
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: MrTAToad on 2009-Aug-20
Give the enclosed zip file a go.

If it works (and it should), then there is a problem with your project.

In which case, can you zip up the complete project and attach it to a message.

[attachment deleted by admin]
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Hemlos on 2009-Aug-20
Sounds like GLBasic is installed in a system directory.

If you installed GLBasic to your windows documents, then try this:
1. uninstall it completely from your control panel.
2. reinstall to the default directory.

Perhaps a compatibility issue in your system....
So...dont use spaces in your project name.
See if this helps.....start a new project from scratch with no spaces in name.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
GLBasic is saved in the deafault directory. The project name has no spaces in its name.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Kitty Hello on 2009-Aug-20
Try any of the sample projects, please.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: Woka on 2009-Aug-20
I solved the problem, I only had to change the hard disc and computer icons to english. Thank you all.
Title: Re: Help - the editor doesn't recognise the commands MOUSEWAIT and KEYWAIT
Post by: MrTAToad on 2009-Aug-20
No problem!