Toady Posted July 15, 2007 Author Share Posted July 15, 2007 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 in your own scripts using your 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...
martin Posted July 15, 2007 Share Posted July 15, 2007 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 in your own scripts using your mouse.I really like this Toady, good job! For me it is much better when I use the mouse button rather than 's'. I prefer that you don't have to start in the top left so I changed this $lefts = Order($firstCoord[0],$currCoord[0]);added $tops = Order($firstCoord[1],$currCoord[1]);added _API_MoveWindow($SELECT_H,$lefts[0],$tops[0],$lefts[1],$tops[1]);changed line ;and added this Func Order($a,$b) Dim $res[2] If $a < $b Then $res[0] = $a $res[1] = $b - $a Else $res[0] = $b $res[1] = $a - $b EndIf Return $res EndFunc Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Toady Posted July 15, 2007 Author Share Posted July 15, 2007 Cool the reason that i didn't choose the mouse button is because if you are trying to select a region with text, the mouse highlights the text, screwing up your screenshot. I will add your code to fix the order. 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...
martin Posted July 15, 2007 Share Posted July 15, 2007 Cool the reason that i didn't choose the mouse button is because if you are trying to select a region with text, the mouse highlights the text, screwing up your screenshot.Yes I noticed that. I think the way to fix it is to first take a screen shot of the whole desktop and show that as though it's the desktop, and then copy from the copy. (Easy to say of course.) Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Toady Posted July 15, 2007 Author Share Posted July 15, 2007 UPDATE: Region_Capture and RubberbandSelect scripts. You can now select a region in any direction you like. There is no top-left to bottom-right restriction anymore. Thanks Martin for the idea. 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 24, 2007 Author Share Posted July 24, 2007 Noticed people where having trouble with certain scripts. Is this complete? 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 August 10, 2007 Share Posted August 10, 2007 (edited) Here is my tribute to your great work.. Thanks to your help once again, It is working like I had hoped... http://www.autoitscript.com/forum/index.ph...mp;#entry386290I took your region capture and joined with ptrex ocr to make an awesome application.. Hope you guys don't mid I put my version on my signature but the whole thing has yours and ptrex names all over it. Edited August 12, 2007 by gesller Link to comment Share on other sites More sharing options...
fuwi Posted September 3, 2007 Share Posted September 3, 2007 @Toady thanks for this nice script! I've noticed 2 minor problems: 1. runnig Region_Capture in AutoIt 3.2.4.9 - the blue selection box is shown, running in the latest public release (3.2.6.0) - no selection box is shown 2. if the Region_Capture-GUI is visible, then an other application starts and overlap the Region_Capture-GUI, then the other application close (or minimize) the Region_Capture Preview-Window disappears. A click in the filelist (or minimize/maximize the Region_Capture-GUI) brings the Preview-Window back (the second problem is independent to the AutoIt-Version) fuwi Link to comment Share on other sites More sharing options...
Toady Posted September 3, 2007 Author Share Posted September 3, 2007 @Toadythanks for this nice script! I've noticed 2 minor problems: 1. runnig Region_Capture in AutoIt 3.2.4.9 - the blue selection box is shown, running in the latest public release (3.2.6.0) - no selection box is shown2. if the Region_Capture-GUI is visible, then an other application starts and overlap the Region_Capture-GUI, then the other application close (or minimize)the Region_Capture Preview-Window disappears. A click in the filelist (or minimize/maximize the Region_Capture-GUI) brings the Preview-Window back(the second problem is independent to the AutoIt-Version)fuwiThanks for the feedback.Your answers in order.1. I wrote this script before the 3.2.6.0 release. Every new release is going to break something. I can fix this in my own time.2. I know about the disappearing preview box. I figured that its just a preview, not something crucial so I never attempted to fix that. 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