Toady Posted July 12, 2007 Share Posted July 12, 2007 (edited) I decided to post this script I wrote for a project I was working on at work. The cool thing about this is two things.1. Rubberband selection box.2. Preview the images that you have captured.You need Auto3Lib to run this script. This is not a continuous project I am working on, just something I made for use at work. So change/modify anything you want. I will not update this or make any changes. Have fun!*How to uses*1. Enter name of image.2. Select the Format.3. Click "Select Region"4. Press the S key for starting position.5. Move mouse to create a selection box.6. Press the S key again for ending position.7. Your image is saved in the "images" folder, same directory as this script.I noticed that people really like the way this program lets the user select the region so I wrote a separate script for easily selecting a region using a rubberband like style.RubberbandSelect.au3Region_Capture.au3 Edited July 15, 2007 by Toady www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted July 12, 2007 Moderators Share Posted July 12, 2007 I must have missed an update of the A3L because it threw an error of unrecognized function name: _GDIP_GraphicsDrawImageRectRect Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
gseller Posted July 12, 2007 Share Posted July 12, 2007 Doesn't work for me, I found and installed the sticky Auto3Lib and get the latest and get to 4. Press the S key for starting position. and s and move mouse and s does nothing. Am I doing something wrong? Link to comment Share on other sites More sharing options...
Toady Posted July 12, 2007 Author Share Posted July 12, 2007 Doesn't work for me, I found and installed the sticky Auto3Lib and get the latest and get to 4. Press the S key for starting position.and s and move mouse and s does nothing.Am I doing something wrong?You just press the S key (down and up).. do not hold down the S key while you drag mouse..1. Pressed S key down then up.2. Move mouse to other corner.3. Press S key key down then up. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Gif Posted July 12, 2007 Share Posted July 12, 2007 You just press the S key (down and up).. do not hold down the S key while you drag mouse..1. Pressed S key down then up.2. Move mouse to other corner.3. Press S key key down then up.it works for me fine, nice job , bt i wonder if you could replace the S with a mouseclick, match more .... nice that way Link to comment Share on other sites More sharing options...
gseller Posted July 12, 2007 Share Posted July 12, 2007 You just press the S key (down and up).. do not hold down the S key while you drag mouse..1. Pressed S key down then up.2. Move mouse to other corner.3. Press S key key down then up.Sorry, I should have made myself clearer. I pressed the s down and up and then moved mouse and s down and up and it does't do anything. I tried all sorts of senarios and none work. A nice looking GUI but won't work on my machine. LOL Link to comment Share on other sites More sharing options...
Toady Posted July 12, 2007 Author Share Posted July 12, 2007 it works for me fine, nice job , bt i wonder if you could replace the S with a mouseclick, match more .... nice that wayI did have a mouseclick, but that ruined the screenshots im some cases, hard to explain. But if you prefer, you can change the "83" in the _IsPressed() function to "1". www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Toady Posted July 12, 2007 Author Share Posted July 12, 2007 Sorry, I should have made myself clearer. I pressed the s down and up and then moved mouse and s down and up and it does't do anything. I tried all sorts of senarios and none work. A nice looking GUI but won't work on my machine. LOLHmm, do you even see a blue selection box when moving the mouse? www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Zedna Posted July 12, 2007 Share Posted July 12, 2007 Looks very nice (not yet tested). Good job. Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search Link to comment Share on other sites More sharing options...
lod3n Posted July 12, 2007 Share Posted July 12, 2007 gesller, you're not running it in Beta mode are you? Auto3Lib only works in production mode. Also, are you running Win2000 or greater? GDI+ is not included by Microsoft in Windows versions prior to that. [font="Fixedsys"][list][*]All of my AutoIt Example Scripts[*]http://saneasylum.com[/list][/font] Link to comment Share on other sites More sharing options...
idusy Posted July 13, 2007 Share Posted July 13, 2007 Hmm, do you even see a blue selection box when moving the mouse?No, it does nothing. I'm getting the same thing as geseller. Link to comment Share on other sites More sharing options...
Toady Posted July 13, 2007 Author Share Posted July 13, 2007 I dunno why it is not working for you. I ran this on Win2000, XP, and Vista. All using latest version of Autoit and Auto3Lib, it works fine. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Generator Posted July 13, 2007 Share Posted July 13, 2007 I dunno why it is not working for you. I ran this on Win2000, XP, and Vista. All using latest version of Autoit and Auto3Lib, it works fine.It acts weird on me too, like gseller.This was what i did:I run the programPut in filenameClick select regionGUI flashed a sec and then it went unresponding Link to comment Share on other sites More sharing options...
gseller Posted July 13, 2007 Share Posted July 13, 2007 Sorry, was at work.. Yep, I am runnning XP and 3.2.4.9.. Link to comment Share on other sites More sharing options...
Toady Posted July 13, 2007 Author Share Posted July 13, 2007 It acts weird on me too, like gseller.This was what i did:I run the programPut in filenameClick select regionGUI flashed a sec and then it went unrespondingDoes a Tooltip get displayed right after you clicked "Select Region"? www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Toady Posted July 13, 2007 Author Share Posted July 13, 2007 Updated: It should work now, please give it a try. Thanks www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
idusy Posted July 13, 2007 Share Posted July 13, 2007 I don't get any kind of box while selecting the region, but it works. Nice script. Link to comment Share on other sites More sharing options...
Toady Posted July 13, 2007 Author Share Posted July 13, 2007 I don't get any kind of box while selecting the region, but it works. Nice script.Cool, good that it works. You should see a blue transparent selection box when selecting the region. This is crazy, I have tried it on 5 different pc's so far, works fine for them. Something is screwy here.. www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
gseller Posted July 13, 2007 Share Posted July 13, 2007 Works Great now.. I like the tooltip tells you when it is ready for you to push s.. Very nice work... Link to comment Share on other sites More sharing options...
Toady Posted July 13, 2007 Author Share Posted July 13, 2007 Works Great now.. I like the tooltip tells you when it is ready for you to push s.. Very nice work... Suuuuweet! Thx www.itoady.com A* (A-star) Searching Algorithm - A.I. Artificial Intelligence bot path finding Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now