Sign in to follow this  
Followers 0
sandman

Is there a function that takes a screenshot in AutoIt and then could possibly save it somewhere?

9 posts in this topic

I looked through the function list but I want to make sure I did not miss anything.

I am aware, though, that an alternative would be to have the script send (PrntScrn) or whatever the keycode is and then paste it and save it, but I am wondering if there is some automatic way to do it.


[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites



PaulIA's AU3 library has something like this I believe.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Okay.. I am going to be honest and say that I found the AU3ScreenCap file and have no idea how it works.. sorry if this is annoying anyone which it probably is.


[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites

Okay.. I am going to be honest and say that I found the AU3ScreenCap file and have no idea how it works.. sorry if this is annoying anyone which it probably is.

Take a look at the ScreenCap demo in the Examples folder.

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

I looked through the function list but I want to make sure I did not miss anything.

I am aware, though, that an alternative would be to have the script send (PrntScrn) or whatever the keycode is and then paste it and save it, but I am wondering if there is some automatic way to do it.

Or you can try to use CTRL+PRNSCR to save active win in clipboard, then use some command to take it out.

i542


I can do signature me.

Share this post


Link to post
Share on other sites

Good idea.. I have an idea for something but how can I determine what coordinate my mouse is at on my screen?


[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites

Oh, wait! I designed a script using the MouseGetPos() function along with a hotkey to get the coordinates.

Here's the code:

HotKeySet("{HOME}", "MouseGetCoords")

Func MouseGetCoords()
    $pos = MouseGetPos()
    MsgBox(0, "Mouse position", $pos[0] & "," & $pos[1])
EndFunc

So, I have the basic script set up. But, when I run it nothing happens.. What am I doing wrong?


[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites

Oh, wait! I designed a script using the MouseGetPos() function along with a hotkey to get the coordinates.

Here's the code:

HotKeySet("{HOME}", "MouseGetCoords")

Func MouseGetCoords()
    $pos = MouseGetPos()
    MsgBox(0, "Mouse position", $pos[0] & "," & $pos[1])
EndFunc

So, I have the basic script set up. But, when I run it nothing happens.. What am I doing wrong?

Now u are just open the program and close it. U need to get it going untill u want to close it or press home

HotKeySet("{HOME}", "MouseGetCoords")

;checks if u pressed bottum every 0.1sec
While 1
 Sleep(100)
Wend

Func MouseGetCoords()
    $pos = MouseGetPos()
    MsgBox(0, "Mouse position", $pos[0] & "," & $pos[1])
EndFuncoÝ÷ ØêîØ¥êkzË!¢gºÚ"µÍÝÙ^TÙ]
    ][ÝÞÒÓQ_I][ÝË ][ÝÓ[ÝÙQÙ]ÛÛÜÉ][ÝÊBÚ[HBÛY
L
BÙ[[È[ÝÙQÙ]ÛÛÜÊ
BIÌÍÜÜÈH[ÝÙQÙ]ÜÊ
BSÙÐÞ
    ][ÝÓ[ÝÙHÜÚ][Û][ÝË  ÌÍÜÜÖÌH   [È ][ÝË  ][ÝÈ  [È ÌÍÜÜÖÌWJB^][[

Share this post


Link to post
Share on other sites

Okay, that works really well. Thanks!


[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

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