Jump to content
Sign in to follow this  
Excaluber

Send sentences?

Recommended Posts

Excaluber

I'm working on typing up a program to skip lines (using premade program) and then entering a sentence, instead of going:

Send("{#}")
Send("{N}")
Send("{#}")
Send("{N}")
Send("{#}")
Send("{N}")
Send("{#}")
Send("{N}")
Send("{#}")
Send("{N}")
Send("{#}")
Send("{N}")

over and over again, and typing sentences individually, will it work to just type it all up in one "Send"?

*#N is skipping lines*

Share this post


Link to post
Share on other sites
igmeou

Why wouldn't you use loops to send repeated strings?

Example:.

For $count = 1 To 5 
   Send("#N");Can split it into what you/cyberslug have did
   Sleep(50); Set delay between keys send
Next

Or other loops like while...wend and Do...Until

Edited by igmeou

[font="Arial"]Thanks[/font]
If @error = me Then $sorry
Else
   Do
      $clarifyMe
   Until $meClear
EndIF
MsgBox(0,"Special Message!","Special Thanks to " & $allHadReplied,$Forever)

Share this post


Link to post
Share on other sites
johna007

The best way to send a sentence is

$var = "My very long sentence................"

ClipPut($var) ;Put contents of variable in the clipboard

Send("^v") ; Send Ctrl+V Paste it to a focus window

Johna007

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  

×