Page 7 of 8

Posted: Thu Oct 12, 2006 1:52 am
by netmaestro
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

Posted: Thu Oct 12, 2006 2:48 am
by netmaestro
Fixed a small bug where I forgot to unhook the spacebar and close the lowlevel keyboard hook dll.

Current version: RC2 Build 1.03

Posted: Thu Oct 12, 2006 6:02 am
by Blue
* * * 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...

Posted: Thu Oct 12, 2006 6:10 am
by netmaestro
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.

Posted: Thu Oct 12, 2006 6:37 am
by Blue
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.
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...)

Posted: Thu Oct 12, 2006 8:55 am
by netmaestro
Quicksnap 1.0 released. Setup and all Sourcecode files can be downloaded in the first post.

Posted: Thu Oct 12, 2006 9:07 am
by mskuma
Thanks alot netmaestro! Looks great. The windowsnap mode is cool. I've noticed sometimes you'll get the tooltip-like window notice in the grab as well, but I guess that's unavoidable. Nice setup too BTW.

Posted: Thu Oct 12, 2006 9:11 am
by netmaestro
Thanks. That's pretty easy to solve, there's a Delay(1) in the code just after the HideWindow() but I guess it's not long enough. I'll make it longer, you can adjust your source as well. To be reliable it may need Delay(100) or so.

Posted: Fri Oct 13, 2006 8:52 am
by Blue
Thank you. Very nice work and great result.

PS: where did you get that camera icon ?
I found a pretty similar one, but I'd like to have the very exact same.

Posted: Fri Oct 13, 2006 10:56 am
by Character
Nice software production Netmaestro!
Maybe one day, I might reach your programming level hehehe :?

Possible to include an expression of thanks in the help file for Blue?
Never seen such detailed and skilled beta testing... great example for the PB world.. :wink: :wink:

Posted: Tue Dec 30, 2008 8:55 am
by SeaDragon
The download link doesn't work anymore :(
netmaestro, could you upload the QuickSnap file to a new location? Thanks in advance ;-)

First post in more than 2 years! Talking about lurking :lol:

Posted: Tue Dec 30, 2008 9:16 am
by netmaestro
Link updated.

Posted: Tue Dec 30, 2008 1:38 pm
by luis
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.

Posted: Tue Dec 30, 2008 10:57 pm
by eddy
Macro for compatibility with PB 4.30

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

Posted: Wed Dec 31, 2008 4:35 am
by yrreti
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.