Sign in to follow this  
Followers 0
langthang084

send code proplem

6 posts in this topic

i'm newbie and i cant use the code like :

send("send("{ENTER 10}")")

could somebody help me with this problem?

Thanks

Share this post


Link to post
Share on other sites



i'm newbie and i cant use the code like :

send("send("{ENTER 10}")")

could somebody help me with this problem?

Thanks

What you want to do? Send ENTER 10 times?

Have not sense: send("send..

Use only: Send("{ENTER 10}") :) A look to the help file give you the same result.


Best Regards BugFix  

Share this post


Link to post
Share on other sites

Welcome to the forums.

Just some clarification....

You wish to send "Send('{ENTER 10}"

or

Actually emulate pressing the enter key 10 times...

?

If you answered yes to number 1, you need to muck around with the quotation marks ("" or '').

Something like this should work:

Send ('Send ("{Enter 10}")', 1)

Notice how I added the flag to send the keys raw. I won't bother explaining how it works in depth, but basically with raw mode, whatever you specify in the send command, will be sent. Without it, stuff like ^+! and things {} will be parsed and the correct keys sent. Have a look in the helpfile for more.

If you want to send enter 10 times, than this is all you need:

Send ("{Enter 10}")

Cheers,

Brett

Share this post


Link to post
Share on other sites

I just want to type "send("{ENTER 10}")" automatically in Script Editor

Share this post


Link to post
Share on other sites

Ohh!! Sorry and thanks BRETTF!!

I already read your post but when i run this script the result is type "send(" and ENTER 10 times. Now i do again , it work (Maybe i didnt type "1") ^^!

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