Jump to content

Recommended Posts

Posted

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

Posted

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..

  • Administrators
Posted

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)


 

Posted (edited)

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

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
×
×
  • Create New...