au3scr Posted April 10, 2008 Posted April 10, 2008 How i can get started with screenhot making script? i want set p to take screenshot and save it automatically.
Swift Posted April 10, 2008 Posted April 10, 2008 (edited) $Dll=DllOpen("User32.dll") $number=0 While 1 If _IsPressed("the p key goes here...", $Dll) Then $number=$number+1 _ScreenCapture_Capture(@DesktopDir & "\ScreenShot" & $Number & ".jpg") EndIf Sleep(50) WEnd Edited April 10, 2008 by Swift
au3scr Posted April 10, 2008 Author Posted April 10, 2008 (edited) where u learn these user32.dll functions?C:\Documents and Settings\rain\Desktop\printscr.au3(4,24) : ERROR: _IsPressed(): undefined function.If _IsPressed("p", $Dll)~~~~~~~~~~~~~~~~~~~~~~~^C:\Documents and Settings\rain\Desktop\printscr.au3(6,70) : ERROR: _ScreenCapture_Capture(): undefined function._ScreenCapture_Capture(@DesktopDir & "\ScreenShot" & $Number & ".jpg")~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^C:\Documents and Settings\rain\Desktop\printscr.au3 - 2 error(s), 0 warning(s) Edited April 10, 2008 by au3scr
meekaah Posted April 10, 2008 Posted April 10, 2008 How i can get started with screenhot making script?i want set p to take screenshot and save it automatically.#include <ScreenCapture.au3>HotKeySet("p", "capture")Func capture()_ScreenCapture_Capture(@MyDocumentsDir & "\GDIPlus_Image1.jpg")EndFuncWhile 1Wend
meekaah Posted April 10, 2008 Posted April 10, 2008 #include <ScreenCapture.au3>HotKeySet("p", "capture")Func capture()_ScreenCapture_Capture(@MyDocumentsDir & "\GDIPlus_Image1.jpg")EndFuncWhile 1Wend oh and you need the latest autoit version
AdmiralAlkex Posted April 10, 2008 Posted April 10, 2008 where u learn these user32.dll functions?Ever heard about something called help-file?? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Swift Posted April 10, 2008 Posted April 10, 2008 That wasn't suppost to work Au3Scr. It was a example of what to do.
au3scr Posted April 10, 2008 Author Posted April 10, 2008 (edited) oh,ok ty anyway Edited April 10, 2008 by au3scr
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