Jump to content
Sign in to follow this  
erezlevi

help needed with ControlSend

Recommended Posts

erezlevi

hi,

I can't find and either the AutoIT Au3Info.exe does not get the ID, or control of the CMD.exe. I can't activate it for some reason, can some one help?

Run ("cmd.exe")
    sleep (2000)
ControlSend ("c:\WINDOWS\system32\cmd.exe","","ConsoleWindowClass","telnet"); don't work.

thanks,

Share this post


Link to post
Share on other sites
Nahuel

Look at "Run" in the help file:

Remarks

To run DOS (console) commands, try Run(@ComSpec & " /c " & 'commandName', "", @SW_HIDE)

Also, look at _RunDOS()

Share this post


Link to post
Share on other sites
erezlevi

Look at "Run" in the help file:

Also, look at _RunDOS()

yes, but I need to use the controlsend command in order to run a telnet in the backround or when a user is not logged in.

Share this post


Link to post
Share on other sites
martin

hi,

I can't find and either the AutoIT Au3Info.exe does not get the ID, or control of the CMD.exe. I can't activate it for some reason, can some one help?

Run ("cmd.exe")
    sleep (2000)
ControlSend ("c:\WINDOWS\system32\cmd.exe","","ConsoleWindowClass","telnet"); don't work.

thanks,

Have a look at this example.


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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×