AutoHotkey Community

It is currently May 26th, 2012, 10:06 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: October 16th, 2008, 4:40 am 
Offline

Joined: October 6th, 2008, 5:55 pm
Posts: 13
Is there any way to hide the taskbar button when making a DllCall that produces a dialog? I'm using the following code.

Code:
#NoTrayIcon
#NoEnv
#SingleInstance force

SHERB_NOCONFIRMATION := 1
SHERB_NOPROGRESSUI   := 2
SHERB_NOSOUND        := 4
Flag := 0  ; Combine any of the above values

DllCall("Shell32\SHEmptyRecycleBinA", UInt,0, UInt,0, UInt, Flag)


When the confirmation dialog is displayed, a taskbar button is displayed. I want to mimic the standard Windows empty recycle bin behavior which does not show the taskbar button.

Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 16th, 2008, 11:55 pm 
Offline

Joined: November 8th, 2004, 12:46 am
Posts: 1271
Code:
#NoTrayIcon
#NoEnv
#SingleInstance Force

Gui, +LastFound
hwnd := WinExist()

SHERB_NOCONFIRMATION := 1
SHERB_NOPROGRESSUI   := 2
SHERB_NOSOUND        := 4
Flag := 0  ; Combine any of the above values

DllCall("Shell32\SHEmptyRecycleBinA", UInt,hwnd, UInt,0, UInt,Flag)

_________________
"Anything worth doing is worth doing slowly." - Mae West
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 17th, 2008, 4:20 am 
Offline

Joined: October 6th, 2008, 5:55 pm
Posts: 13
Works perfectly. Thank you.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: [VxE], Google Feedfetcher, iBob35555VR, Tilter_of_Windmills and 76 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