Search found 47 matches

by bernardfrancois
Thu Jul 15, 2004 11:23 pm
Forum: Linux
Topic: mousebutton()
Replies: 3
Views: 2377

I still didnt find a solution, and because I wanted to continue programming, I temporarily used the returnkey instead of the mouse button using the AddKeyboardShortcut() command...

Is there realy noone who ever used mouse commands in the linux version of purebasic? :?
by bernardfrancois
Thu Jul 15, 2004 8:49 am
Forum: General Discussion
Topic: WindowEvent() & EventMenuID() question
Replies: 4
Views: 1645

thanks!

this didn't change anything... (but I dont understand why, coz normally it should work.. :?: )

WindowEvent()
ev=EventType()
If EventMenuID()=5 And shootball(closestball)=1 And dist<20
MessageRequester("message","define the desired direction and press space")
stage=2
EndIf

While ...
by bernardfrancois
Thu Jul 15, 2004 1:51 am
Forum: General Discussion
Topic: WindowEvent() & EventMenuID() question
Replies: 4
Views: 1645

WindowEvent() & EventMenuID() question

Hi,

Have a look at the code below...


Syntax
Event = WindowEvent()

Description
Check if an event has occured on any of the opened windows.



AddKeyboardShortcut(0,#PB_Shortcut_Return,5)



WindowEvent()
If EventMenuID()=5 And shootball(closestball)=1 And dist<20
MessageRequester ...
by bernardfrancois
Wed Jul 14, 2004 8:28 pm
Forum: Linux
Topic: mousebutton()
Replies: 3
Views: 2377

coz I didnt find a solution, I decided to continue programming with windows-only commands (and replace them later)

so I decided to use the MouseButton() command, which requires OpenWindowedScreen()


OpenWindow(0,#window_x,#window_y,#window_width,#window_height,0,"poolgame")
OpenWindowedScreen ...
by bernardfrancois
Wed Jul 14, 2004 1:58 pm
Forum: Linux
Topic: mousebutton()
Replies: 3
Views: 2377

oh, and also... it should work without the initmouse() command (because this needs openscreen() or openwindowedscreen(), which hasnt been used)
by bernardfrancois
Wed Jul 14, 2004 1:50 pm
Forum: Linux
Topic: mousebutton()
Replies: 3
Views: 2377

mousebutton()

hi,


Syntax

Result = MouseButton(ButtonNumber)
Description

Returns 0 if the specified button (1 for the left mouse button, 2 for the right mouse button) is not pressed, else the button is pressed. Any number of buttons can be pressed at the same time. ExamineMouse() must be called before this ...
by bernardfrancois
Tue Feb 17, 2004 1:58 pm
Forum: Coding Questions
Topic: how to check if a file exist?
Replies: 5
Views: 1805

bedankt / merci :)
by bernardfrancois
Tue Feb 17, 2004 1:47 pm
Forum: Coding Questions
Topic: how to check if a file exist?
Replies: 5
Views: 1805

how to check if a file exist?

hello,

does anyone know how I can check if a file exists?

greetz,

Bernard
by bernardfrancois
Tue Feb 10, 2004 3:53 pm
Forum: Coding Questions
Topic: how to execute another program during runtime?
Replies: 2
Views: 1385

thanks pupil!
by bernardfrancois
Tue Feb 10, 2004 3:44 pm
Forum: Coding Questions
Topic: how to execute another program during runtime?
Replies: 2
Views: 1385

how to execute another program during runtime?

does anyone know which command I have to use to execute another program during runtime of my purebasic program?
by bernardfrancois
Tue Jan 27, 2004 9:10 pm
Forum: Coding Questions
Topic: positioning the console ?
Replies: 11
Views: 2950

thanks!
by bernardfrancois
Tue Jan 27, 2004 8:42 pm
Forum: Coding Questions
Topic: positioning the console ?
Replies: 11
Views: 2950

crap I cant find it in the help: how do I get the windows desktop resolution?
by bernardfrancois
Tue Jan 27, 2004 8:16 pm
Forum: Coding Questions
Topic: positioning the console ?
Replies: 11
Views: 2950

so making it bigger has no sense, but making it smaller does :)

that's what i'm going to do :)

I haven't tried these two methods yet but I'll do this evening.
by bernardfrancois
Mon Jan 26, 2004 6:26 pm
Forum: Coding Questions
Topic: positioning the console ?
Replies: 11
Views: 2950

is it also possible to set it's size?
by bernardfrancois
Mon Jan 26, 2004 3:47 pm
Forum: Coding Questions
Topic: positioning the console ?
Replies: 11
Views: 2950

positioning the console ?

Hello,

Is it possible to place the console window at a certain screen position? Maybe with an API command?