Jump to content
Sign in to follow this  
faithless

Need really fast and easy help here!

Recommended Posts

faithless

I don't want to waste your time, so please could you paste the string to send a capital letter?

I already tried

send("{capslock on}b{capslock off}")

and also shift. So, paste here and I'll be happy :(

Share this post


Link to post
Share on other sites
picea892

send an ascii code such as Chr(72)

Share this post


Link to post
Share on other sites
faithless

could you please paste the string?

Share this post


Link to post
Share on other sites
picea892

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

$x = Chr(65)

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

see the appendix of the help doc.

Share this post


Link to post
Share on other sites
faithless

ok I managed to do this. now i'm having another problem that I can't fix. when I use a switch to make a random letter, it sends numbers. example:

case returns letter c

it sends .21744761290029

----

tyvm for your time, i needed to use the flag on random to get integer numbers. see you

Edited by faithless

Share this post


Link to post
Share on other sites
faithless

shit!

now the program gets the same random values every time!

ty again, the random was out of the while

Edited by faithless

Share this post


Link to post
Share on other sites
ChrisL
ChrisL

What do you need it to do?

A random upper case letter can be generated like this

Local $aLetters = StringSplit("ABCDEFGHIJKLMNOPQRSTUVWXYZ","")
   Local $RandomLetter = $aLetters[Random(1,26,1)]
   Msgbox(0,"Random Letter", $RandomLetter)

Or a Random upper case string of 6 characters

Local $aLetters = StringSplit("ABCDEFGHIJKLMNOPQRSTUVWXYZ","")
Local $RandomString = ""

For $i = 1 to 6
    $RandomString &= $aLetters[Random(1,26,1)]
Next

Msgbox(0,"Random String",$RandomString)
Edited by ChrisL

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  

×