martin Posted July 14, 2007 Posted July 14, 2007 As you said, if you can tell me a way to get those mouse pos i would like to add that in.Sorry, I don't understand that. Do you mean how to show the outline?BTW should "Dictionary" be "Directory"? 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.
Generator Posted July 14, 2007 Author Posted July 14, 2007 Sorry, I don't understand that. Do you mean how to show the outline?BTW should "Dictionary" be "Directory"?What i think you are talking about is, you press draw region, and you can draw until you like your region, and then press capture to get it. But in some way i have to get the mouse pos which i don't have any way in mine yet.About the typo, thanks for point that out.
martin Posted July 15, 2007 Posted July 15, 2007 What i think you are talking about is, you press draw region, and you can draw until you like your region, and then press capture to get it. But in some way i have to get the mouse pos which i don't have any way in mine yet.You do have the mouse position. When you press the Draw Region button the tooltip give the coords.I don't know how to draw the outline, but I would try making a popup window the size of the desktop that was transparent and draw the rectangle with a dotted line on it. As you move the mouse you have to erase and redraw continually. Or you could capture the whole desktop, show that as an image filling the screen so it looks like the desktop, then draw the rectangle on that.Or maybe, forget the clever drawing bit and change the order of the operations. The problem I have at the moment is that if you want to capture the whole screen you just press F12 say. But if you want to capture an area then you have to bring up the program, press Draw Region to define the region then press F12. Even though the radio button for draw region is checked it only remembers the last drawn region. It would be better for me if you have the radio button checked for a region, then when you press F12 it asks you to draw a region then copies that. Does that make sense? Because every time I want a region it might be different. Maybe I'm going a bit over the top here, so apologies if this seems a bit fanatical. I use a screen saver which I like and I've been using it, with updates, for years. But I think that yours could be developed to be better.I think it would be good to have a function OnAutoitExit where the settings are saved, because if I set the directory where I want the screenshots, and the file name, it is all forgotten the next time I run the progam, unless I've missed something. 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.
Generator Posted July 15, 2007 Author Posted July 15, 2007 You do have the mouse position. When you press the Draw Region button the tooltip give the coords.I don't know how to draw the outline, but I would try making a popup window the size of the desktop that was transparent and draw the rectangle with a dotted line on it. As you move the mouse you have to erase and redraw continually. Or you could capture the whole desktop, show that as an image filling the screen so it looks like the desktop, then draw the rectangle on that.Or maybe, forget the clever drawing bit and change the order of the operations. The problem I have at the moment is that if you want to capture the whole screen you just press F12 say. But if you want to capture an area then you have to bring up the program, press Draw Region to define the region then press F12. Even though the radio button for draw region is checked it only remembers the last drawn region. It would be better for me if you have the radio button checked for a region, then when you press F12 it asks you to draw a region then copies that. Does that make sense? Because every time I want a region it might be different. Maybe I'm going a bit over the top here, so apologies if this seems a bit fanatical. I use a screen saver which I like and I've been using it, with updates, for years. But I think that yours could be developed to be better.I think it would be good to have a function OnAutoitExit where the settings are saved, because if I set the directory where I want the screenshots, and the file name, it is all forgotten the next time I run the progam, unless I've missed something.I got that and it will be noted in.
martin Posted July 15, 2007 Posted July 15, 2007 I got that and it will be noted in.Ok.I've just looked at Toady's screen saver. He did a nice area selection method which is quite simple, maybe you could just do the same. 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.
Generator Posted July 15, 2007 Author Posted July 15, 2007 Ok.I've just looked at Toady's screen saver. He did a nice area selection method which is quite simple, maybe you could just do the same.The point of mouse drawing is more visualize, else i can just do like mouse click or hotkey which isn't the way i wanted.
GEOSoft Posted July 16, 2007 Posted July 16, 2007 Nice bit of scripting.@sshrum(I've been using SnagIt for years but that's not freeware).IrfanView is though. And it has good capture options. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
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