PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Active Window?  (Read 2103 times)

jdegrendele

  • Member
  • **
  • Posts: 16
    • View Profile
Active Window?
« on: October 04, 2022, 03:33:55 PM »
Trying to determine why a nomads panel (or character window for that matter) when launched from a program and/or our menu will not come up as the active window.  Panel appears correctly, however we have to click somewhere on the panel in order for it to receive focus.  Working in version 17.1, trying to move application to Azure server with access via browser.   Application works correctly on current Windoz server with access to app via RDP.  Azure server is running Windows Server 2022.  We are not using Windx (at the moment).  Questions are:  Is this something that has been run across before?  Is there a way to force focus to a window after it has been drawn on the screen?  We've looked at 'GOTO' mneumonic but are having trouble determining the correct window ID value to place in this command (tried using *winapi;findwindow" without any luck.

Mike King

  • Diamond Member
  • *****
  • Posts: 3818
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Active Window?
« Reply #1 on: October 04, 2022, 04:12:31 PM »
Have you tried using the SET_FOCUS command?
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

jdegrendele

  • Member
  • **
  • Posts: 16
    • View Profile
Re: Active Window?
« Reply #2 on: October 04, 2022, 05:55:23 PM »
We did.  We feel it might be how the O/S is interacting with our app (or PxPlus in general).  We've deployed on an Azure server before however that server is running 2019 server versus 2022 server.  We've been able to run the application without the focus issue when connecting to the Azure server via an RDP session.  It's only when we use a browser (doesn't matter which one we've tried them all) to connect to the Azure workstation environment and start our application from an icon there that we experience the focus issue.  Instead of us fighting a Microsoft Server version problem we were hoping to just insert some code in our program(s) to force focus to a window after it has been drawn. 

Mike King

  • Diamond Member
  • *****
  • Posts: 3818
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Active Window?
« Reply #3 on: October 04, 2022, 10:43:05 PM »
You say you connecting using a browser.  What software package is the browser using to run your application?  Are you using iNomads?

Since it appears that the application works when using native Windows or RDP then whatever you are using is not replicating a native environment correctly.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

jdegrendele

  • Member
  • **
  • Posts: 16
    • View Profile
Re: Active Window?
« Reply #4 on: October 06, 2022, 05:09:13 PM »
Mike, we're moving the app over to another Azure server that will be running Server 2019 (just to see if we're having some sort of compatibility issue) We're not using iNomads.  Users connect to the Azure system thru their browser and are served up a remote desktop with specific icons on it.  Will provide feedback and more info next week.

jdegrendele

  • Member
  • **
  • Posts: 16
    • View Profile
Re: Active Window?
« Reply #5 on: October 17, 2022, 04:28:25 PM »
After moving the application over to an Azure server running Windows Server 2019 (versus 2022) the focus issue has gone away.   We're good for now but suspect that somewhere down the road will have to address this again.

Mike King

  • Diamond Member
  • *****
  • Posts: 3818
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Active Window?
« Reply #6 on: October 17, 2022, 05:48:10 PM »
Keep us informed, sounds like something in Azure is not handling Focus correctly. 

Considering PxPlus runs fine locally, using WindX, RDP and Azure 2019 the issue sounds like a Microsoft Windows inconsistency.  You may want to contact them although this article may be relevant to your problem:

https://techcommunity.microsoft.com/t5/azure-virtual-desktop/azure-vm-remoteapps-mouse-focus-issue/m-p/3629313
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

bbssupport

  • Silver Member
  • ***
  • Posts: 34
    • View Profile
Re: Active Window?
« Reply #7 on: July 24, 2023, 10:42:34 PM »
Hey jdegrendele,

We had the same issue with RemoteApp on Server 2022 but we don't think it is specifically PxPlus related. It may be because most of us likely use pop-up dialogs that aren't within a main application window that RemoteApp gets the focus incorrect.

Others are complaining too https://www.reddit.com/r/sysadmin/comments/11pzji9/server_2022_remote_app_issues/

We just rolled out new 2019 RDS servers in Azure, with our fingers crossed that the issues will be fixed in the next Windows Server version...