Search found 37 matches

by theteapot
Sat Jun 03, 2006 5:54 am
Forum: Feature Requests and Wishlists
Topic: OpenScreen() with #DesktopNumber
Replies: 2
Views: 1206

Has anyone come up with a solution to this?

TheTeapot
by theteapot
Fri Apr 14, 2006 2:40 am
Forum: Coding Questions
Topic: Dvd player
Replies: 27
Views: 5844

I've done some research on DVD drivers, etc. It appears that they all require DirectShow, which must be the overlay thingy.

Calling up a Windows Media Player? Yes, but not in my case - it still won't do a fullscreen thing, or use DirectX and not DirectShow.

[edit]Because the projector is on ...
by theteapot
Fri Apr 14, 2006 1:50 am
Forum: Coding Questions
Topic: Dvd player
Replies: 27
Views: 5844

Has anyone got an answer to this question? I've just been searching the forum for the same thing!

InterVideo WinDVD uses a "Screen Overlay", but I don't like this because I need to project a DVD onto a projector via wireless, and I can't use overlays.

You would probably have to find a DVD decoder ...
by theteapot
Fri Mar 31, 2006 6:20 am
Forum: Coding Questions
Topic: [PB 3.94] Getting the print screen button in PB
Replies: 8
Views: 3025

Thanks!

Where did you find it by the way?
by theteapot
Wed Mar 29, 2006 8:31 pm
Forum: Coding Questions
Topic: [PB 3.94] Getting the print screen button in PB
Replies: 8
Views: 3025

Sorry, I may not have made myself clear enough. I wanted to see if the user had pressed that key on a screen .

For example:

InitSprite()
InitKeyboard()
OpenScreen(1024,768,32,"")
Repeat
ExamineKeyboard()
Delay(20)
Until KeyboardReleased(#PB_Key_PrintScreen) ; This will never evalutate to true ...
by theteapot
Wed Mar 29, 2006 7:42 am
Forum: Coding Questions
Topic: [PB 3.94] Getting the print screen button in PB
Replies: 8
Views: 3025

[PB 3.94] Getting the print screen button in PB

How can I find out if the user has pressed the print screen button on my screen?

There is no #PB_Key_PrintScreen constant! Is there a numeric value which I can use?

The key does get captured with #PB_Key_All.

Thanks, TheTeapot
by theteapot
Sat Mar 18, 2006 9:15 pm
Forum: Coding Questions
Topic: OOP in purebasic (my simple test doesn't work)
Replies: 5
Views: 1188

Thanks a lot for that!

I've simplified it to remove a structure, but it may not work when you add in more objects. However, for a one-object program someone might find it usefull.

Interface My_Object
Procedure1(x.l, y.l)
EndInterface

Structure Methods
My_Procedure1.l
EndStructure

Procedure My ...
by theteapot
Sat Mar 18, 2006 7:46 am
Forum: Coding Questions
Topic: OOP in purebasic (my simple test doesn't work)
Replies: 5
Views: 1188

I don't have PB V4, so this comes up as a syntax error.

Surely there's some way of doing this!
by theteapot
Sat Mar 18, 2006 6:48 am
Forum: Coding Questions
Topic: OOP in purebasic (my simple test doesn't work)
Replies: 5
Views: 1188

OOP in purebasic (my simple test doesn't work)

I'm trying out OOP in purebasic, and I put together this from Drac's oop tutorial , but I can't get it to work.

It gives out an "Invalid memory access", which would seem to me as if the object isn't being initialized properly. However, the structure matches up perfectly with the interface.

Can ...
by theteapot
Tue Mar 07, 2006 6:45 am
Forum: Coding Questions
Topic: simple score-card program
Replies: 3
Views: 1003

A bit controversial, asking whether to use Purebasic or PHP!

I would recommend using PHP, because to write a form, it's much simpler than making a windows executable. I won't post any code in the PB forum, but all you need to do is to create a form, and then submit it to a basic checking script. It ...
by theteapot
Sat Mar 04, 2006 9:38 pm
Forum: Coding Questions
Topic: Finding a pixel in a window
Replies: 5
Views: 1164

1. See code below. Plot() is slow at times, and it is hard to get lots of colours quickly, so it may take a while depending on your computer. In the code, I've drawn a pixel, found it, and waited for the user to close the window. You will notice that the higher the values of #Width and #Height you ...
by theteapot
Sat Mar 04, 2006 2:24 am
Forum: Coding Questions
Topic: KeyboardPushed gets stuck
Replies: 0
Views: 556

KeyboardPushed gets stuck

[edit]
Partly solved - It's something to do with my computer, since another computer on my network can run it fine. It's not my code, so I've removed that.
[/edit]

When I run the following code on my computer, and hold down some arrow keys to see what it does, it works for a while, but then it gets ...
by theteapot
Mon Feb 27, 2006 6:37 am
Forum: Coding Questions
Topic: using MouseX() and MouseY() - help please
Replies: 4
Views: 1288

I may be missing something here, but shouldn't you have it without the @ symbol because the @ symbol refers to a pointer?

If MouseState\rgbButtons[MOUSEBUTTON_LEFT]
; convert from relative to absolute coords ???
mintMouseX = mintMouseX + MouseState\lx
mintMouseY = mintMouseY + MouseState\ly ...
by theteapot
Mon Feb 27, 2006 3:44 am
Forum: Tricks 'n' Tips
Topic: Fireworks animation
Replies: 6
Views: 2383

Yes, it's written for PB 3.94. As thefool said, you need to have ClearScreen(RGB(0, 0, 0)) for PB 4.

Intrigued: I had that line there for when I compiled it as a screensaver.
The code posted is for a screensaver, but when you want the user-interactive version, you need only the escape key.
It all ...
by theteapot
Sun Feb 26, 2006 6:34 am
Forum: Tricks 'n' Tips
Topic: Fireworks animation
Replies: 6
Views: 2383

Fireworks animation

Code updated For 5.20+

I wrote this while looking for a fireworks simulator thing. It can be modified very easily to let the user place the fireworks wherever they want.

I thought that it was good enough to post on the forum.

TheTeapot

;;;;;;;;;TheTeapot's FireWorks Thingy ...