Jump to content
Sign in to follow this  
DBLAY

sleep command?

Recommended Posts

my script contains the enter key. Once enter is activated the rest of the script doesn't work. What do I need to get it to work? what does the sleep command do?

Share this post


Link to post
Share on other sites

the sleep command makes you script pause

do I need a pause after enter is activated? how do I do a 5 second pause?

Share this post


Link to post
Share on other sites

Sleep(5000);five seconds

It would be easier to help you if you could post the code for what you are trying to do.



Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

do I need a pause after enter is activated? how do I do a 5 second pause?

It's a mainframe script to save manual key strokes. The part after {enter} doesn't activate. The {sleep(3000)} didn't work.

SEND "1H"

SEND "A3150"

SEND "04120"

SEND "{ENTER}"

SEND "{SLEEP(3000)}"

SEND "DESCRIPTION GOES HERE"

Share this post


Link to post
Share on other sites

I do not know what you are using but it is not AutoIt version 3. If version 3 is what you are meant to be using you need to study the help files. If you are using version 2 (I have never used it so I cant recognise it) you are in the wrong forum.



Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

I do not know what you are using but it is not AutoIt version 3. If version 3 is what you are meant to be using you need to study the help files. If you are using version 2 (I have never used it so I cant recognise it) you are in the wrong forum.

I'm not sure what I'm using. It's a .dcp file and when copiled it's a .dct file. thanks for your help.

Share this post


Link to post
Share on other sites

It's a mainframe script to save manual key strokes. The part after {enter} doesn't activate. The {sleep(3000)} didn't work.

SEND "1H"

SEND "A3150"

SEND "04120"

SEND "{ENTER}"

SEND "{SLEEP(3000)}"

SEND "DESCRIPTION GOES HERE"

If you mean like a keylogger, take it to another forum

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  

×
×
  • Create New...