gcue Posted June 8, 2008 Posted June 8, 2008 (edited) i did a winlist() and used the same title reported from the arraydisplay, cant seem to change the state of any dos windows.. anyone else encounter this issue? Edited November 10, 2008 by gcue
martin Posted June 8, 2008 Posted June 8, 2008 gcue said: i did a winlist() and used the same title reported from the arraydisplay, cant seem to change the state of any dos windows.. anyone else encounter this issue?What style were you trying to change? Any examples? 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.
martin Posted June 8, 2008 Posted June 8, 2008 gcue said: here's two examples 1) Run(@ComSpec & " /c compmgmt.msc /computer=" & $asset) the dos window that shows up has a title "C:\WINNT\system32\cmd.exe" i then run WinSetState("", "C:\WINNT\system32\cmd.exe", @SW_Minimize) nothing happens i do a winlist() and verify that im using the write title 2) Run("c:\program files\winzip\wzunzip.exe -d -e -Jhrs -o " & $avRet[0] & " c:\") WinSetState("", "c:\program files\winzip\wzunzip.exe", @SW_Minimize) no dice =/ Well you seem to have the title and text mixed up, it should be WinSetState("C:\WINNT\system32\cmd.exe","", @SW_Minimize) 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.
gcue Posted June 8, 2008 Author Posted June 8, 2008 (edited) ya i had already tried it that way too =/i just noticed that if i run a seperate script in conjunction, it will minimize it... interesting. martin said: Well you seem to have the title and text mixed up, it should beWinSetState("C:\WINNT\system32\cmd.exe","", @SW_Minimize) Edited June 8, 2008 by gcue
gcue Posted November 10, 2008 Author Posted November 10, 2008 has anyone been able to get this working? run compmgmt.msc on a remote pc and hide the dos window? this works but it also hides the computer management window itself: Run(@ComSpec & " /c compmgmt.msc /computer=" & $asset, "", @SW_HIDE)oÝ÷ Ú&¥²kçm+0'!j[(v¬mÂäjëh×6 Run(@ComSpec & " /c compmgmt.msc /computer=" & $asset) WinSetState("C:\WINNT\system32\cmd.exe", "", @SW_HIDE) *sigh*, any ideas?
Briegel Posted November 10, 2008 Posted November 10, 2008 gcue said: has anyone been able to get this working? run compmgmt.msc on a remote pc and hide the dos window? this works but it also hides the computer management window itself: Run(@ComSpec & " /c compmgmt.msc /computer=" & $asset, "", @SW_HIDE)oÝ÷ Ú&¥²kçm+0'!j[(v¬mÂäjëh×6 Run(@ComSpec & " /c compmgmt.msc /computer=" & $asset) WinSetState("C:\WINNT\system32\cmd.exe", "", @SW_HIDE)oÝ÷ ÚÈ ©ò׳ú®¢×£*.æ§²¶§X¤zØb±«¢+ÙIÕ¸ ÅÕ½ÐíµµèÀäÈíÝ¥¹½ÝÌÀäÈíÍåÍÑ´ÌÈÀäÈí½µÁµµÐ¹µÍ½½µÁÕÑÈèÀäÈìÀäÈìÅÕ½ÐìµÀìÀÌØíA 9µ¤
gcue Posted November 10, 2008 Author Posted November 10, 2008 works great! i actually used Run("mmc " & @SystemDir & "\compmgmt.msc /computer:\\" & $asset) many thanks!
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