Abrir, ocultar el menú y poner en funcionamiento SDRSharp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
#Abrir SDRSharp Start-Process E:\sdrsharp-x86\SDRSharp.exe Start-Sleep -Seconds 5 #Funciones necesarias para hacer clic $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 #Hacer clic en el botón del menú para ocultarlo [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point(23,54) $MouseEvent::mouse_event(0x00000002, 0, 0, 0, 0) $MouseEvent::mouse_event(0x00000004, 0, 0, 0, 0) Start-Sleep -Seconds 5 #Hacer clic en Start para poner en funcionamiento SDRSharp [System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point(60,52) $MouseEvent::mouse_event(0x00000002, 0, 0, 0, 0) $MouseEvent::mouse_event(0x00000004, 0, 0, 0, 0) |