WinHide Win10 Skype

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
m0b-ua
Posts: 12
Joined: 31 Aug 2016, 06:35

WinHide Win10 Skype

13 Apr 2017, 02:26

Hi! I using AHK script to hide/show old Skype window.
But yesterday I've installed new modern Windows 10 Skype, so i adapted my script for it:

Code: Select all

^`::
skypename =  Skype ahk_class ApplicationFrameWindow
DetectHiddenWindows, On
IfWinNotExist %skypename%
{
	Run, skype.lnk
}
Else
{	
	DetectHiddenWindows, Off
	ifWinActive, %skypename%
	{
	  SendInput !{ESC} 
	  sleep 10
	  WinHide, %skypename%
	}
	else
	{
	  WinShow , %skypename%
	  WinActivate, %skypename%
	}
}
return
Script working almost fine, it hides window but it won't hide taskbar icon. I've tested, the same for other Windows 10 modern apps, Calculator for example.
Is there a way to hide Windows 10 modern apps similarly to old win32 ones?
Last edited by m0b-ua on 27 Jun 2017, 14:44, edited 3 times in total.
User avatar
DyaTactic
Posts: 221
Joined: 04 Apr 2017, 05:52

Re: WinHide Win10 Skype

13 Apr 2017, 08:14

I updated the WinTitle and made the script work with the HWND instead of the WinTitle. The Run part is not tested. You can tune it yourself.

Code: Select all

; AutoexecuteSection.
SkypeName := "ahk_id " WinExist("Skype ahk_class tSkMainForm")

; End of AutoexecuteSection.

^`::	Hotkey Ctrl + `.
;skypename =  Skype ahk_class ApplicationFrameWindow
DetectHiddenWindows, On
IfWinNotExist %skypename%
{
	Run, skype.lnk
	;SLEEP, 1000	; Wait for the window to appear.
	; I did not test this part. I have no idea how long it takes and if a delay is required.
	
	; Changed the WinTitle to "Skype ahk_class tSkMainForm" instead of "Skype ahk_class ApplicationFrameWindow".
	SkypeName := "ahk_id " WinExist("Skype ahk_class tSkMainForm")	; Store the unique HWND of skype, this can improve performance.
}
Else
{
	DetectHiddenWindows, Off
	ifWinActive, %skypename%
	{
	  SendInput !{ESC} 
	  ;sleep 10
	  WinHide, %skypename%
	}
	else
	{
	  WinShow , %skypename%
	  WinActivate, %skypename%
	}
}
return
Hope this works. If you miss something? Ask me anytime.
Last edited by DyaTactic on 15 Apr 2017, 07:48, edited 1 time in total.
m0b-ua
Posts: 12
Joined: 31 Aug 2016, 06:35

Re: WinHide Win10 Skype

14 Apr 2017, 02:27

DyaTactic wrote:I updated the WinTitle and made the script work with the HWND instead of the WinTitle. The Run part is not tested. You can tune it yourself.
Hope this works. If you miss something? Ask me anytime.
Thanks, but i think you understand me wrong. There is no problem with window identification. The problem is about WinHide function it hides window but taskbar entry remains. And i want taskbar entry to be hidden while the window is hidden! This problem belongs to all Windows 10 modern windows, like Windows 10 Calculator, Settings, etc.
User avatar
DyaTactic
Posts: 221
Joined: 04 Apr 2017, 05:52

Re: WinHide Win10 Skype

14 Apr 2017, 14:16

So, the WinHide command hides the window but does not remove the taskbar icon. This could ofcourse be due to Skype being pinned to the taskbar, but ofcourse that is not the point. On my pc the problem was more finding the window again to show it.

Is the Skype window still visable if there are no other windows open? (after running the skript) There is also the SEND, !{ESC} command, it could be that this is the only command executing succesfuly. Alt + Escape hides the window under all other windows, but when all other windows are minimized Skype is still visable.

So, is the window truly hidden or can it be made visable again? (not via autohotkey)
m0b-ua
Posts: 12
Joined: 31 Aug 2016, 06:35

Re: WinHide Win10 Skype

14 Apr 2017, 14:39

By taskbar icon i mean running program icon, not pinned.
Skype is truly hidden! There is no Skype when no other apps and it doesn't appears when i click on taskbar icon.
If i change virtual desktop shile Skype is hidden this way (Win 10 build in feature), and then change it back Skype appears . I think it's because Win10VD also uses WinHide or something related.
User avatar
DyaTactic
Posts: 221
Joined: 04 Apr 2017, 05:52

Re: WinHide Win10 Skype

15 Apr 2017, 07:46

I corrected my script above by adding this to the the autoexecutesection:

Code: Select all

SkypeName := "ahk_id " WinExist("Skype ahk_class tSkMainForm")
(I'll update the code in my first reply.)

I see. The ideas I had about what could be wrong seem to be incorrect.
On my pc the script above in my reply behaves as follow:
First Ctrl + `: Activate skype window (skype was already open but not the active window)
Second Ctrl + `: Hide the skype window, only my pinned skype taskbaricon is visable. Clicking it has no effect. Activating an empty desktop and swichting back still hides the skype window.
Third Ctrl + `: The Skype window is visable again.

