Commands & Syntax > Commands > Display / Computer Screen >

CHANGE WALLPAPER - < display_changewallpaper >() ... [Pro]

www.perfectkeyboard.com

 

Display CHANGE WALLPAPER
<display_changewallpaper>(File)
Available in: Professional edition

This command changes wallpaper on Windows desktop.

 

#

Parameter name

Parameter description

1

File

Full path to file with wallpaper image.

 

Example (Macro Steps):

 

1

<#> <#> This macro changes wallpaper image

2

Macro execution: ONLY COMMANDS

3

Variable OPERATION "SELECT_FILE" (Variable for result = vWallpaperFile, Input text/variable = c:\winnt\*.bmp, Parameter 1 = , Parameter 2 = , Parameter 3 = 0)

4

IF STRING vWallpaperFile != _vEmptyStr

5

Display CHANGE WALLPAPER "vWallpaperFile"

6

Message SHOW "" : "Wallpaper changed!" (other parameters: x = -100, y = -100, Window title = Message, Buttons = OK, Timeout (seconds) = , Always on top = ).

7

ENDIF

Example (Plain Text):

 

<#> This macro changes wallpaper image

<#>

<cmds>

 

<var_oper>(vWallpaperFile,"c:\winnt\*.bmp",SELECT_FILE,"","", "0")

 

<if_str>("vWallpaperFile != _vEmptyStr")

   <display_changewallpaper>(vWallpaperFile)

   <msg>(-100,-100,"Wallpaper changed!","Message",1)

<endif>