Scripting 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

Pulsar en el primer resultado de la búsqueda en Baidu

Ofertas y promociones en Videojuegos

PowerShell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#Para la resolución de pantalla 1366 x 768
 
$MouseEventSig=@’
[DllImport("user32.dll",CharSet=CharSet.Auto, CallingConvention=CallingConvention.StdCall)]
public static extern void mouse_event(long dwFlags, long dx, long dy, long cButtons, long dwExtraInfo);
‘@
 
$MouseEvent = Add-Type -memberDefinition $MouseEventSig -name 'MouseEventWinApi' -passThru
 
Start-Process Chrome 'https://www.baidu.com/'
 
Start-Sleep -Seconds 5
 
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point(384,302)
$MouseEvent::mouse_event(0x00000002, 0, 0, 0, 0)
$MouseEvent::mouse_event(0x00000004, 0, 0, 0, 0)
 
Start-Sleep -Seconds 5
 
[System.Windows.Forms.SendKeys]::SendWait('PowerShell')
[System.Windows.Forms.SendKeys]::SendWait('{ENTER}')
 
Start-Sleep -Seconds 5
 
#Pulsar en el primer resultado de la búsqueda
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point(198,212)
$MouseEvent::mouse_event(0x00000002, 0, 0, 0, 0)
$MouseEvent::mouse_event(0x00000004, 0, 0, 0, 0)

CATEGORÍAS

Automatización, PowerShell

ETIQUETAS

Add-Type, Chrome, Drawing, HTTP, HTTPS, Jesús Niño Camazón, mouse_event, MouseEventWinApi, New-Object, SendWait, Start-Process, Start-Sleep, System.Drawing, System.Drawing.Point, System.Windows.Forms.Cursor, System.Windows.Forms.SendKeys, user32.dll, Windows

MÁS

  • Administración de software de base (Implantación de sistemas operativos)
  • Desactivar la visualización de inmediato desde PowerShell, abrir Notepad y escribir un texto
  • Explicación sobre el uso de funciones que están en DLL del sistema operativo (en PowerShell)
  • Listar los nombres de los ficheros DLL que hay en System32 con PowerShell
  • Automatizar desde Python
  • Automatizar el pulsado de teclas en el sistema operativo Windows con PowerShell
635000463 624867722 613477941 650205629 680493892 682282717 691435889 602050091 608353199 678545571 683616873 623821590 696775834 655854538 643921473 682919522 668500603 670728892 670725460 611873510 686947157 649383943 613776089 659843978 644447988 694751139 695522514 623018667 648331288 665462329 642661816 675068853 677875984 615685227 624001693 689443769 654932515 673141962 675287502 639222079 641716664 624729480 644716251 638841378 660462957 614825213 662101782 679847556 647153374 640633354 641248613 683326969 619791608 652552615 626154898 671654501 676109316 618006403 648984869 694361997 650093002 632112653 642986588 652058535 622402106 619408042 607466633 607756766 655999341 690354180