Go figure? I can see the camera icon is generated in the data of the source, but I couldn't get it to run.
So I used a program to extract the icon from the exe file in the zip and saved as camera.ico. Now it runs.
I'm confused as to why the source part won't work for me.
PS, using PB4.3
QuickSnap : Released Oct 12, 2006
- Michael Vogel
- Addict
- Posts: 2807
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Hmm,
interesting, that the quick help of the PB4.3 shows wrong parameters for PtInRect_() and WindowFromPoint_() in the status line.
Took some seconds for me, to recognize, that a the coordinates have to be used as a point structure...
interesting, that the quick help of the PB4.3 shows wrong parameters for PtInRect_() and WindowFromPoint_() in the status line.
Took some seconds for me, to recognize, that a the coordinates have to be used as a point structure...
Code: Select all
xy.point
With xy
\x=DesktopMouseX()
\y=DesktopMouseY()
If \x<=Width-216
winx=\x+16
Else
winx=\x-216
EndIf
If \y<=Height-48
winy=\y+16
Else
winy=\y-32
EndIf
ResizeWindow(#wWindowMode,winx,winy,#PB_Ignore,#PB_Ignore)
w=WindowFromPoint_(@xy)
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Fred recommends:
I have a set of macros that I compile and keep in PureBasic\Residents, this is one of them:
So I've been using in my work.
Code: Select all
GetCursorPos_(@cp.POINT)
w = WindowFromPoint_(cp\x|(cp\y<<32))
Code: Select all
Macro MAKEPT(x,y)
x | (y<<32)
EndMacro
Code: Select all
WindowFromPoint_( MAKEPT(cp\x, cp\y) )
BERESHEIT