• EnglishSpanishGermanFrenchPolishChinese (Traditional)


EnglishSpanishGermanFrenchPolishChinese (Traditional)

Operating systems, scripting, PowerShell and security

Operating systems, software development, scripting, PowerShell tips, network and security

Menú principal
  • Categorías
  • Cursos
  • Libro de PowerShell
  • Lo mejor
  • Lo último
  • Proyectos
  • Contactar
Ir al contenido

Abrir una página web con la cotización del IBEX 35 cada 20 minutos y hacer una captura de pantalla

PowerShell
1
2
3
4
5
6
7
8
9
Start-Process "https://www.google.com/search?q=cotizaci%C3%B3n+ibex&oq=cotizaci%C3%B3n+ibex"
Start-Sleep -Seconds 10
$path=(Get-Date).ToString("yyyyMMddhhmm")+"ibex.bmp"
$b=New-Object System.Drawing.Bitmap([System.Windows.Forms.Screen]::PrimaryScreen.Bounds.Width, [System.Windows.Forms.Screen]::PrimaryScreen.Bounds.Height)
$g=[System.Drawing.Graphics]::FromImage($b)
$g.CopyFromScreen((New-Object System.Drawing.Point(0,0)), (New-Object System.Drawing.Point(0,0)), $b.Size)
$g.Dispose()
$b.Save($path,'Bmp')
Start-Sleep -Seconds (60*20)

Publicado el día 11 de abril de 2020

CATEGORÍAS

PowerShell

ETIQUETAS

Date, Drawing, Get-Date, Google, HTTPS, IBEX 35, Jesús Niño, Jesús Niño Camazón, New-Object, Path, Screen, size, Start-Process, Start-Sleep, System.Drawing, System.Drawing.Bitmap, System.Drawing.Graphics, System.Drawing.Point, ToString, Windows

MÁS

  • 11. Gestión del Directorio Activo (nivel intermedio)
  • Ejercicios de seguridad: práctica sobre virus
  • ¿Cómo crear un bot muy simple en 5 minutos?
  • Ejercicios de PowerShell: intentar saltar la UAC (simulación)
  • Pedir el nombre de un proceso y mostrar información del proceso mediante PowerShell con Node-PowerShell, EJS (Embedded JavaScript), Body-parser y Express
  • Ejercicios de PowerShell: utilizar SendKeys en PowerShell