Search found 79 matches

by deadmoap
Tue Aug 09, 2005 6:41 am
Forum: Coding Questions
Topic: Closing a program from the system tray
Replies: 0
Views: 1181

Closing a program from the system tray

This is a lengthy post, so if you don't want to read, I made a summary at the bottom.


I have a spyware program (TopAntiSpyware). For anyone that's never experienced it before... thank god you never have. It is by far the most difficult to remove spyware I've seen, and probably the most annoying ...
by deadmoap
Thu Aug 04, 2005 6:45 am
Forum: General Discussion
Topic: RayTracer Theory and Practice
Replies: 130
Views: 67067

Damn, Hades, you sure answered my question pretty thoroughly (sp?). That explains why on this slow computer, the resolution hardly has an impact on the fps of most of my higher-end games (FF9 funs at 45 fps whether it's at 1024x768 or 640x480). At first I thought raytracing was just a half assed way ...
by deadmoap
Thu Jul 28, 2005 8:35 am
Forum: General Discussion
Topic: RayTracer Theory and Practice
Replies: 130
Views: 67067

I don't know too much about raytracing... but damn there's some awesome code in here. Although it took my computer 16 seconds to render that one pic... damn slow ass thing.

Anyway, is raytracing done in the same way as other... uhhh... "3d rendering stuff"? Like OpenGL or Direct3D? If it is, then ...
by deadmoap
Thu Jul 28, 2005 7:58 am
Forum: General Discussion
Topic: Console mouse coordinates?
Replies: 3
Views: 2297

Yesssss I did it! Here's the complete source:

OpenConsole()

Structure INPUT_RECORD
EventType.w
StructureUnion
MouseEvent.MOUSE_EVENT_RECORD
EndStructureUnion
EndStructure

Structure MOUSE
x.b
y.b
b.b
EndStructure

Declare GetMouseInput(*mouse.MOUSE)

Dim inpt.INPUT_RECORD(1)

hCon.w ...
by deadmoap
Thu Jul 28, 2005 5:41 am
Forum: General Discussion
Topic: Console mouse coordinates?
Replies: 3
Views: 2297

Console mouse coordinates?

Since I love DOS programs so much (too bad PB can't compile real DOS programs), and I'm completely bored and have absolultely nothing else to do whatsoever, I've decided to write my own... hmmm what do you call it... "set of console functions". You know, to make windows, text boxes, and menus in a ...
by deadmoap
Fri Aug 13, 2004 1:40 am
Forum: Coding Questions
Topic: Byte Limitation?
Replies: 12
Views: 2239

It's still using the same amount of numbers, but instead of 0 to 256, it's -128 to 128.
by deadmoap
Tue Aug 10, 2004 5:38 pm
Forum: Game Programming
Topic: Woot! I made another game! Starship359
Replies: 15
Views: 5313

Just wait till he adds the boses...

Heh, mabe for my next game I will have bosses and a different kind of enemy that does something differrent.

And it goes fast if you have a really fast refresh rate cause I forgot to set a limit :roll: :oops:

You overlooked a few small programming details ...
by deadmoap
Tue Aug 10, 2004 6:11 am
Forum: Coding Questions
Topic: AllocateMemory
Replies: 13
Views: 3126

The biggest downfall of PureBasic is the use of crappy ID numbers. I don't mean the actually handle to stuff, I mean the little parameter at the start of most functions where I am forced to use #PB_Any because I don't want to use the little kiddy ID number. It was a very BASIC idea, but I think the ...
by deadmoap
Tue Aug 10, 2004 5:51 am
Forum: Coding Questions
Topic: wparam and lparam with WaitWindowEvent()
Replies: 3
Views: 1850

Play with Windows like the big boys do and use SetWindowCallback().

And for your second question, I'm too tired to find the link that has a full list of all the constants used in PureBasic, but the Win32 API has TONS OF CONSTANTS. I mean TONS AND TONS. Search google for something like "win32 ...
by deadmoap
Tue Aug 10, 2004 5:46 am
Forum: Coding Questions
Topic: Patching
Replies: 24
Views: 5120

If you're a good programmer that not only knows how to program, but also how programs work and how they're put together, you can make it so that the users only have to download the changed parts of the executable.

I'm not going to explain how programs are put together. It's very complicated and you ...
by deadmoap
Tue Aug 10, 2004 5:27 am
Forum: Coding Questions
Topic: Mandatory VSCROLL on listview..
Replies: 9
Views: 2244

Apparently, resizing the gadget gets rid of the "dead" spot at the bottom where the HSCROLL was.

If OpenWindow(0, 0, 0, 250, 170, #PB_Window_SystemMenu | #PB_Window_ScreenCentered,"ListView Forced VScroll")
CreateGadgetList(WindowID(0))
ListViewGadget(0, 10, 10, 230, 130, #LBS_DISABLENOSCROLL ...
by deadmoap
Fri Aug 06, 2004 9:23 pm
Forum: Coding Questions
Topic: Word wrapping in an editor gadget?
Replies: 2
Views: 1105

Ah yes... now I wont piss the users off by not word wrapping the extra info box.
by deadmoap
Fri Aug 06, 2004 8:45 pm
Forum: Coding Questions
Topic: Working Pixel to Twips conversion?
Replies: 11
Views: 4088

Edwin Knoppert wrote:Note that value IS a float.
Four decimal points off either way isn't going to ruin the whole picture.
by deadmoap
Fri Aug 06, 2004 8:41 pm
Forum: Coding Questions
Topic: Word wrapping in an editor gadget?
Replies: 2
Views: 1105

Word wrapping in an editor gadget?

I have an editor gadget that I need to be word wrapped. I'm very unfamiliar with most of the Windows API, especially gadget controlling. That's one of the reasons why I bought PB. But how do I get it to word wrap?
by deadmoap
Fri Aug 06, 2004 5:55 pm
Forum: Coding Questions
Topic: Working Pixel to Twips conversion?
Replies: 11
Views: 4088

Here are two functions to get the current Twips per pixel:

#LOGPIXELSX=88
#LOGPIXELSY=90

Procedure GetTwipsPerPixelX()
hDC=GetDC_(GetDesktopWindow_())
TwipsPerPixelX=1440/GetDeviceCaps_(hDC,#LOGPIXELSX)
ReleaseDC_(GetDesktopWindow_(),hDC)
ProcedureReturn TwipsPerPixelX
EndProcedure

Procedure ...