Jump to content

Recommended Posts

Posted (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 by gcue
Posted
  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.
Posted

  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.
Posted (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 be

WinSetState("C:\WINNT\system32\cmd.exe","", @SW_Minimize)

Edited by gcue
  • 5 months later...
Posted

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?

Posted

  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µ¤
Posted

works great!

i actually used

Run("mmc " & @SystemDir & "\compmgmt.msc /computer:\\" & $asset)

many thanks!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...