AutoHotkey Community

It is currently May 27th, 2012, 1:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 73 posts ]  Go to page Previous  1, 2, 3, 4, 5
Author Message
 Post subject:
PostPosted: March 20th, 2010, 2:02 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Find and delete the following in the script.
Code:
lParam=0x205||


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 28th, 2010, 6:07 pm 
Offline

Joined: July 25th, 2010, 12:28 pm
Posts: 5
Is there a way to show the icon of the hidden window always in the taskbar. I usually minimize a window to tray and forget about it. By default taskbar hides them after few seconds. Is there a way to make the icon always visible?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 4th, 2010, 6:18 am 
Offline

Joined: July 11th, 2010, 4:36 am
Posts: 16
Sean wrote:
Maybe list all minimized and hidden windows and let the user select ones then show them?


This sounds like a phenomenal addition/standalone script to me, any chance you've tried it or could point me in the right direction do take a crack at it?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2011, 4:51 am 
Offline

Joined: September 13th, 2010, 10:11 am
Posts: 51
Location: rock>8<hardplace
Necrophilia strikes again!

I'm using the WinTrayMin script in Vista-64bit, and it works well EXCEPT the following apps don't show an icon in the tray, only a blank spot:
MS Paint, Notepad, Calculator, and any CHM compiled help file I've tried.
All other MS products, and every 3rd-party app I've tried are just fine.

I tried both the original sequence to pull the icon, and Art's modification, but neither worked for me, and I don't understand DllCall very well, so I don't know what to troubleshoot.

Can anybody advise what I might try to fix this?

_________________
Antique Newbie


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2011, 1:23 pm 
Offline

Joined: October 13th, 2009, 10:09 pm
Posts: 1389
I think the problem might lie in some applications being 64bit and use differently-sized memory structures.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2011, 1:24 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
This script was written for AHK Basic, i.e., is compatible only with 32bit and ANSI.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 16th, 2011, 3:42 pm 
Offline

Joined: October 13th, 2009, 10:09 pm
Posts: 1389
I was assuming he was running a 32bit AHK version on an x64 system and had problems with x64 procresses.

Since it's not clear what AHK version is used, please specify that.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 17th, 2011, 5:01 am 
Sorry, I should have included that I have used the script with AHK Basic, and with AHK_L ansi, on Vista-64-bit.

As I said, all apps display their icons in the tray *except* the four I listed.
I kind of thought that if it was a 64-bit problem, *all* icons would fail.

So maybe it is a very odd compatibility problem that only affects specific applications running under Vista 64-bit. I have no other 64-bit computer to test with, so that's the end of my trouble-shooting.

Any ideas?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 17th, 2011, 12:02 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
I tested my custom script with both 32/64-bit UNICODE builds in my 64bit WIN7, and it worked. During the test, however, I noticed that Notepad et al didn't respond to WM_GETICON. I suppose this was the reason why I had chosen SHGetFileInfo than WM_GETICON. Anyway, I updated the posted script, to remove caching of the hIcons. Re-download it.

The updated script is still for AHK Basic, i.e., not compliant with 64bit and/or UNICODE. Although I did nothing to make it UNICODE compatible, due to the chosen APIs, it'll almost work with 32bit UNICODE build too.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: You deserve angel wings!
PostPosted: February 18th, 2011, 1:06 pm 
Offline

Joined: September 13th, 2010, 10:11 am
Posts: 51
Location: rock>8<hardplace
Ah, god bless you sir, you are a true gentleman.
Thank you so much for taking the time to fix that.

_________________
Antique Newbie


Report this post
Top
 Profile  
Reply with quote  
PostPosted: April 21st, 2011, 2:42 am 
Offline

Joined: April 2nd, 2010, 12:46 pm
Posts: 24
I'm on Win7 x64 and I want to traymin a window with functions from this script (dl'd from the first message in the thread). I get my window's ID with "WinGet, myAppID, ID, myApp", then I call WinTrayMin(myAppID). The app gets minimized to the taskbar, not the systray. Is WimTraymin incompatible with Win7 x64? I copied the two relevant functions to my script (WM_SHELLHOOKMESSAGE() and WinTrayMin()) and I can verify with a msgbox from within WinTrayMin (msgbox %hWnd%) that my window ID is coming in OK.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 30th, 2011, 4:05 pm 
Offline

Joined: July 18th, 2011, 3:08 pm
Posts: 58
This is a great script, thanks Sean!
I have one question, what is the purpose of the
Code:
TrayminOpen:
label at the very top, because that label never seems to be invoked from anywhere?
Is that somehow executed in the auto-execute itself?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 17th, 2012, 2:23 am 
Offline

Joined: February 14th, 2012, 8:09 pm
Posts: 20
I have tried several things but failed. How can I modify WinTrayMin.ahk so clicking on the Close [X] button will minimize the active window to the tray instead of sending all of them to the taskbar? thanks...


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 73 posts ]  Go to page Previous  1, 2, 3, 4, 5

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group