Una simple funcion en ruby para cambiar el fondo de Windows, lo eh probado en window seven y anda bien.
#!usr/bin/ruby
#Funcion cambiarfondo()
#Based on a code of protos

require "Win32API"
 
def cambiarfondo(imagen)
  fondo = Win32API.new("user32", "SystemParametersInfo", ['L', 'L', 'P', 'L'], 'L') 
  fondo.Call(20, 0, imagen, 0)
end

cambiarfondo("fondo/test.jpg");

#The End ?
Responder

Volver a “Otros lenguajes de Scripting”