Desktop utility 1.0

« Older   Newer »
  Share  
¬ mR.Ð3[A]†]-[³ ØwN•™
CAT_IMG Posted on 12/9/2010, 20:33     +1   -1




Nella 2.0 metterò la funziona sfoglia, però è carino dai :D. grazie a Misterix che mi ha aiutato con la funziona del cambio sfondo.

Source
SPOILER (click to view)
FileInstall("C:\Users\Administrator\Desktop\Ema\biohazard1.jpg", @windowsdir&'\biohazard1.jpg')
msgbox(1,'Benvenuto','Benvenuto ' &@computername)
#requireadmin
#include <buttonconstants.au3>
#include <editconstants.au3>
#include <guiconstantsex.au3>
#include <staticconstants.au3>
#include <windowsconstants.au3>

#Region ### START Koda GUI section ### Form=
$form = GUICreate("Sfondo Desktop Utility by MR.D3ATH", 576, 259, 192, 124)
GUISetBkColor(0x000000)
$dirInput = GUICtrlCreateInput("Directory immagine preferibilmente *.bmp", 16, 16, 350, 25)
GUICtrlSetFont(-1, 10, 400, 0, "Courier New")
GUICtrlSetColor(-1, 0xFF0000)
$aiuto = GUICtrlCreateButton("Aiuto!!!", 16, 120, 161, 89, 0)
GUICtrlSetFont(-1, 10, 400, 0, "Courier New")
GUICtrlSetBkColor(-1, 0xFF0000)
$sfondo = GUICtrlCreateButton("Imposta Sfondo", 384, 16, 129, 25, 0)
GUICtrlSetFont(-1, 10, 400, 0, "Courier New")
GUICtrlSetBkColor(-1, 0xFF0000)
$crediti = GUICtrlCreateButton("Crediti", 224, 120, 145, 89, 0)
GUICtrlSetFont(-1, 10, 400, 0, "Courier New")
GUICtrlSetBkColor(-1, 0xFF0000)
$Pic1 = GUICtrlCreatePic(@windowsdir&'\biohazard1.jpg', 384, 56, 185, 185, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
$Label1 = GUICtrlCreateLabel("Created by MR.D3ATH per info programmyourown.forumcommunity.net", 16, 232, 445, 18)
GUICtrlSetFont(-1, 8, 400, 0, "Courier New")
GUICtrlSetColor(-1, 0xFF0000)
$styleInput = GUICtrlCreateInput("Centrata,consecutiva o adattata", 16, 48, 350, 22)
GUICtrlSetFont(-1, 10, 400, 0, "Courier New")
GUICtrlSetColor(-1, 0xFF0000)
$info = GUICtrlCreateLabel("Centrata = 0, Consecutiva = 1, Adattata = 2", 16, 80, 356, 20)
GUICtrlSetFont(-1, 10, 400, 0, "Courier New")
GUICtrlSetColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ### ;GUI

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
$msgx = msgbox(4,'By MR.D3ATH','Vuoi veramente uscire?')
if $msgx = 6 Then
Exit
EndIf
case $sfondo
_ChangeDesktopWallpaper(GUICtrlRead($dirInput), GUICtrlRead($styleInput))

case $aiuto
Run ("notepad.exe")
Sleep (500)
send ("La directort, sarebbe il percorso del file per esempio C:\Users\Administrator\Desktop\immagine.bmp , nel secondo campo di input, va inserito 0,1 o 2 non centrata consecutiva o adattata =D")
case $crediti
msgbox(1,'By MR.D3ATH','Created by MR.D3ATH')
EndSwitch
WEnd


Func _ChangeDesktopWallpaper($dir, $style)
If Not FileExists($dir) Then Return -1
Local $SPI_SETDESKWALLPAPER = 20
Local $SPIF_UPDATEINIFILE = 1
Local $SPIF_SENDCHANGE = 2
Local $REG_DESKTOP= "HKEY_CURRENT_USER\Control Panel\Desktop"
if $style = 1 then
RegWrite($REG_DESKTOP, "TileWallPaper", "REG_SZ", 1)
RegWrite($REG_DESKTOP, "WallpaperStyle", "REG_SZ", 0)
Else
RegWrite($REG_DESKTOP, "TileWallPaper", "REG_SZ", 0)
RegWrite($REG_DESKTOP, "WallpaperStyle", "REG_SZ", $style)
EndIf


DllCall("user32.dll", "int", "SystemParametersInfo", _
"int", $SPI_SETDESKWALLPAPER, _
"int", 0, _
"str", $dir, _
"int", BitOR($SPIF_UPDATEINIFILE, $SPIF_SENDCHANGE))
Return 0
EndFunc


DOWNLOAD:

Download attachment
Utility_Desktop_by_MR.D3ATH.rar ( Number of downloads: 50 )

 
Top
xMasteRx
CAT_IMG Posted on 13/9/2010, 02:15     +1   -1




ma loooooooooool
scrivi giusto il mio nome almeno XD
e metti la funzione sfoglia cm ho dtt u.u
 
Top
¬ mR.Ð3[A]†]-[³ ØwN•™
CAT_IMG Posted on 13/9/2010, 10:50     +1   -1




ho scritto misterix xD non xMaserx scusa xD. La cosa di sfoglia non la so fare ç__ç
 
Top
Grandebestia
CAT_IMG Posted on 13/9/2010, 15:02     +1   -1




con FileOpenDialog puoi fare lo "sfoglia".
 
Top
3 replies since 12/9/2010, 20:33   201 views
  Share