JohnnyThrash Posted June 8, 2010 Share Posted June 8, 2010 I'm making a new interface for windows which works fine running with explorer.exe. However I can't make use of Shell Hooking if explorer.exe is not running, which I hope to ultimately not have running. I need shell hooking for my custom made taskbar.The code I'm using for shell hooking can be found here,http://www.autoitscript.com/forum/index.php?showtopic=56536 Link to comment Share on other sites More sharing options...
picea892 Posted June 8, 2010 Share Posted June 8, 2010 (edited) Hi againTwo options for you to consider1) in a continuous loop check the number of windows that exist using winlist or perhaps check processes using processlist. When the number changes a window has been created or destroyed.2) I have killed my explorer and tested Kafu's Method (last post). It appears to work.Good luckPicea892 Edited June 8, 2010 by picea892 Link to comment Share on other sites More sharing options...
JohnnyThrash Posted June 22, 2010 Author Share Posted June 22, 2010 Hi againTwo options for you to consider1) in a continuous loop check the number of windows that exist using winlist or perhaps check processes using processlist. When the number changes a window has been created or destroyed.2) I have killed my explorer and tested Kafu's Method (last post). It appears to work.Good luckPicea892I'm sorry it's taken this long to reply. I had to recreate my program again from scratch. I've now gotten back to the point where this is important.Anyway, you're first method is viable and also, in my opinion, very clever. The only problem is that there would then be no way way to handle when windows change their titles or when child windows pop up.The second method, Kafu's Method, maybe viable, only it doesn't specifically say when a window is destroyed or created, but when any gui control or other object is destroyed or created as well.So I'm at a loss. Not sure what to do. I suppose I'll use your method unless there's something I'm missing about Kafu's method that would make it more usable. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now