faithless Posted April 19, 2010 Share Posted April 19, 2010 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 Link to comment Share on other sites More sharing options...
picea892 Posted April 19, 2010 Share Posted April 19, 2010 send an ascii code such as Chr(72) Link to comment Share on other sites More sharing options...
faithless Posted April 19, 2010 Author Share Posted April 19, 2010 could you please paste the string? Link to comment Share on other sites More sharing options...
picea892 Posted April 19, 2010 Share Posted April 19, 2010 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. Link to comment Share on other sites More sharing options...
faithless Posted April 19, 2010 Author Share Posted April 19, 2010 (edited) 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 April 19, 2010 by faithless Link to comment Share on other sites More sharing options...
faithless Posted April 19, 2010 Author Share Posted April 19, 2010 (edited) shit! now the program gets the same random values every time! ty again, the random was out of the while Edited April 19, 2010 by faithless Link to comment Share on other sites More sharing options...
ChrisL Posted April 19, 2010 Share Posted April 19, 2010 Am I missing something here? Why are people suggesting using ascii values to send upper case letters. What's wrong with good old Send("ABCDEFGHIJKLMNOPQRSTUVWXYZ") [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
ChrisL Posted April 19, 2010 Share Posted April 19, 2010 (edited) 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 April 19, 2010 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now