0

I want to maximise Citrix window using VB Script. The shortcut to maximise is Windows+Up arrow key. I kept the window active and I executed the below code to maximise Citrix application window using VB script.

Dim oShell :  oShell = CreateObject("WScript.Shell")
oShell.SendKeys("#{UP}")   
oShell.sendkeys("# ")
oShell.sendkeys("{UP}")    

The above script is not maximising my Citrix window. Can anyone help me where am I going wrong.

user692942
  • 15,667
  • 7
  • 74
  • 164
Anu
  • 1
  • 1
  • Look at [`AppActivate()`](https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/scripting-articles/wzcddbek(v=vs.84)) to give the application focus before sending the keys. Ref [Create a VB script to send the keys to open up a program with specific settings](https://stackoverflow.com/a/48698992) – user692942 Nov 11 '21 at 11:01

0 Answers0