This is how it works on my pc now and I belive this is intended. Im sorry to not have an idea what is wrong in your situation.
Tell me if you find something or if you have more questions.
m0b-ua
Posts: 12
Joined: 31 Aug 2016, 06:35

Re: WinHide Win10 Skype

15 Apr 2017, 08:45

I am sorry we do not understand each other!
I am talking not about "old" Skype (skype.exe, title: Skype™‎ - <your account name>, ahk_class tSkMainForm, ahk_exe Skype.exe), i have no trouble with it!
I am talking about the new "modern" Skype (title: Skype, ahk_class ApplicationFrameWindow, ahk_exe ApplicationFrameHost.exe), wich i installed this week in Windows 10 store!

It looks like this: http://w7phone.ru/wp-content/uploads/20 ... p-dark.jpg
And it is not a win32 window as Explorer, Internet Explorer!
It is similar to Windows 10 Settings/EDGE/Calculator/Store window!
User avatar
DyaTactic
Posts: 221
Joined: 04 Apr 2017, 05:52

Re: WinHide Win10 Skype

15 Apr 2017, 09:08

Aaah. That changes things a lot. Sorry I was not aware of this version. I thought Skype was just Skype.
I can't help you further then. Good luck.
m0b-ua
Posts: 12
Joined: 31 Aug 2016, 06:35

Re: WinHide Win10 Skype

15 Apr 2017, 09:46

Templuary solution:

Code: Select all

^`::
SkypeName := "ahk_id " WinExist("Skype ahk_class ApplicationFrameWindow")
DetectHiddenWindows, On
IfWinNotExist %skypename%
{
	Run, skype.lnk
	SkypeName := "ahk_id " WinExist("Skype ahk_class ApplicationFrameWindow")
}
Else
{	
	DetectHiddenWindows, Off
	ifWinActive, %skypename%
	{
	  WinKill, %skypename%
	}
	else
	{
	  WinShow , %skypename%
	  WinActivate, %skypename%
	}
}
return
But closing app is slower than unhide. And also after closing selected chat and cursor position changes. So i still searching!
m0b-ua
Posts: 12
Joined: 31 Aug 2016, 06:35

Re: WinHide Win10 Skype

27 Jun 2017, 09:52

Up! Anyone? The issue is still open!
robertcollier4
Posts: 33
Joined: 09 Apr 2016, 22:14

Re: WinHide Win10 Skype

27 Jun 2017, 10:22

http://www.intowindows.com/how-to-remov ... -quitting/
Remove Skype icon from Windows 10 taskbar
Step 1: Launch Skype. Click Tools menu and then click Options.
Step 2: Click Advanced settings tab as shown in the picture below.
Step 3: On the right-side, uncheck the option titled Keep Skype in the taskbar while I’m singed in. Finally, click Save button. That’s it!
m0b-ua
Posts: 12
Joined: 31 Aug 2016, 06:35

Re: WinHide Win10 Skype

27 Jun 2017, 14:39

robertcollier4 wrote:http://www.intowindows.com/how-to-remov ... -quitting/
Remove Skype icon from Windows 10 taskbar
Step 1: Launch Skype. Click Tools menu and then click Options.
Step 2: Click Advanced settings tab as shown in the picture below.
Step 3: On the right-side, uncheck the option titled Keep Skype in the taskbar while I’m singed in. Finally, click Save button. That’s it!
Tnx, but again you are talking about Skype.exe downloaded from skype.com web site! And im talking about Skype from Windows Store, and there is no "Tools" menu in this Skype!
m0b-ua
Posts: 12
Joined: 31 Aug 2016, 06:35

Re: WinHide Win10 Skype

29 Jun 2017, 01:26

It's not about tray icon, its about taskbar icon. WinHide function used to hide window with taskbar icon, but with modern apps like Windows 10 calculator, settings, calendar, etc it acts buggy, it hides window but not taskbar icon!

I just want hotkey binding to show/hide messenger window for quick access to it!
gamergames

Re: WinHide Win10 Skype

30 Nov 2017, 13:36

m0b-ua wrote:It's not about tray icon, its about taskbar icon. WinHide function used to hide window with taskbar icon, but with modern apps like Windows 10 calculator, settings, calendar, etc it acts buggy, it hides window but not taskbar icon!

I just want hotkey binding to show/hide messenger window for quick access to it!
hey OP. ever figured it out?
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: WinHide Win10 Skype

30 Nov 2017, 16:17

I have one or two ideas for hiding the taskbar button in Windows 10 here:

Code: Select all

WinHide does not hide win 10 - AutoHotkey Community
[url]https://autohotkey.com/boards/viewtopic.php?f=5&t=40696[/url]
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: inseption86, just me, Rohwedder, Spawnova and 171 guests