sandman Posted February 5, 2007 Share Posted February 5, 2007 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] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 5, 2007 Moderators Share Posted February 5, 2007 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. Link to comment Share on other sites More sharing options...
sandman Posted February 5, 2007 Author Share Posted February 5, 2007 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] Link to comment Share on other sites More sharing options...
PaulIA Posted February 5, 2007 Share Posted February 5, 2007 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 Link to comment Share on other sites More sharing options...
i542 Posted February 5, 2007 Share Posted February 5, 2007 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. Link to comment Share on other sites More sharing options...
sandman Posted February 7, 2007 Author Share Posted February 7, 2007 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] Link to comment Share on other sites More sharing options...
sandman Posted February 7, 2007 Author Share Posted February 7, 2007 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] Link to comment Share on other sites More sharing options...
Rizzet Posted February 7, 2007 Share Posted February 7, 2007 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^][[ Link to comment Share on other sites More sharing options...
sandman Posted February 7, 2007 Author Share Posted February 7, 2007 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] 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