Share your advanced PureBasic knowledge/code with the community.
Poshu
Enthusiast
Posts: 459 Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada
Post
by Poshu » Tue Mar 03, 2009 3:23 pm
This code seems to be broken somehow:
Error on line 34 ( If WindowFromPoint_(cp2\x,cp2\y) = hwnd ). I've tried If WindowFromPoint_(cp2) = hwnd which compile but add problem with the hot and cold state for button... I can't correct this by myself (T__T), could anyone give a look?
Arctic Fox
Enthusiast
Posts: 609 Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark
Post
by Arctic Fox » Tue Mar 03, 2009 3:41 pm
drgolf
Enthusiast
Posts: 106 Joined: Tue Mar 03, 2009 3:40 pm
Location: france
Post
by drgolf » Tue Mar 03, 2009 3:43 pm
try this
If WindowFromPoint_(cp2\x|cp2\y<<32) = hwnd
drgolf //
Poshu
Enthusiast
Posts: 459 Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada
Post
by Poshu » Tue Mar 03, 2009 5:33 pm
Ergh >.<; I shall try a little harder next time
netmaestro
PureBasic Bullfrog
Posts: 8451 Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada
Post
by netmaestro » Tue Mar 17, 2009 3:12 pm
BERESHEIT
mrjiles
Enthusiast
Posts: 238 Joined: Fri Aug 18, 2006 7:21 pm
Location: IL
Post
by mrjiles » Wed Jul 29, 2009 2:49 am
Getting an error (WindowFromPoint). Running 4.3, any ideas/update for this?
netmaestro
PureBasic Bullfrog
Posts: 8451 Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada
Post
by netmaestro » Wed Jul 29, 2009 2:53 am
Since v4.3 WindowFromPoint_() takes only one parameter instead of 2. It's no longer (x,y) anymore but ( x|(y<<32) ), or basically a quad with the low dword = x and the high dword = y. Hope this helps.
BERESHEIT
mrjiles
Enthusiast
Posts: 238 Joined: Fri Aug 18, 2006 7:21 pm
Location: IL
Post
by mrjiles » Wed Jul 29, 2009 3:06 am
Cool, that's what I found after searching but wasn't sure. Thanks for the speedy response!