t0ddie Posted September 7, 2006 Share Posted September 7, 2006 (edited) this requires microsoft paint to work. it basically uses the printscreen button to capture your screen, and pastes the image stored in the clipboard to mspaint.exe. it then saves picture on your desktop. sure it could be improved, but the main thing is, IT WORKS! just hit the - key after running this to take a picture of the screen. expandcollapse popupOpt("wintitlematchmode",2) $count = 0 HotKeySet("-","pic") HotKeySet("{esc}","quit") MsgBox(0,"ScreenShot Utility","Press " & '"-"' & " to take a screenshot!" & @CRLF & "Press Esc to exit",5) while 1 sleep(100) WEnd Func pic() TrayTip("","",0) sleep(500) HotKeySet("","pic") Send("{PRINTSCREEN}") Run("mspaint.exe", "", @SW_MAXIMIZE) WinWaitActive("untitled - Paint") Sleep(100) Send("^v") sleep(100) Send("^s") Do $count = $count + 1 Until Not FileExists(@DesktopDir & "\ScreenShot" & $count & ".bmp") WinWaitActive("Save As") sleep(100) MouseClick("left",54,227,1,0) sleep(100) Send("ScreenShot" & $count) sleep(100) Send("{enter}") WinClose("- Paint") TrayTip("", "pic saved as ScreenShot" & $count & ".bmp",1,16) $count = 0 HotKeySet("-","pic") EndFunc Func quit() MsgBox(0,"ScreenShot Utility","Thanks for using ScreenShot utility..." & @CRLF & "Goodbye!" ,3) Exit EndFunc Edited September 7, 2006 by t0ddie Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
FuryCell Posted September 7, 2006 Share Posted September 7, 2006 (edited) Cool Tried it and it worked quite well. Also the following dll may be of interest to you:captdll Edited September 7, 2006 by SolidSnake HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
t0ddie Posted September 7, 2006 Author Share Posted September 7, 2006 Cool Tried it and it worked quite well. Also the following dll may be of interest to you:captdllahhh.. someone already made somehting like this.. but slightly differentany editing of the pic i can do in a picture editing program. (like cut out regions)that dll looks nice though. i just dont have any use for it ATMeither one will do the job. however,simplicity is purity. glad mine worked for you Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. 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