Soluții

Image Processing In Java

Pixels are the smallest unit of an image which consists of four components Alpha (transparency measure), Red, Green, Blue and in short (ARGB). The value of all the components lie between 0 and 255 both inclusive. Zero means the component is absent and 255 means the component is fully present.

[mai mult...]

Deschidere Task Manager folosing VBScript

Cum putem accesa Task Manager folosing VBScript

Pasul 1 : Copiem urmatorul cod intr-un editor de text

Option Explicit
Dim Application
Application = “%windir%\system32\Taskmgr.exe”
Call RunThis(Application)

Sub RunThis(Application)
Dim Ws,Result
Set Ws = CreateObject(“WScript.Shell”)
Result = Ws.Run(DblQuote(Application),1,False)
End Sub

Function DblQuote(Str)
DblQuote = Chr(34) & Str & Chr(34)
End Function

Pasul 2 : Salvam fisierul cu numele dorit, dar sa contina extensia .vbs.

EX : taskmgr.vbs

[mai mult...]

Deschiderea unei aplicatii cu mesaj de confirmare folosind VBScript

Deschiderea unei aplicatii cu mesaj de confirmare folosind VBScript, un limbaj de scriptare dezvoltat de Microsoft.

Pasul 1 :
Copiem codul de mai jos intr-un editor de text.

Option Explicit
Dim ws,Question,PathProgram
Set ws = CreateObject(“wscript.shell”)
‘change the path of your file
PathProgram = “C:\Program Files\VideoLAN\VLC\vlc.exe”
Question = Msgbox(“Doresti sa deschizi aplicatia VLC?”,VbYesNO + VbQuestion, “VLC”)
If Question = VbYes Then
ws.run DblQuote(PathProgram)
End If
Function DblQuote(Str)
DblQuote = Chr(34) & Str & Chr(34)
End Function

Pasul 2 :
Modificam path-ul programului.Ex: C:\Program Files\VideoLAN\VLC\vlc.exe
Putem modifica mesajul de confirmare “Doresti sa deschizi aplicatia VLC?” cu orice alt mesaj.
Putem modifica chiar si titlul casutei, in cazul nostru VLC.

Pasul 3 :
Salvam documentul, punandu-i orice nume + .vbs la sfarsit.

[mai mult...]