Show/Hide Taskbar during execution

Best practices, code snippets for common functionality, examples, and guidelines.
Vaughan.Douglas
Posts: 250
Joined: Tue Mar 24, 2015 5:05 pm
Location: Des Moines, Iowa, USA

Show/Hide Taskbar during execution

Post by Vaughan.Douglas » Wed Oct 12, 2016 3:58 pm

I previously reported an issue where Ranorex was clicking on taskbar icons rather than the actual elements. I managed a work around, but it required a method call each time I needed to use it.

I've found another approach that I'd like some input on. I found a solution over at CodeCall that just hides the taskbar. I'd like to get some community thoughts on this method from a best practices perspective. Are there cons that I'm not seeing to implementing such a solution?

Does anyone know if this will still work in Windows 10?
Doug Vaughan

asdf
Posts: 174
Joined: Mon Mar 21, 2016 3:16 pm

Re: Show/Hide Taskbar during execution

Post by asdf » Fri Oct 14, 2016 2:11 pm

Hi Douglas,

I was facing a similar problem a while ago and for me, the solution was to turn of the "Auto-hide"-function of the taskbar.
I took a look on the mentioned codecall post, but unfortunately, I'm not that familiar with VB. So I can't give you any recommendations on this.

I hope this helps.

Best regards,
asdf

Vaughan.Douglas
Posts: 250
Joined: Tue Mar 24, 2015 5:05 pm
Location: Des Moines, Iowa, USA

Re: Show/Hide Taskbar during execution

Post by Vaughan.Douglas » Mon Oct 24, 2016 12:21 pm

asdf wrote:Hi Douglas,

I was facing a similar problem a while ago and for me, the solution was to turn of the "Auto-hide"-function of the taskbar.
I took a look on the mentioned codecall post, but unfortunately, I'm not that familiar with VB. So I can't give you any recommendations on this.

I hope this helps.

Best regards,
asdf
I think I'd prefer for a coded implementation of "Auto-hide", but I wasn't able to find an example of that. The biggest drawback of the code sample I pointed to is that if the code is terminated before the taskbar is reset, it will be gone. There are a number of easy ways to implement a work around for that situation, but the easiest workaround is to not need a workaround.
Doug Vaughan