Credential dialog not in focus after launch via command line

Got a problem with Viscosity or need help? Ask here!

ifesgmbh

Posts: 4
Joined: Wed Jun 14, 2017 9:29 pm

Post by ifesgmbh » Wed Jun 14, 2017 9:44 pm
When initiating connections via command line, as described in https://www.sparklabs.com/support/kb/ar ... e-windows/, the credential dialog is not in focus.

Tested under Windows 7 64bit and Windows 10 64bit with 1.7.1 (1513).

The expected behavior would be that the credential dialog is brought into focus, so that the credentials can be entered right away.

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Thu Jun 15, 2017 1:11 pm
Hi ifesgmbh,

Thanks for the report, we will look into it.

Regards,
Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

ifesgmbh

Posts: 4
Joined: Wed Jun 14, 2017 9:29 pm

Post by ifesgmbh » Wed Jun 21, 2017 12:38 pm
Eric wrote:
Thanks for the report, we will look into it.
Were you able to reproduce the issue?

Can you give an estimate on when the issue will be fixed?

Thanks!

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Wed Jun 21, 2017 12:47 pm
Hi ifesgmbh,

We have added an improvement in the latest beta (1.7.2b1) to force credentials windows into focus, please give it a go and let us know if it is behaving as you would expect - http://sparklabs.com/support/kb/article ... -versions/

Regards,
Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

ifesgmbh

Posts: 4
Joined: Wed Jun 14, 2017 9:29 pm

Post by ifesgmbh » Thu Jun 29, 2017 9:31 pm
I tested the issue again with 1.7.3. There is a noticeable change: now the login dialog blinks, as windows normally do when they require attention.

Unfortunately the window still doesn't bring it self into focus, so that the user can continue to enter the password directly.

Please look into this again.

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Mon Jul 03, 2017 11:39 am
Hi ifesgmbh,

We have tested on multiple versions of Windows from batch and direct from command prompt and in every case the credentials dialog takes focus. If a Window is flashing, it generally means it has been denied focus access because Windows thinks you're busy. For example if you are scrolling through a web browser, this will retain focus.

We're not sure how you are commanding Viscosity to connect, but could you please try the following:

- Open a command prompt
- Run a simple connect command as below, replacing "My Connection" with a connection name of your own:
"C:\Program Files\Viscosity\Viscosity.exe" connect "My Connection"

After you press enter to run the command, do not perform any other actions to ensure a click is not moving focus to another application.

Regards,
Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs

ifesgmbh

Posts: 4
Joined: Wed Jun 14, 2017 9:29 pm

Post by ifesgmbh » Mon Jul 03, 2017 10:29 pm
When issuing the connect command while the Viscosity client has not yet been started, the credentials dialog is in focus and the credentials can be entered right away.

However, when the Viscosity client is already started in the background, the credential dialog only blinks and does not come into focus.

Eric

User avatar
Posts: 1146
Joined: Sun Jan 03, 2010 3:27 am

Post by Eric » Tue Jul 04, 2017 8:32 am
Hi ifesgmbh,

I'm afraid we cannot replicate this behaviour. Whether Viscosity is exited, inactive in the system tray or the Preferences Windows is open, the Credentials Windows take focus off the command prompt window with that command every time. If you are running a certain script that is retaining focus, we can take a look, otherwise this is behaving as we'd expect and something else must be commanding focus on your operating system.

Regards,
Eric
Eric Thorpe
Viscosity Developer

Web: http://www.sparklabs.com
Support: http://www.sparklabs.com/support
Twitter: http://twitter.com/sparklabs
8 posts Page 1 of 1