pjotterke Posted February 23, 2007 Posted February 23, 2007 Hi Guys... Is it possible to make an printscreen of a screen you call up with auto it... so i ahve a script winwait ("JBA System 21", "Item Master Quick") ControlFocus ("", "", 5) Do Sleep(10) Until ControlFocus ("", "", 5) Send ("2") ControlFocus ("", "", 6) Do Sleep(10) Until ControlFocus ("", "", 6) send ("FIMASTER") ControlFocus ("", "", 7) Do Sleep(10) Until ControlFocus ("", "", 7) Send ("FI") Send ("{enter}") WinWaitActive ("JBA System 21", "Item Master Quick") Send ("{F12}") ControlFocus ("", "", 5) Do Sleep(10) Until ControlFocus ("", "", 5) send ("3") And in this script 2 windows pop up can i make a printscreen of window A before Window "b" come;s up?
pjotterke Posted February 23, 2007 Author Posted February 23, 2007 ok i al ready found it ("{PRINTSCREEN}") but is there an option that placese the pictures in a file ore something? so i can save them directly with out opening a program where is past them and save like paint?
PaulIA Posted February 23, 2007 Posted February 23, 2007 (edited) ok i al ready found it("{PRINTSCREEN}")but is there an option that placese the pictures in a file ore something?so i can save them directly with out opening a program where is past them and save like paint?The ScreenCap module in Auto3Lib does this for you and it does not require a DLL or add on program. Edited February 23, 2007 by PaulIA Auto3Lib: A library of over 1200 functions for AutoIt
James Posted February 23, 2007 Posted February 23, 2007 You could try: $screen = Send("{PRINTSCREEN}") Then saving the file with the $screen. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
jefhal Posted February 23, 2007 Posted February 23, 2007 ok i al ready found it("{PRINTSCREEN}")but is there an option that placese the pictures in a file ore something?so i can save them directly with out opening a program where is past them and save like paint?I use IrFanView to do the whole thing. You can run it from AutoIT using command line options to capture, resize, change color depth, etc., then save to a file of whatever format you wish. I also do this on remote computers to see if anyone is using the machine (sometimes the "current user" command is misleading)... ...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
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