Jump to content
Sign in to follow this  
Jabberwock

Need a little help

Recommended Posts

I can't seem to set $data into a dos string, is it possible to set a defined variable in there? talking about the

_RunDOS( "commandhere $data" )


Share this post


Link to post
Share on other sites

try the following, it will create a command window and won't close till you close it, this way you can see if there are errors

RunWait (@ComSpec & ' /k ping ' & $data2 & ' /t /l ' & $data)


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

lol, sorry to bother again, would it be possible to add a toggle button to this command to start and stop it? because when i get it running without the window, i have to ctrl alt delete it


Share this post


Link to post
Share on other sites

well, i assume that would work, but once it's been started, it ignores every other function, the script won't even close untill you ctrl alt delete cmd.exe and ping.exe, any ideas?


Share this post


Link to post
Share on other sites

the command will work, i also noticed the ping command ignored all ctrl-breaks etc.. so i started the ping like above and then ran a script with just the processclose command in it and it killed the ping.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

yw B)

you might to think about putting some error checking in there, if they forget to set the data, and hit the start then it should not run the command

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

well, i would, but i'm kinda nub at this, still learning the code, i wish there was like a big list of commands and what they do, other than the help files


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...