Jump to content

how to get an exclamation mark "!" in a string


 Share

Recommended Posts

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

  • Developers

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 :D

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

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 :D

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 ?

gr

Sebas

Link to comment
Share on other sites

@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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...