mdd Posted August 31, 2018 Share Posted August 31, 2018 Not able to take the screenshot in Windows 10 and Windows 7 and Auto IT Version: 3.3.14.3 please find the below code for the reference #include <ScreenCapture.au3> Example() Func Example() ; Capture full screen _ScreenCapture_Capture("C:\Users\7000017413\Documents\screencapture\GDIPlus_Image1.png") ShellExecute("C:\Users\7000017413\Documents\screencapture\GDIPlus_Image1.png") ; Capture region _ScreenCapture_Capture("C:\Users\7000017413\Documents\screencapture\GDIPlus_Image2.jpg", 0, 0, 796, 596) ShellExecute("C:\Users\7000017413\Documents\screencapture\GDIPlus_Image2.jpg") EndFunc ;==>Example when i run the above code, displaying Windows cannot find the path.Make sure you typed the name correctly, and then try again. PFA and suggest for the same Link to comment Share on other sites More sharing options...
UEZ Posted August 31, 2018 Share Posted August 31, 2018 Update AutoIt to the latest version and try again. Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 31, 2018 Moderators Share Posted August 31, 2018 Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team 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...
mdd Posted September 3, 2018 Author Share Posted September 3, 2018 Not able to take the screenshot in Windows 10 and Windows 7 and Auto IT Version: 3.3.14.3 please find the below code for the reference #include <ScreenCapture.au3> Example() Func Example() ; Capture full screen _ScreenCapture_Capture("C:\Users\7000017413\Documents\screencapture\GDIPlus_Image1.png") ShellExecute("C:\Users\7000017413\Documents\screencapture\GDIPlus_Image1.png") ; Capture region _ScreenCapture_Capture("C:\Users\7000017413\Documents\screencapture\GDIPlus_Image2.jpg", 0, 0, 796, 596) ShellExecute("C:\Users\7000017413\Documents\screencapture\GDIPlus_Image2.jpg") EndFunc ;==>Example when i run the above code, displaying Windows cannot find the path.Make sure you typed the name correctly, and then try again. PFA and please suggest for the altenatives Link to comment Share on other sites More sharing options...
mdd Posted September 3, 2018 Author Share Posted September 3, 2018 Update AutoIt to the latest version and try again On 8/31/2018 at 7:31 PM, UEZ said: Update AutoIt to the latest version and try again. I am using latest version of Autoit Tool only, when i run code in latest version it is displaying "Windows cannot find the path.Make sure you typed the name correctly, and then try again." Link to comment Share on other sites More sharing options...
careca Posted September 3, 2018 Share Posted September 3, 2018 Does the path exist? Is there such a user with the name 7000017413? Do you have ownership of the folder? Did you try #requireadmin? (run as admin) Spoiler Renamer - Rename files and folders, remove portions of text from the filename etc. GPO Tool - Export/Import Group policy settings. MirrorDir - Synchronize/Backup/Mirror Folders BeatsPlayer - Music player. Params Tool - Right click an exe to see it's parameters or execute them. String Trigger - Triggers pasting text or applications or internet links on specific strings. Inconspicuous - Hide files in plain sight, not fully encrypted. Regedit Control - Registry browsing history, quickly jump into any saved key. Time4Shutdown - Write the time for shutdown in minutes. Power Profiles Tool - Set a profile as active, delete, duplicate, export and import. Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes. NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s. IUIAutomation - Topic with framework and examples Au3Record.exe Link to comment Share on other sites More sharing options...
Tersion Posted September 3, 2018 Share Posted September 3, 2018 (edited) mdd, And if you follow by the path (through Windows Explorer) you indicated in _ScreenCapute(" C:\Users\7000017413\Documents\screencapture\GDIPlus_Image1.png ") call , you can see the image file? You could change slightly this part of your code to see if _ScreenCapute return True or some error occur (the result will be shown in console): ;... Local $bReturn $bReturn = _ScreenCapture_Capture("C:\Users\7000017413\Documents\screencapture\GDIPlus_Image1.png") ConsoleWrite($bReturn & @CRLF & @error & @CRLF) ;... Edited September 3, 2018 by Tersion Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 3, 2018 Moderators Share Posted September 3, 2018 mdd, Please stick to just the one thread at a time. You said originally that you were using v 3.3.14.3, which had a problem with several things. You now say: Quote I am using latest version of Autoit Tool only so have you actually upgraded your AutoIt installation to v3.3.14.5 or not? If "not" then you will never get a screenshot. 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...
mdd Posted September 7, 2018 Author Share Posted September 7, 2018 @Melba23 currently i am using V 3.3.14.3 Autoit tool Link to comment Share on other sites More sharing options...
mdd Posted September 7, 2018 Author Share Posted September 7, 2018 @Melba23 currently i am using V 3.3.14.3 Autoit tool, whether i need to upgrade the Autoit to v3.3.14.5 to get the Screenshot?? Link to comment Share on other sites More sharing options...
mdd Posted September 7, 2018 Author Share Posted September 7, 2018 On 9/3/2018 at 6:34 PM, careca said: Did you try #requireadmin? (run as admin) i will check this Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 7, 2018 Moderators Share Posted September 7, 2018 mdd, Did you actually read the thread to which I linked you above - it very clearly tells you that there was a problem with 3.3.14.3/4 and that you should update to 3.3.14.5. I do not know how to make myself clearer. 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...
mdd Posted September 17, 2018 Author Share Posted September 17, 2018 @Melba23 Thanks alot Melba, i got your point . i will update the AutoIT tool to 3.3.14.5 version and check for the same 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