bobbby Posted October 9, 2010 Share Posted October 9, 2010 (edited) How do i make so controlsend can send passwords that is uppercase and lowercase?When i send 123456ABCabc1234567 it comes out as, 123456abcabc1234567.Why does it do that? what do i do wrong?The code comes from a settings file and puts inside a variable that sends via controlsend. Edited October 9, 2010 by bobbby Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 9, 2010 Moderators Share Posted October 9, 2010 bobbby,Use the final "flag" parameter of ControlSend to send the keys "raw" - that ususally works. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
bobbby Posted October 9, 2010 Author Share Posted October 9, 2010 bobbby,Use the final "flag" parameter of ControlSend to send the keys "raw" - that ususally works. M23I use raw, but it still not send it in uppercase :/Maybe the textinput can't accept that, or check for caps and shift keys when they are pressed? Link to comment Share on other sites More sharing options...
wakillon Posted October 9, 2010 Share Posted October 9, 2010 Have you try with ControlSetText ? AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
bobbby Posted October 10, 2010 Author Share Posted October 10, 2010 Have you try with ControlSetText ? I tried, but its change only the titlebar instead of the text.And it's flash too. So controlsend should be that method or send. And i can't get it to work with uppercase and lowercase. Link to comment Share on other sites More sharing options...
wakillon Posted October 10, 2010 Share Posted October 10, 2010 I tried, but its change only the titlebar instead of the text.Do you use AutoIt Window Info for find the good ControlId ? AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
martin Posted October 10, 2010 Share Posted October 10, 2010 bobbby,Use the final "flag" parameter of ControlSend to send the keys "raw" - that ususally works. M23In my experience ControlSend is not very reliable. I have a script that uses it with the raw flag for sending text like"IAL.0=IAL.0 or 2^7".Every now and then this will be received as something like"IAL>0=IAL.) or 2^7"as though the shift was pressed for '.' or '>'. Changing the options for key delays hasn't helped me but it might help others. (SendKeyDownDelay, SendKeyDelay)If the control is suitable perhaps ControlCommand will work better. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
bobbby Posted October 14, 2010 Author Share Posted October 14, 2010 Do you use AutoIt Window Info for find the good ControlId ?Yes i always use Autoit Window Info to find the controlID's.But this is in flash. It's a code you need to write in.It's a game you need to change the code inside.I use this:1. Download the swf-file.2. Upload to swf-to-exe.com, and download the exe.If i use embedded it's the same with controlsend.But it's using IE and i want to run it through Chrome/Firefox/Opera. Link to comment Share on other sites More sharing options...
trung0407 Posted October 14, 2010 Share Posted October 14, 2010 (edited) ControlSend($handle,"",$controlID,"123456+{abc}1234567 Edited October 14, 2010 by trung0407 Link to comment Share on other sites More sharing options...
bobbby Posted October 17, 2010 Author Share Posted October 17, 2010 (edited) ControlSend($handle,"",$controlID,"123456+{abc}1234567 That looks easy, but now i have a code generator too. func codegen($o) $h = "" for $i = 1 to 15 $r = random(1,3,1) if $r = 1 Then $d = chr(random(48,57,1)) elseif $r = 2 then $d = chr(random(65,90,1)) elseif $r = 3 then $d = chr(random(97,122,1)) EndIf $h = $h & $d Next return $h EndFunc func chc($cc) $cc1 = "" $len = stringlen($cc) for $a = 1 to $len if stringisupper(stringmid($cc,$a,1)) Then $cc1 = $cc1 & stringreplace(stringmid($cc,$a,1),stringmid($cc,$a,1),"+{" & stringmid($cc,$a,1) & "}") Else $cc1 = $cc1 & stringmid($cc,$a,1) EndIf Next return $cc1 EndFunc Edit: I can send to the loginbox now. But it changes some chars to uppercase and some not. Do i need to change it to send 1 and 1, instead of a whole line? Here is the result: Fixed Code: 33+{J}h+{Z}+{I}f+{X}o+{A}u+{X}+{Q}4d Sent to the login: 33Jhzifxoauxq4d Edit1: Sent the code 1 and 1 and got this... Lower: 3 Lower: 3 Upper: +{J} Lower: h Upper: +{Z} Upper: +{I} Lower: f Upper: +{X} Lower: o Upper: +{A} Lower: u Upper: +{X} Upper: +{Q} Lower: 4 Lower: d Should be: 33JhZIfXoAuXQ4d Sent to login: 33jhzifxoauxq4d Edited October 17, 2010 by bobbby Link to comment Share on other sites More sharing options...
MisterVSE Posted August 3, 2017 Share Posted August 3, 2017 I've sent a password using variable, and it did work correctly for me, as my pass mixes number, letter in Upper and Lower case. Link to comment Share on other sites More sharing options...
BrewManNH Posted August 3, 2017 Share Posted August 3, 2017 This post is nearly 7 years old, pretty sure they don't care at this point. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 3, 2017 Moderators Share Posted August 3, 2017 Love that one @BrewManNH. I used to use this one, but more and more folks are not old enough to get it BrewManNH 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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