Jump to content

Sending characters


Recommended Posts

Send("{ASC 65}")...i understand it to send the letter a.

how can i put this in a loop, and send a letter depending on what $var is?

here is what i have so far...

$var = 65
do
Send("{ASC $var}")
$var = $var + 1
until $var = 100

but it will not work. what is the proper way to do this? it works if i have it like this...Send("{ASC 65}")

Link to comment
Share on other sites

  • Administrators

sigh....so i am using;

why would there be spaces? for example the + is shown as a space..

Some chars are "special" like + ^ # (check the help page). So you need to send in raw mode:

Send(Chr($var), 1)

Link to comment
Share on other sites

next question...

i would like to use this example;

MsgBox(0, "Count down!", $i)

but replace the variable with the letter...so if $i happens to be 65, i would like it to show the a in the message box...

Edited by Max in montreal
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...