jane88borj Posted February 28, 2008 Share Posted February 28, 2008 Hi guys!Can you please help us with this one?The open source software can be found inthis site:http://sourceforge.net/project/showfiles.php?group_id=184915If you have time to explore and run the program,please let me know.We would like to modify the open source program. We would like also to implement the setting of a hotkey to hide same applications. For example, you have 2 opened windows of "notepad",by setting a hotkey for the same applications, you can simultaneously hide them. Let's say you have 5 same windows, you don't need to set a hotkey for each window.That would be all.Thanks! Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 28, 2008 Moderators Share Posted February 28, 2008 Hi guys!Can you please help us with this one?The open source software can be found inthis site:http://sourceforge.net/project/showfiles.php?group_id=184915If you have time to explore and run the program,please let me know.We would like to modify the open source program. We would like also to implement the setting of a hotkey to hide same applications. For example, you have 2 opened windows of "notepad",by setting a hotkey for the same applications, you can simultaneously hide them. Let's say you have 5 same windows, you don't need to set a hotkey for each window.That would be all.Thanks!What's wrong with WinSetState($hWndToHide, "", @SW_HIDE)? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
jane88borj Posted February 28, 2008 Author Share Posted February 28, 2008 (edited) What's wrong with WinSetState($hWndToHide, "", @SW_HIDE)? Hi! Thanks for the reply. Anyways, we can hardly implement the solution to the problem. We can hardly get the code on how to compare similar application windows and ignoring the titles of the windows. Here is the function named "hide" (originally based from WaT-Without a Trace software). It hides only a single application to where there is an assigned hotkey set by the user.We tried to add some lines in asking for user's password to hide an application. And the other thing we would like to add is the hiding of multiple widows of same applications at once. How ca we hide same applications at once? ;--------------------------------------------------------------------------------------------------------------------------------------------------------------------- Func hide() $window = WinList() $text2 = InputBox("SHOW WINDOW PASSWORD", "Type your password to show window!","","*") For $i = 1 to $window[0][0] If $window[$i][0] <> "" And IsVisible($window[$i][0]) And _ $window[$i][0] <> "HAT - 'Hide Application Tool'" And _ $window[$i][0] <> "Program Manager" And _ $window[$i][0] <> "lock" Then $captured[$count] = $window[$i][0] $count = $count + 1 WinSetState($window[$i][0], "", @SW_HIDE) If BitAND(WinGetState($window[$i][0], ""), 2) Then WinSetState($window[$i][0], "", @SW_HIDE) EndIf Exitloop EndIf Next If WinExists("HAT - 'Hide Application Tool'") Then update_lists() EndFunc ;==> hide ;---------------------------------------------------------------------------end of func------------------------------------------------------------------------------------------ Edited February 28, 2008 by jane88borj 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