Page 1 of 6 1 2 3 4 5 ... LastLast
Results 1 to 15 of 79
  1. #1
    Sergeant
    Reputation
    11
    Join Date
    Jun 2012
    Posts
    35
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0

    [AutoIt] All gear screenshot

    Programmers are always programmers. So, after my job (as programmer) I returned to home and ... started to write a programm.
    So, all this script do is doing screenshot of all your gear and compile it to one pretty screenshot(regarding sizes). I did not find such script anywhere, so I hope it will be usefull to someone.
    In new version you can also add random items.

    Instruction:
    0! If you have x64 system, search for ImageSearchDLL.dll in your Windows dir (often C:\Windows). If you does not have it extract and copy it there: https://www.dropbox.com/s/izscspvgl9...eSearchDLL.rar

    1. Download current version (below) (exe, pics + source).
    2. Build, run or just run exe.
    3. Open Diablo in FULLSCREEN WINDOWED 1920x1080, 1920x1200.
    4. Choose 'Auction house', 'Sell' tab (where you can see stash and your gear).

    If you want to make just your equiped gear:
    5. Press '='.
    5.1. Choose 'yes' if you need numbers.
    5.2. Wait until 'Done!' message appears.
    6. In your script location you will find 'gear_screenshot.jpg' with you gear.

    if you want you want to add random items:
    5. Hover an item and press "0". Message "Item #... added". Press "Ok". Do it with all items you need.
    6. Press "s".
    7. Choose 'yes' if you need numbers.
    8. Wait until "Done!" message appears. Screenshot name is "item_screenXX-XX.jpg".

    Versions:
    V. 1.5 : https://www.dropbox.com/s/7wjmvig1zh...eenshotv15.rar
    V. 1.4 : https://www.dropbox.com/s/gm8rzjg5z0...eenshotv14.rar
    V. 1.3 : https://www.dropbox.com/s/hitbco1vor...eenshotv13.rar
    (Decided to provide only one version till it works)

    I don't sure that it will work perfectly, so I hope you will tell me about any problems.
    Suggestions are always welcome.

    Example of my gear:


    Example of random items:


    If you need another resolution:
    1. Find out coordinates of every equipped item. (You can do it with "Autoit Window Info", need to install autoit).
    2. Make a bmp screenshot of one item. Start script, on "Sell" tab, hover an item and press "=":
    https://www.dropbox.com/s/o58sxt2gtw...es_example.exe
    or (source):
    Code:
    #include <ScreenCapture.au3>
    #include <WinAPI.au3>
    #include <GDIPlus.au3>
    
    HotKeySet("=","Start") 
    $start = 0
    While Not($start)
    WEnd
    _GDIPlus_Startup()
    _ScreenCapture_Capture("res_example.bmp", 0, 0, @DesktopWidth, @DesktopHeight, false)
    MsgBox(0,'End','Done!')
    
    Func Start()
    	$start = 1
    EndFunc
    3. Send me coordinates and "res_example.bmp" screenshot.

    If you got an error:
    1. Please tell me: your OS (name, 32 or 64bit), your resolution.
    2. What error do you see.
    2. Send me a BMP screenshot of crushing gear. You can use this code to generate screenshots and to choose right from it
    Code:
    #include <ScreenCapture.au3>
    #include <WinAPI.au3>
    #include <GDIPlus.au3>
    
    HotKeySet("=","Start") 
    $start = 0
    While Not($start)
    WEnd
    _GDIPlus_Startup()
    Global $coords[15][2] = [[1172,300],[1172,300],[1265, 278],[1331,316],[1170,393],[1262,374],[1361, 411],[1166, 475],[1265, 440],[1361, 480],[1159, 557],[1257, 500],[1266, 571],[1357, 562]]
    Global $gX=0, $gy=0, $ss[14], $hs[14], $buff[14]
    For $i = 1 To 13
    	MouseMove($coords[$i][0], $coords[$i][1], 0)
    	Sleep(300)
    	$ss[$i] = _ScreenCapture_Capture($i&".bmp", 0, 0, @DesktopWidth, @DesktopHeight, false)
    Next
    
    Func Start()
    	$start = 1
    EndFunc
    (Sorry for lame English, I'm not native speaker)
    Last edited by Kroning; 08-04-2012 at 04:58 AM.

  2. #2
    Master Sergeant
    Reputation
    10
    Join Date
    Jun 2012
    Posts
    114
    CoreCoins
    170

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Wow this is going to be so useful for people trying to sell their gear. Ill test it out later. It would help if you include a virus scan report.

    Sent from my GT-I9300T using Tapatalk 2

  3. #3
    Member
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    11
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Good idea and the file seems clean.
    However this is the output whenever I run the program on my inventory (it properly hovers over all my items, but then produces this)

  4. #4
    Member
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    11
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    I deserved to be ridiculed for running it in fullscreen instead of fullscreen windowed, but even with that fixed i get something similar.

  5. #5
    Sergeant
    Reputation
    11
    Join Date
    Jun 2012
    Posts
    35
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Hmm. Just tested on my notebook with Win7 x64. Not a black screenshot but it's not good. Looks like imagesearch does not work there.
    Do you have x64 OS too?

    On my desktop with XP x86 work fine.

  6. #6
    Member
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    11
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Quote Originally Posted by Kroning View Post
    Hmm. Just tested on my notebook with Win7 x64. Not a black screenshot but it's not good. Looks like imagesearch does not work there.
    Do you have x64 OS too?

    On my desktop with XP x86 work fine.
    Yes I am running 64 bit windows 7
    Thanks for the response, hopefully we can get this working. its an awesome idea!

    EDIT:
    Got it working by limiting the search range
    _ImageSearchArea("pics\ucorner.jpg", 0, (@DesktopWidth*0.3), 0, (@DesktopWidth*0.7), (@DesktopHeight*0.6), $gX, $gY, '50')
    _ImageSearchArea("pics\bcorner.jpg", 0, (@DesktopWidth*0.3), 0, (@DesktopWidth*0.7), (@DesktopHeight*0.6), $gX, $gY, '30')
    Good luck!
    Last edited by DBXO; 07-14-2012 at 07:06 PM.

  7. #7
    Sergeant
    Reputation
    11
    Join Date
    Jun 2012
    Posts
    35
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Quote Originally Posted by DBXO View Post
    Yes I am running 64 bit windows 7
    Thanks for the response, hopefully we can get this working. its an awesome idea!

    EDIT:
    Got it working by limiting the search range


    Good luck!
    Nice!
    Though, on my notebook it doesn't work. I read that there are some mess with dlls (no dlls on x64, must find it). And even with it I can not do anything.
    I decide to make another script which will not use imagesearch, just pure build-in PixelSearch. For those unlucky ike me. =)

    But I'm glad it works for you anyway. =)

  8. #8
    Member chancity's Avatar
    Reputation
    148
    Join Date
    Jun 2012
    Posts
    764
    CoreCoins
    1

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Cool nice use of imagesearch, I was actually thinking about making something similar just didn't have a good idea of how to just capture the item box.

  9. #9
    Member
    Reputation
    1
    Join Date
    May 2012
    Location
    Malaysia
    Posts
    36
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Quote Originally Posted by DBXO View Post
    I deserved to be ridiculed for running it in fullscreen instead of fullscreen windowed, but even with that fixed i get something similar.
    same here, windows 7 SP1 x64. Only work when I "Run as Admin" but comes out with this picture.

  10. #10
    Sergeant
    Reputation
    11
    Join Date
    Jun 2012
    Posts
    35
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Quote Originally Posted by junclj View Post
    same here, windows 7 SP1 x64. Only work when I "Run as Admin" but comes out with this picture.
    Have you tried this?
    Quote Originally Posted by DBXO View Post
    EDIT:
    Got it working by limiting the search range
    _ImageSearchArea("pics\ucorner.jpg", 0, (@DesktopWidth*0.3), 0, (@DesktopWidth*0.7), (@DesktopHeight*0.6), $gX, $gY, '50')
    _ImageSearchArea("pics\bcorner.jpg", 0, (@DesktopWidth*0.3), 0, (@DesktopWidth*0.7), (@DesktopHeight*0.6), $gX, $gY, '30')
    Good luck!

  11. #11
    Sergeant
    Reputation
    11
    Join Date
    Jun 2012
    Posts
    35
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Well, I added new version (1.1) with some changes (tnx to DBXO). If anyone can test it it will be nice.

  12. #12
    Member
    Reputation
    1
    Join Date
    Sep 2009
    Posts
    107
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Just tested it. It only ended up taking a picture of some of my gear, missing a few pieces. Missing right ring, amulet, weapon boots and shield. using 1920x1080 in windowed fullscreen, was on sell table of AH.

  13. #13
    Member
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    11
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Quote Originally Posted by owned727 View Post
    Just tested it. It only ended up taking a picture of some of my gear, missing a few pieces. Missing right ring, amulet, weapon boots and shield. using 1920x1080 in windowed fullscreen, was on sell table of AH.
    For those of you running x64, heres the imagesearch dlls
    readme contained inside.
    ImageSearch.zip

    Owned, it sounds like some of your items might be outside of the search range. Those numbers were just quickly hacked together and worked for me, but if you have more item props or longer stat tags your item box might extend out of that search range. Try making it a little bit bigger and I bet it would work perfectly for you..

    Give
    _ImageSearchArea("pics\ucorner.jpg", 0, (@DesktopWidth*0.3), 0, (@DesktopWidth*0.8 ), (@DesktopHeight*0.8 ), $gX, $gY, '50')
    _ImageSearchArea("pics\bcorner.jpg", 0, (@DesktopWidth*0.3), 0, (@DesktopWidth*0.8 ), (@DesktopHeight*0.8 ), $gX, $gY, '30')
    a try.
    Last edited by DBXO; 07-15-2012 at 02:58 PM.

  14. #14
    Sergeant
    Reputation
    11
    Join Date
    Jun 2012
    Posts
    35
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Well. As I see, ImageSearch no for everyone. It's somewhat buggy and it hard to use on x64 systems. So I made another script with just PixelSearch.
    If we have a pixelhunt game, so it must be pixelhunt script. You can try this too. =)
    (V.2 at my post)

  15. #15
    Member
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    6
    CoreCoins
    0

    Trade Feedbacks

    Positive
    0
    Negative
    0
    Any chance you could do a version that supports the 1900x1200 resolution?

 

 
Page 1 of 6 1 2 3 4 5 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 10:55 PM. Powered by vBulletin® Version 4.2.0
Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO
vBulletin Optimisation by vB Optimise. Digital Point modules: Sphinx-based search

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254