Search found 36 matches

by TimmyTom
Fri Mar 25, 2005 11:32 pm
Forum: Coding Questions
Topic: ComboBox and detecting index change
Replies: 10
Views: 2547

ComboBox and detecting index change

I have a single combobox that i need to detect just a change in index for (ie: the user selects a new entry in the combobox).

I tried with EventType() and #PB_EventType_Change but that doesn't seem to work.

Any ideas?

Tim
by TimmyTom
Sun Mar 06, 2005 9:54 am
Forum: Coding Questions
Topic: Thread problem
Replies: 2
Views: 987

Nope, just a few ReadProcessMemory() things in there, no strings.

Tim
by TimmyTom
Sat Mar 05, 2005 11:47 pm
Forum: Coding Questions
Topic: Callback, Windows being stupid? (or PB?)
Replies: 5
Views: 1481

Callback, Windows being stupid? (or PB?)


Procedure CheckFocus(WinID.l, message, wParam, lParam)
Result = #PB_ProcessPureBasicEvents
Select message
Case #WM_SETFOCUS
Debug "got focus"
Case #WM_KILLFOCUS
Debug "lost focus"
EndSelect
ProcedureReturn Result
EndProcedure


A simple callback to check focus.. you'd think...

What ...
by TimmyTom
Sat Mar 05, 2005 11:14 pm
Forum: Coding Questions
Topic: Thread problem
Replies: 2
Views: 987

Thread problem

My app has a thread running that checks memory addresses (of another app) from a linked list.

As long as i am in my own app, the thread runs fine.

The moment i switch to the app of which the thread is looking at the memory addresses, the thread will work still.. but after about a minute, the ...
by TimmyTom
Wed Feb 23, 2005 4:32 am
Forum: Coding Questions
Topic: Timing a thread
Replies: 3
Views: 1115

I can't believe i didn't think of that.. :oops:

Thanks dude.

Timmy, the idiot
by TimmyTom
Wed Feb 23, 2005 3:13 am
Forum: Coding Questions
Topic: Timing a thread
Replies: 3
Views: 1115

Timing a thread

I need to execute stuff in a seperate thread about very two seconds, instead of having it repeat over and over without pause.

i tried with ElapsedMillisecs() and this works, until one goes to a different program and come back, then it has magically stopped timing which makes my thread not do ...
by TimmyTom
Mon Feb 21, 2005 12:48 am
Forum: Coding Questions
Topic: byte in PureBasic .. -127 to 127?
Replies: 2
Views: 1101

byte in PureBasic .. -127 to 127?

Isn't a byte supposed to be 0 to 255?

I am trying to write an app that searches in memory of a process (this all works just fine).. but when i search for '100' in memory (64 in hex) Purebasic tells me it's -56 ..

I am mystified here :)

Tim
by TimmyTom
Wed Jan 12, 2005 6:54 pm
Forum: Coding Questions
Topic: Mouse click detection
Replies: 11
Views: 3522

Yeah, works great! thanks for that.. guess i'll need to get another Win32 API reference, as this one stinks :)

Tim
by TimmyTom
Wed Jan 12, 2005 6:43 pm
Forum: Coding Questions
Topic: Mouse click detection
Replies: 11
Views: 3522

Really? hmm, my win32 api reference doesn't mention one word about that.. but, worthy of testing :)

Thanx :)

Tim
by TimmyTom
Wed Jan 12, 2005 6:40 pm
Forum: Coding Questions
Topic: Mouse click detection
Replies: 11
Views: 3522

Yeah, i am doing something like that now Paul, seems to be the easiest solution, even if i would rather not deal with window events at all.

I am actually using a windowed OpenGL screen in this case.

Tim
by TimmyTom
Wed Jan 12, 2005 6:03 pm
Forum: Coding Questions
Topic: Mouse click detection
Replies: 11
Views: 3522

So, i am gathering there is no easy way to do this. A simple MouseDown() function ala Blitz isn't possible in PureBasic without going the difficult way. Pretty useless if you ask me. PureBasic is a nice language for simple apps, but that seems to be the extend of it.. pity.

Mind you, i wouldn't be ...
by TimmyTom
Wed Jan 12, 2005 6:10 am
Forum: Coding Questions
Topic: Mouse click detection
Replies: 11
Views: 3522

Mouse click detection

I need to detect mouse click, and then continuously (unlike PB's screwed up Event system that gives me ONE event, no matter how long you hold down or how hard you hit your mouse with a brick (which i started doing after seeing how screwed up PB's mouse event handling is))

I also do not want to use ...
by TimmyTom
Mon Jan 03, 2005 7:29 am
Forum: Coding Questions
Topic: Structures and such
Replies: 5
Views: 1423

I actually do need it as a pointer inside the structure, otherwise i have to write EIGHT times as much code for what i am doing!

Tim
by TimmyTom
Mon Jan 03, 2005 7:01 am
Forum: Coding Questions
Topic: Structures and such
Replies: 5
Views: 1423

Structures and such

I've been fighting with this all day now.. please assist if possible.

In delphi i'd do this:


TGridPoint = record
P : TGLCoord;
Value : FLoat;
end;
PGridPoint = ^TGridPoint;
TGridCube = record
GridPoint : Array [0..7] of PGridPoint;
end;


(^ in the Delphi code is a pointer)

Now, i have ...
by TimmyTom
Mon Jul 26, 2004 4:52 am
Forum: Coding Questions
Topic: Multi-line StringGadget and 'going to the bottom'
Replies: 4
Views: 2534

Awesome, that works..

Thanks a lot!

Timmy