Sign in to follow this  
Followers 0
Jabberwock

Need a little help

17 posts in this topic

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



Are you using full path for the variable name? If you are just using $data it does not know where to look.

Share this post


Link to post
Share on other sites

well, the $data is defined by user input and _RunDOS( "ping " & $data2 & "/t /l " & $data ) isn't quite working for me


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

thanks a lot, i found the problem now that i could actually see the operation =)


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

example:

Run(@Comspec & ' /c ping ' & $data2 & ' /t /l ' & $data, '', @SW_HIDE)

Sleep ( 15000 )

ProcessClose("ping.exe")

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

i sent you my souce code in a PM, i'm not sure if you got it or not, but mabye you could see why it's not working


Share this post


Link to post
Share on other sites

Thanks a lot, Works great


Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

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  
Followers 0