QuickSnap : Released Oct 12, 2006

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post 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
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post 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
User avatar
Blue
Addict
Addict
Posts: 966
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Post 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...
PB Forums : Proof positive that 2 heads (or more...) are better than one :idea:
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post 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.
User avatar
Blue
Addict
Addict
Posts: 966
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Post 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...)
PB Forums : Proof positive that 2 heads (or more...) are better than one :idea:
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Quicksnap 1.0 released. Setup and all Sourcecode files can be downloaded in the first post.
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post 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.
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post 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.
User avatar
Blue
Addict
Addict
Posts: 966
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Post 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.
PB Forums : Proof positive that 2 heads (or more...) are better than one :idea:
Character
Enthusiast
Enthusiast
Posts: 337
Joined: Mon Aug 07, 2006 3:51 pm
Location: Netherlands

Post 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:
Cessante causa cessat effectus
SeaDragon
New User
New User
Posts: 1
Joined: Tue Aug 15, 2006 5:03 pm
Location: The Netherlands

Post 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:
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Link updated.
BERESHEIT
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Post 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.
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post 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
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
yrreti
Enthusiast
Enthusiast
Posts: 546
Joined: Tue Oct 31, 2006 4:34 am

Post 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.
Post Reply