home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch      Fun with MS-DOS batch files      42,547 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 42,033 of 42,547   
   Robert Roland to All   
   Re: Is there a way to put a command wind   
   24 Apr 22 00:34:38   
   
   XPost: alt.comp.os.windows-10, alt.comp.microsoft.windows   
   From: fake@ddress.no   
      
   On Sat, 23 Apr 2022 15:59:27 +0100, Andy Burnelli    
   wrote:   
      
   >How can I tell the "scrcpy console" to be hidden?   
      
   I know VBScript and PowerShell can launch programs with the window   
   hidden. PowerShell's Start-Process cmdlet supports a "windowstyle"   
   parameter. This might be worth a try (single line):   
      
   powershell.exe -executionpolicy bypass -command "start-process   
   -filepath 'scrcpy' -argumentlist '--always-on-top   
   --tcpip=192.168.0.2:5555' -windowstyle 'hidden'"   
      
   If you want to hide or unhide a window "in-flight", I do not know of   
   any native way. There are ways to do it through the Windows API, and I   
   know PowerShell and VBScript can make API calls, but it is beyond my   
   abilities to write such a script.   
      
   If a third-party tool is acceptable, one of my favorites is AutoIt. It   
   is essentially a scripting language that has lots of built-in   
   functionality for manipulating the GUI. It can compile a script into a   
   standalone executable, which I really like. Take look here to get you   
   started:   
      
   https://www.autoitscript.com/autoit3/docs/functions/WinSetState.htm   
      
   Something like:   
      
   WinSetState ( "screencopy", "" , @SW_HIDE )   
      
   and   
      
   WinSetState ( "screencopy", "" , @SW_SHOW )   
   --   
   RoRo   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca