Blizzhackers

Return of the Jedi

* Login   * Register    * FAQ    * Search

Join us on IRC: #bh@irc.synirc.net (or Mibbit Web IRC)


MuleFactory


It is currently Thu May 23, 2013 4:19 am


All times are UTC [ DST ]





Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: AutoHotkey Item Screenshoter - Never crop a screenshot again
PostPosted: Tue Jun 05, 2012 1:11 am 
 
User
User

Joined: Fri Jun 01, 2012 7:58 pm
https://dl.dropbox.com/u/4964930/ItemGrab.zip

- Install AutoHotkey
- Unzip anywhere and run item_grab.ahk

Features:
- Mouse over item, hit F7, mouse over next item F7 again
- Creates files item_0.png item_1.png item_2.png etc etc with each press
- Works about 90% of the time, if it's working worse for you, just replace item_top.bmp and item_bot.bmp with your own version. Take a screenshot of an item you're viewing and grab the top left 8x8 corner pixel area and bottom right 8x8 corner pixel area
- The diablo curses will flash off for a second if the screenshot worked and obviously a file will be created as well
- Screenshot over 100 items in under a minute, no cropping necessary

Sample Output:
http://i.imgur.com/EYqD8.png



If anyone has ideas for how to improve the reliability of the capture I'd be happy to implement them. I've found that this is the most effective method so far in my testing (using the corners with a 10 pixel fuzziness).

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Tue Jun 05, 2012 8:42 am 
 
User
User
User avatar

Joined: Thu Aug 27, 2009 7:10 am
Good work.

_________________
PowerfulOne@D2JSP
Doug@GamersVault/OG

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Tue Jun 05, 2012 11:21 pm 
 
User
User
User avatar

Joined: Fri Aug 08, 2008 2:33 pm
That's pretty cool.

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Tue Jun 05, 2012 11:34 pm 
 
Moderator
Moderator

Joined: Wed Jul 23, 2003 4:08 pm
Location: Ontario, Canada
Sweet.

Now add another key function that when pressed adds the currently-hovered-over item stats to the same image as the previous.

Example:
I want a screenshot of all of my gear.
Instead of hitting F7 on each item, and uploading multiple images (or using viewtopic.php?f=237&t=490025), I hit F7 on the first item, then F8 on my other items I want added to the "package". Another cool addition would be to have them auto labelled (1, 2, 3, 4, etc) how viewtopic.php?f=237&t=490025 does currently.
The end result would be a single image with all of my gear's stats ready to be uploaded for selling/showing without touching an image editor.

_________________
Image

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Wed Jun 06, 2012 12:29 am 
 
User
User

Joined: Fri Jun 01, 2012 7:58 pm
By the way, for uploading multiple images you can just drag and drop all of them onto your browser window and imgur will add them all to a single album. No need to do "individual" uploads. The gallery feature also numbers them for you (just look at the URL).

I'll look into adding those features if I happen to need them myself.

Here's what it looks like with an imgur gallery. Look at the URL bar for the item #.

http://imgur.com/a/3G86s#0

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Wed Jun 06, 2012 7:31 am 
 
User
User

Joined: Mon Jun 27, 2011 2:46 am
imgur has a handy API i've used before: http://api.imgur.com/

nice work btw

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Wed Jun 06, 2012 9:41 pm 
 
User
User

Joined: Wed Jun 06, 2012 9:39 pm
I don't know what I'm getting wrong, but is there a setting in the game it has to be on for this to work?
It's not working for me and also I'm on a bootcamp Windows aka Mac

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Wed Jun 06, 2012 9:46 pm 
 
User
User

Joined: Fri Jun 01, 2012 7:58 pm
Semetric, try creating your own item_top and item_bot from a screenshot of an item in game on your computer. Grab the top left corner gray area and bottom right corner gray area. My images may be from a very different resolution and therefore may not work well.

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Thu Jun 07, 2012 3:25 am 
 
User
User

Joined: Fri Jun 11, 2010 8:58 pm
I can't seem to get this at all no matter what I do. It does nothing when I hit F7. I am running at 2560x1600 and have tried replacing the top/bot bmps. I would appreciate your feedback Fungi

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Thu Jun 07, 2012 6:07 am 
 
User
User

Joined: Fri Jun 01, 2012 7:58 pm
It's all about getting those top/bot bmps right.

https://dl.dropbox.com/u/4964930/item_grab_ex.png

I've outlined in red the section to grab (only what's inside the red line) on your own screenshots. You can also try changing *10 to *15 or *20 which will make it less restrictive but may instead end up grabbing random parts of your screen.

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Sat Jun 09, 2012 1:43 am 
 
User
User

Joined: Tue Nov 25, 2003 7:22 am
Can't get it work.. tried taking my own image top/bot bmps and also increased the 10 to 20

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Sun Jun 10, 2012 1:53 am 
 
User
User

Joined: Sun Jun 10, 2012 1:51 am
Ive tried using this, replaced the images with my own, and the image is saved to the clipboard. I've tried editing the script to save it to the file, but not having any luck.. not really sure how to debug AHK scripts, everything looks fine...
Any suggestions?

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Sun Jun 10, 2012 4:53 pm 
 
User
User

Joined: Sat Jun 07, 2003 6:49 pm
Hi, I'm having trouble getting this script to work. I downloaded AutoHotKey and the scripts. I run the script with autohotkey but when I press F7..nothing happens. Is there some part I need to edit?

Thanks!

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Sun Jun 10, 2012 7:06 pm 
 
User
User

Joined: Fri Jun 01, 2012 7:58 pm
When you hit F7, if it worked, the item files appear in the same directory as the script named item_#.png. I can't help you much beyond that the code is very simple:

- Find image of the top left corner
- Find image of the bottom right corner
- Screenshot

There's not much else to it, everything else depends on whether or not the pixels in those corners vary enough to prevent you form making a generic top left and bottom right. It took me a few hours of trial and error before I found a set of images that worked OK for me, trial and error is really the only way to get this to work. If you're still having trouble, it might work better to turn off some graphics settings (not high textures, but some of the effects ones) I can't really say if this will help but theoretically it might.

Top
 Profile  
 Post subject: Re: AutoHotkey Item Screenshoter - Never crop a screenshot a
PostPosted: Sun Jun 10, 2012 11:26 pm 
 
User
User

Joined: Sat May 26, 2012 11:07 pm
Thanks for the script! doesn't work with some items though :(

Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron