Jump to content
Sign in to follow this  
Max in montreal

Sending characters

Recommended Posts

Max in montreal

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}")

Share this post


Link to post
Share on other sites
Max in montreal

perfect!

you guys are great thanks!

Share this post


Link to post
Share on other sites
Valuater

perfect!

you guys are great thanks!

Welcome

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
Max in montreal

sigh....so i am using;

WinMove("Untitled -", "", 0, 0, 300, 700)

WinActivate("Untitled -")

$var = 32

do

Send(Chr($var))

send("{enter}")

$var = $var + 1

until $var = 126

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

Share this post


Link to post
Share on other sites
Max in montreal

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

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  

×