QuickSnap : Released Oct 12, 2006
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Yes, it's an annoying feature, isn't it? But - it's quite easy to fix, although it does require the use of a dll with QuickSnap, which is a minor pain. The code for the dll is posted with the main codeblock on the first page, you can compile it to a shared dll and make it available to QuickSnap. If it isn't available, QuickSnap won't enter WindowSnap mode.
Also the information window in WindowSnap mode stays visible on the screen.
Current version: RC2 Build 1.02
Also the information window in WindowSnap mode stays visible on the screen.
Current version: RC2 Build 1.02
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
* * * using build 1.03 * * *
• nice improvement: the description text positioning itself to remain visible adds a very pro touch to the whole operation. Nicely implemented. My car needs a repair. Do you do that too ?
• Rather than popping up a warning box (always so unpleasant!) when the DLL cannot be located, I think it would be more friendly to simply disable the menu entry (which I still believe would be better called "Auto detect mode" or something similar).
To my French ear, "WindowSnap" sounds more like something vaguely wild that makes a sharp noise or bites unexpectedly, rather than an intelligent function with the ability to frame pictures automatically...
• nice improvement: the description text positioning itself to remain visible adds a very pro touch to the whole operation. Nicely implemented. My car needs a repair. Do you do that too ?
• Rather than popping up a warning box (always so unpleasant!) when the DLL cannot be located, I think it would be more friendly to simply disable the menu entry (which I still believe would be better called "Auto detect mode" or something similar).
To my French ear, "WindowSnap" sounds more like something vaguely wild that makes a sharp noise or bites unexpectedly, rather than an intelligent function with the ability to frame pictures automatically...
PB Forums : Proof positive that 2 heads (or more...) are better than one 

- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
It might be actually friendlier to show the error box, as it tells the user what to do to make it available. Just dimming the menu item doesn't give any assistance. Also, there's a possiblility that the dll wasn't available three hours ago when the program was started, but the user drops it in and goes to use WindowSnap mode. Can't do it without exiting/restarting. I dislike error boxes generally, but in this case I think it's the lesser evil.
As to your car, the whimwhamferwifflewaffer is causing a malfunction at the junction. You may be wondering, "what's a whimwhamferwifflewaffer?". I can answer that: about $600.
As to your car, the whimwhamferwifflewaffer is causing a malfunction at the junction. You may be wondering, "what's a whimwhamferwifflewaffer?". I can answer that: about $600.
Oh ? Ok. When can I bring it in ? Do you take cheques ? I have a few really good ones, made of galvanized rubber. (They last forever...)netmaestro wrote:As to your car, the whimwhamferwifflewaffer is causing a malfunction at the junction. You may be wondering, "what's a whimwhamferwifflewaffer?". I can answer that: about $600.
PB Forums : Proof positive that 2 heads (or more...) are better than one 

- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
I just found this thread, and tried the program.
It's really really nice, works well and I like the interface more than those you can usually find in many commercial programs. The dimming of the screen and the selection window are very comfortable to use and also cool.
Great utility! I'll certainly use it!
Thank you for the source too.
It's really really nice, works well and I like the interface more than those you can usually find in many commercial programs. The dimming of the screen and the selection window are very comfortable to use and also cool.
Great utility! I'll certainly use it!
Thank you for the source too.
Macro for compatibility with PB 4.30
Add these lines to start of the source code.
Add these lines to start of the source code.
Code: Select all
;update for PB 4.30+
CompilerIf #PB_Compiler_Version>=430
Macro CreateGadgetList(WindowID)
UseGadgetList(WindowID)
EndMacro
Macro OpenWindow(Window, x, y, w, h, Title, Flags=0, ParentID=0, PB430_OpenWindow=OpenWindow)
PB430_OpenWindow(Window, x, y, w, h, Title, #PB_Window_NoGadgets | Flags, ParentID)
EndMacro
Macro PtInRect_(lpRect, x, y, PB430_PtInRect_=PtInRect_)
PB430_PtInRect_(lpRect, x+y<<32)
EndMacro
Macro WindowFromPoint_(x, y, PB430_WindowFromPoint_=WindowFromPoint_)
PB430_WindowFromPoint_(x+y<<32)
EndMacro
CompilerEndIf

Sorry to bother you netmaestro
I added eddy's Macro for compatibility with PB 4.30, and I created the dll file needed from SpaceHook.pb.
But when ever I try to compile and run Quicksnap.pb, I always get the error 'Icon file not found'.
Do you have any idea what's wrong, or if something is missing from the zip?
Thank you for your help.
I added eddy's Macro for compatibility with PB 4.30, and I created the dll file needed from SpaceHook.pb.
But when ever I try to compile and run Quicksnap.pb, I always get the error 'Icon file not found'.
Do you have any idea what's wrong, or if something is missing from the zip?
Thank you for your help.