xShadowx Posted November 17, 2008 Author Share Posted November 17, 2008 Yes. Link to comment Share on other sites More sharing options...
martin Posted November 18, 2008 Share Posted November 18, 2008 Yes.Then here is a simple way. Write your script like this Global $hww, $swintitle = "Untitled - Notepad";put the title of the window to hide here RUn("programtorun.....;the program you want to run and hide Hidewindow();hides the window, Ctrl F10 will bring it back to be visible ;rest of your script if anyting Func HideWindow(); sleep(500);delay to allow window to be created $hww = WinGetHandle($swintitle) Local $hGui1 = GUICreate('Parent');this is the 'holder' for hidden apps DllCall("user32.dll", "int", "SetParent", "hwnd", $hww, "hwnd", $hGui1) HotKeySet("^{F10}", "showWindow") EndFunc ;==>HideWindow Func showWindow() DllCall("user32.dll", "int", "SetParent", "hwnd", $hww, "hwnd", 0) EndFunc ;==>showWindow Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
xShadowx Posted November 18, 2008 Author Share Posted November 18, 2008 I did that, but it isnt hiding the window. Humm. Link to comment Share on other sites More sharing options...
martin Posted November 18, 2008 Share Posted November 18, 2008 I did that, but it isnt hiding the window. Humm.I don't know why it doesn't work. If I do this it works with NotePad. Global $hww, $swintitle = "Untitled - Notepad";put the title of the window to hide here RUn("Notepad.exe");programtorun.....;the program you want to run and hide Hidewindow();hides the window, Ctrl F10 will bring it back to be visible ;rest of your script if anyting while 1 sleep(90) WEnd Func HideWindow(); sleep(500);delay to allow window to be created $hww = WinGetHandle($swintitle) Local $hGui1 = GUICreate('Parent');this is the 'holder' for hidden apps DllCall("user32.dll", "int", "SetParent", "hwnd", $hww, "hwnd", $hGui1) HotKeySet("^{F10}", "showWindow");Ctrl F10 to bring it back EndFunc ;==>HideWindow Func showWindow() DllCall("user32.dll", "int", "SetParent", "hwnd", $hww, "hwnd", 0) EndFunc ;==>showWindow Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
xShadowx Posted November 18, 2008 Author Share Posted November 18, 2008 (edited) Is there any other way to hide the taskbar button? Because that didnt work ether. Edited November 18, 2008 by xShadowx Link to comment Share on other sites More sharing options...
martin Posted November 19, 2008 Share Posted November 19, 2008 Is there any other way to hide the taskbar button? Because that didnt work ether. If you mean that when you run that example the notepad icon still shows on the task bar then I don't know. I have XP Pro SP3. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
xShadowx Posted November 19, 2008 Author Share Posted November 19, 2008 No it works for notepad, just not my app. 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