Sign in to follow this  
Followers 0
-TS-

help with send chr

4 posts in this topic

#1 ·  Posted (edited)

not to sure if this is right

Send( chr($1) )

if this is wrong plz post the correct coding THX

or would i have to

$chr1 = chr($1)
Send($1)
Edited by -TS-

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

What is $1 supposed to be? It it's a variable, I think it needs to start with a letter such at $a or $var1

Send(Chr(9)) ;that's the tab character

$var = 9

Send(Chr($var))

$foo = Chr(9)

Send($foo)

To send the ASCII value A (same as pressing ALT+065 on the numeric keypad)

Send("{ASC 65}")

Single keys can also be repeated, e.g.

Send("{DEL 4}") Presses the DEL key 4 times

Send("{S 30}") Sends 30 'S' characters

Send("+{TAB 4}) Presses SHIFT+TAB 4 times

If you with to use a variable for the count, try

$n = 4

Send("+{TAB " & $n & "}")

If you wish to send the ASCII value A four times, then try

$x = Chr(65)

Send("{" & $x & " 4}")

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Can you post some of the script?

Share this post


Link to post
Share on other sites

cyberslug, everyone is not a complete noob at scripting all you hada say is that i set it up right.. but thx for your time and help

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