relaxteb Posted January 16, 2008 Share Posted January 16, 2008 Hi, I am quite a newbee with autoIt. However i am eager into learning it. Now i run against the problem where i can't put an "!" in a string. In my case, i have an password input box where i want to put the password "password!!!!!". This does not work, when i display the string it only shows the "password" part. How can i solve this ? regards, Sebastian Link to comment Share on other sites More sharing options...
Developers Jos Posted January 16, 2008 Developers Share Posted January 16, 2008 Have you checked the Helpfile since its explained in there and there is a table showing all special characters/keys.... check for the Send() command SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
relaxteb Posted January 16, 2008 Author Share Posted January 16, 2008 Have you checked the Helpfile since its explained in there and there is a table showing all special characters/keys.... check for the Send() command Hi Jos,Yes i have checked the helpfiles.But in my case, it is hard to use that command.I am trying to have a password input box which writes into a string.Should i then convert the string to seperate asci characters and send them 1 by 1 ?Or is there a more easy way to accomplish this ?grSebas Link to comment Share on other sites More sharing options...
DjDeep00 Posted January 16, 2008 Share Posted January 16, 2008 @relaxteb...you can also do this by using ControlSetText()...Like this... $passwd = InputBox("Security Check", "Enter your password.", "", "*") ShellExecute("Notepad") WinWait("Untitled - Notepad","") ControlSetText("Untitled - Notepad","","Edit1",$passwd) WinActivate("Untitled - Notepad") Link to comment Share on other sites More sharing options...
weaponx Posted January 16, 2008 Share Posted January 16, 2008 I'm pretty sure Jos was hinting that to send a literal exclamation point you have to use Send({!}) Link to comment Share on other sites More sharing options...
Yar Posted January 18, 2008 Share Posted January 18, 2008 I'd like to do the same thing in order to make one of my scripts more user-friendly (make the keys that require {}s to not need them). If the InputBox could change when the user gives a "!", "?", etc., then it would be much easier for users to type, rather than having to find out how and when to use the pointy brackets. Link to comment Share on other sites More sharing options...
weaponx Posted January 18, 2008 Share Posted January 18, 2008 MsgBox(0,"",_PrepareSend("Yes!#^#")) Func _PrepareSend($sString) $array = StringSplit("!+^#", "") For $X = 1 to $array[0] $sString = StringReplace($sString, $array[$X], "{" & $array[$X] & "}") Next Return $sString EndFunc Link to comment Share on other sites More sharing options...
Yar Posted January 18, 2008 Share Posted January 18, 2008 Thank you for the help. Link to comment Share on other sites More sharing options...
Developers Jos Posted January 18, 2008 Developers Share Posted January 18, 2008 There is always the option to send the characters raw... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
relaxteb Posted January 18, 2008 Author Share Posted January 18, 2008 solved it by using the tips. tnx ! sebas 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