Sign in to follow this  
Followers 0
pjotterke

Idea

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



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?

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by PaulIA

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0