Jump to content

Not able to take the Screenshot - (Moved)


mdd
 Share

Recommended Posts

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

screenshot1.png

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

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

screenshot1.png

Link to comment
Share on other sites

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

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

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 by Tersion
Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • 2 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...