Search found 78 matches

by roachofdeath
Wed Mar 22, 2006 11:02 pm
Forum: Coding Questions
Topic: hooking a menu with API?
Replies: 0
Views: 789

hooking a menu with API?

Hi.

I'm using winAPI commands to insert a menu into another program. That works. Now I need it so if I click the menu item in the other program (there are no sub-menus) it will open a seperate program.

How would I go about doing this?

I'm trying to hook the notification message but i'm kind of ...
by roachofdeath
Sun Nov 27, 2005 6:16 pm
Forum: Coding Questions
Topic: Drawing on another window or above them all
Replies: 36
Views: 7287

Well, i'm not getting an answer, but i'm also leaving this forum anyways -- all i do is get harrassed. Anyways, i'm going to be gone for like 8 months because I got my computer and internet privilages taken away.

Bye
by roachofdeath
Sun Nov 27, 2005 5:18 am
Forum: Coding Questions
Topic: Drawing on another window or above them all
Replies: 36
Views: 7287

how about no dude, i'm actually making an aimer for my friend for a FPS game, and you know very well I stopped that shinanigan, heres the source:
#wMem=0
Global Mem.l
Mem = AllocateMemory(1024)

Procedure.l DesktopOutput()
PokeL(Mem, 1)
ProcedureReturn Mem
EndProcedure

Maus.Point ...
by roachofdeath
Sun Nov 27, 2005 4:48 am
Forum: Coding Questions
Topic: Drawing on another window or above them all
Replies: 36
Views: 7287

Is there a way to simply draw on the window from a givin HWND?

(i'm trying to get the topic back on topic from PB versions and who's the biggest a-hole ;))
by roachofdeath
Sat Nov 26, 2005 4:24 am
Forum: Coding Questions
Topic: Drawing on another window or above them all
Replies: 36
Views: 7287

Hold on, it didnt work after all :( I'm still looking for a solution.
by roachofdeath
Sat Nov 26, 2005 2:19 am
Forum: Coding Questions
Topic: Drawing on another window or above them all
Replies: 36
Views: 7287

No, but I think I figured it out, thanks ;) I threw in some API and it seemed to work good enough.
by roachofdeath
Fri Nov 25, 2005 3:46 am
Forum: Coding Questions
Topic: Drawing on another window or above them all
Replies: 36
Views: 7287

Hm, lemme check....


it's 3.92
by roachofdeath
Wed Nov 23, 2005 8:22 pm
Forum: Coding Questions
Topic: Drawing on another window or above them all
Replies: 36
Views: 7287

Drawing on another window or above them all

Hello,

I was trying to figure out how to draw a shape above all windows, or at least just on one.

StartDrawing with DesktopOutput worked at first, but then I brought up the other windows, the shape flickered, and it needs to be solid.

This is what I had:

#wMem=0
Global Mem.l
Mem ...
by roachofdeath
Thu Nov 10, 2005 5:57 pm
Forum: Coding Questions
Topic: Disable Windows keyboard?
Replies: 5
Views: 2189

You could just block all unput entirely:

Code: Select all

Procedure block()
 BlockInput_(1)
endprocedure

Procedure unblock()
 BlockInput_(0)
endprocedure
by roachofdeath
Thu Nov 03, 2005 3:01 am
Forum: Coding Questions
Topic: how to know the windows language?!!
Replies: 15
Views: 5946

You could use the GetLocaleInfo API Call, and retrieve the language rather easily. (You DO mean speaking language, right?)
by roachofdeath
Wed Nov 02, 2005 3:16 am
Forum: Tricks 'n' Tips
Topic: Skinning the Window with Regions
Replies: 2
Views: 2494

Skinning the Window with Regions

Code updated For 5.20+

This is a simple set of procedures to skin the window into an ellipse, rectangle, or round rectangle. It only needs to be called once (it does not need to be under repeat). It will only work under Windows Operating Systems.

; SkinWindow with Regions
; by roachofdeath
; 11 ...
by roachofdeath
Sun Oct 30, 2005 4:11 am
Forum: Coding Questions
Topic: Question about GetSystemDirectory
Replies: 5
Views: 2320

Hm, they are the same for me.. maybe not for others though...

Code: Select all

buffer.s = ""
ebuffer.s = ""
GetSystemDirectory_(buffer.s,#MAX_PATH)
GetEnvironmentVariable_("Path",ebuffer.s,#MAX_PATH)
Debug buffer.s
Debug ebuffer.s
by roachofdeath
Mon Oct 17, 2005 2:22 am
Forum: Tricks 'n' Tips
Topic: Get PowerScheme Procedure
Replies: 0
Views: 1253

Get PowerScheme Procedure

Code updated For 5.20+

this is a very simple procedure, but works nonetheless.
It finds the power scheme name and description, even if you have a custom scheme.

Procedure.s Reg_GetValue(topKey, sKeyName.s, sValueName.s, ComputerName.s)
lpData.s ;Reg_GetValue() by NoahPhense
GetValue.s =""
If ...
by roachofdeath
Sun Oct 16, 2005 8:02 pm
Forum: Coding Questions
Topic: Getting file type
Replies: 6
Views: 2224

Doh, you beat me to it freak ;)

If you want to do it the long way, find the extention in the registry, and get the (Default) value of it. Then search for the default value in the registry, and there will be the file type.
by roachofdeath
Sat Oct 15, 2005 3:29 am
Forum: Coding Questions
Topic: Find pixel color on screen?
Replies: 10
Views: 3714

Seems logical, but a lot easier (and probably easier for the computer too) to just use the API call ;)