au3scr Posted October 26, 2007 Share Posted October 26, 2007 How i make script that selects random *.jpg to wallpaper form a dir? Link to comment Share on other sites More sharing options...
Nahuel Posted October 26, 2007 Share Posted October 26, 2007 Search the forums. Take a look at Piano Man's wallpaper rotator:http://www.autoitscript.com/forum/index.ph...mp;hl=wallpaperYou'll find what you need there. Link to comment Share on other sites More sharing options...
au3scr Posted October 26, 2007 Author Share Posted October 26, 2007 >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\rain\Desktop\katse.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams +>02:28:16 Starting AutoIt3Wrapper v.1.9.3 >Running AU3Check (1.54.9.0) from:C:\Program Files\AutoIt3 C:\Documents and Settings\rain\Desktop\katse.au3(7,10) : ERROR: can't open include file 'AutoItLib.au3' #include 'AutoItLib.au3' ~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(20,33) : ERROR: $WM_NOTIFY previously declared as a 'Const' Global Const $WM_NOTIFY = 0x004E ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(21,27) : ERROR: $NM_FIRST previously declared as a 'Const' Global Const $NM_FIRST = 0 ~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(22,41) : ERROR: $NM_CLICK previously declared as a 'Const' Global Const $NM_CLICK = ($NM_FIRST - 2) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(23,42) : ERROR: $NM_DBLCLK previously declared as a 'Const' Global Const $NM_DBLCLK = ($NM_FIRST - 3) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(629,52) : WARNING: $SPI_SETDESKWALLPAPER: possibly used before declaration. _API_SystemParametersInfo($SPI_SETDESKWALLPAPER, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(629,109) : WARNING: $SPIF_UPDATEINIFILE: possibly used before declaration. _API_SystemParametersInfo($SPI_SETDESKWALLPAPER, 0, DllStructGetPtr($tBuffer), BitOR($SPIF_UPDATEINIFILE, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(629,127) : WARNING: $SPIF_SENDCHANGE: possibly used before declaration. _API_SystemParametersInfo($SPI_SETDESKWALLPAPER, 0, DllStructGetPtr($tBuffer), BitOR($SPIF_UPDATEINIFILE, $SPIF_SENDCHANGE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(629,52) : ERROR: $SPI_SETDESKWALLPAPER: undeclared global variable. _API_SystemParametersInfo($SPI_SETDESKWALLPAPER, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(605,18) : ERROR: _GDI_Startup(): undefined function. _GDI_Startup() ~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(606,39) : ERROR: _GDI_LoadFromFile(): undefined function. $hImage = _GDI_LoadFromFile($sFile) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(607,41) : ERROR: _GDI_GetEncoderCLSID(): undefined function. $sCLSID = _GDI_GetEncoderCLSID("BMP") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(608,48) : ERROR: _Str_ChangeFileExt(): undefined function. $sTemp = _Str_ChangeFileExt($sFile, ".bmp") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(609,45) : ERROR: _GDI_SaveToFile(): undefined function. _GDI_SaveToFile($hImage, $sTemp, $sCLSID) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(610,30) : ERROR: _GDI_DisposeImage(): undefined function. _GDI_DisposeImage($hImage) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(611,19) : ERROR: _GDI_Shutdown(): undefined function. _GDI_Shutdown() ~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3(629,128) : ERROR: _API_SystemParametersInfo(): undefined function. _API_SystemParametersInfo($SPI_SETDESKWALLPAPER, 0, DllStructGetPtr($tBuffer), BitOR($SPIF_UPDATEINIFILE, $SPIF_SENDCHANGE)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\rain\Desktop\katse.au3 - 14 error(s), 3 warning(s) !>02:28:17 AU3Check ended.rc:2 >Running:(3.2.9.3):C:\Program Files\AutoIt3\autoit3.exe "C:\Documents and Settings\rain\Desktop\katse.au3" C:\Documents and Settings\rain\Desktop\katse.au3 (7) : ==> Error opening the file.: #include 'AutoItLib.au3' ->02:28:26 AutoIT3.exe ended.rc:1 +>02:28:28 AutoIt3Wrapper Finished >Exit code: 1 Time: 12.007 Link to comment Share on other sites More sharing options...
Nahuel Posted October 26, 2007 Share Posted October 26, 2007 You need this 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