DeuxDeTension Posted October 30, 2009 Share Posted October 30, 2009 (edited) Hello all,I would like to use AutoIt's SendKey function to type characters, without them appearing on screen. I have been looking for an optional parameter to the SendKey function itself, just as the ', 1' you add to send raw keystrokes, or for an AutoItSetOption option, but I haven't found what I'm looking for. Do anyone around how I could do that?Thanks in advance. Edited October 31, 2009 by DeuxDeTension Link to comment Share on other sites More sharing options...
Bert Posted October 30, 2009 Share Posted October 30, 2009 what are you trying to work with? Game? app? We don't have enough to go on. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
jvanegmond Posted October 30, 2009 Share Posted October 30, 2009 I have looked through the AutoIt help file, and I have been unable to find the SendKey function. Is this a UDF outside of the AutoIt libraries that you are trying to use? github.com/jvanegmond Link to comment Share on other sites More sharing options...
DeuxDeTension Posted October 30, 2009 Author Share Posted October 30, 2009 I have looked through the AutoIt help file, and I have been unable to find the SendKey function. Is this a UDF outside of the AutoIt libraries that you are trying to use?Ooops, my mistake, I meant Send, not SendKey. Sorry... Link to comment Share on other sites More sharing options...
DeuxDeTension Posted October 30, 2009 Author Share Posted October 30, 2009 what are you trying to work with? Game? app? We don't have enough to go on.I use PuTTY the whole day long, to work remotely on Unix servers, and I'd like to automate as much possible the connection process, including (but not limited to) typing my password (yes, I know it's not a good idea, security-wise, but I'm getting fed up). Does this help? Link to comment Share on other sites More sharing options...
jamesband Posted October 30, 2009 Share Posted October 30, 2009 (edited) Hello all,I would like to use AutoIt's SendKey function to type characters, without them appearing on screen. I have been looking for an optional parameter to the SendKey function itself, just as the ', 1' you add to send raw keystrokes, or for an AutoItSetOption option, but I haven't found what I'm looking for. Do anyone around how I could do that?Thanks in advance.I don't see how the Send function itself could ever do what you ask. Think of it this way, the Send function has the very same restrictions as the keyboard. So, the Send function can ONLY do what you can to manually with the keyboard. I don't think you can stop putty or any terminal program from displaying text injected by the SEND function. Sorry. Edited October 30, 2009 by jamesband Link to comment Share on other sites More sharing options...
KaFu Posted October 30, 2009 Share Posted October 30, 2009 Maybe a workaround for Input controls... didn't try it myself , I just assume it should work... is to change the target control style with _WinAPI_SetWindowLong() using $ES_PASSWORD? OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
DeuxDeTension Posted October 30, 2009 Author Share Posted October 30, 2009 OK, problem solved... very easily indeed, with a call to Sleep, with the appropriate delay found by trial and error, before sending the characters I don't want to see appearing on screen. This way, the remote machine has enough time to enter the state where it expects a password and doesn't echo what I send. Thanks to anyone who took the time to reply.Another (related) question: how do I mark this topic as solved? Link to comment Share on other sites More sharing options...
jamesband Posted October 30, 2009 Share Posted October 30, 2009 OK, problem solved... very easily indeed, with a call to Sleep, with the appropriate delay found by trial and error, before sending the characters I don't want to see appearing on screen. This way, the remote machine has enough time to enter the state where it expects a password and doesn't echo what I send. Thanks to anyone who took the time to reply.Another (related) question: how do I mark this topic as solved?Just edit your first post and put SOLVED at the beginning of the title. That should work ok. 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