gbails Posted February 23, 2012 Share Posted February 23, 2012 I want to setup print screen commands and save them in file each time. Not sure if I need to get another application or just use Auto it. Link to comment Share on other sites More sharing options...
JohnOne Posted February 23, 2012 Share Posted February 23, 2012 That's a lovely story. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
gbails Posted February 23, 2012 Author Share Posted February 23, 2012 I have tried using the following code but get WARNING: $SRCCOPY: possibly used before declaration. _WinAPI_BitBlt($hCDC, 0, 0, $iPicWidth, $iPicHeight, $hDDC, $iLeft-$iBorderV, $iTop-$iBorderT, $SRCCOPY) and ERROR: $SRCCOPY: undeclared global variable. _WinAPI_BitBlt($hCDC, 0, 0, $iPicWidth, $iPicHeight, $hDDC, $iLeft-$iBorderV, $iTop-$iBorderT, $SRCCOPY) not sure what to do. I have my code doing this on the screen and just want to have it save a copy of the screen between steps.Screen shot test.au3 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 23, 2012 Moderators Share Posted February 23, 2012 gbails,Welcome to the AutoIt forum. Please try and post in the correct section next time - this section is reserved for "Examples", as the big banner at the top tells you. I will move your thread to the "General Support" section - but you will need to show a bit more initiative than that if you want to receive a lot of help. We expect you to at least take a look at the possible solutions in the Help file rather than ask for us to do all the work for you. So you might want to look at the _ScreenCapture_* functions before you next post and see if any of them are suitable for what you want to do. If so then please feel free to ask questions about anything that is still unclear concerning their usage. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
JohnOne Posted February 23, 2012 Share Posted February 23, 2012 well $SRCCOPY is not defined. it is a variable that needs passing to the function it is used in. Also, all you have there in that file is a function someone made, it is not called or used in any fashion. I suggest you take a look at some of the basic tuts in the wiki. In fact you might want to look at the absolute beginners guide in my signature, or even paste the code under it, into scite editor and run it AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
gbails Posted February 24, 2012 Author Share Posted February 24, 2012 Thanks John and M23. I have looked at the beginners guide and some tutorials. I have a lot of other code I have written to do the main functions I wish to preform. I will keep looking for more information to solve this problem. The code I posted is one I found in one of the other threads. I saw most of the functions and was going to modify it for my own use but was not sure what program or add on most users use. I have been trying to use mainly autoit functions as I am still learning and maybe use an external program later if need be. Thanks gbails 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