Jump to content
Sign in to follow this  
Vladi243

Some Problems

Recommended Posts

Vladi243

1. This notes "!@#^&+" aren't sent by the function Send(). Why?

2. The note "&" isn't seen on the output. Why again?

Share this post


Link to post
Share on other sites
SmOke_N

1. This notes "!@#^&+" aren't sent by the function Send(). Why?

2. The note "&" isn't seen on the output. Why again?

Try sending it using the raw optional parameter: Send("&", 1)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Vladi243

Try sending it using the raw optional parameter: Send("&", 1)

Thanks! Now it's working.

Do you know what's about the second problem?

I try to create a button with the text "&". When I start the GUI, I don't see the note "&" on the button.

Share this post


Link to post
Share on other sites
picaxe

Do you know what's about the second problem?

I try to create a button with the text "&". When I start the GUI, I don't see the note "&" on the button.

Use "&&" to display "&" in button text. Single "&" used to denote keyboard shortcut.

Share this post


Link to post
Share on other sites
Vladi243

Yes, it works now, but it makes another problem- When I read the text of the button I get 2 "&", but I need only one.

Share this post


Link to post
Share on other sites
picaxe

Try

StringReplace(GUICtrlRead($Button), "&&", "&")
for reading buttons

Edited by picaxe

Share this post


Link to post
Share on other sites
Vladi243

Thanks.

I think that it will solve my problem.

Share this post


Link to post
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
Sign in to follow this  

×