Jump to content

upper case to lower?


 Share

Recommended Posts

I have a program that uses radio buttons to create a filename based on the date and the time.

E.G. 091808Wed-7PM.csv.

I use

ControlSend("Enter name of file to save to", "", "[CLASS:Edit; INSTANCE:1]","{HOME} {DEL 15}" & $BroadcastName) to write the name.

{HOME} {INS} was sticking odd characters on the end.

The program works exactly as I want it to but every once in a while the "PM" or "AM" gets written in lower case, "pm" or "am"

Any ideas on why this happens.

Link to comment
Share on other sites

  • Moderators

I have a program that uses radio buttons to create a filename based on the date and the time.

E.G. 091808Wed-7PM.csv.

I use

ControlSend("Enter name of file to save to", "", "[CLASS:Edit; INSTANCE:1]","{HOME} {DEL 15}" & $BroadcastName) to write the name.

{HOME} {INS} was sticking odd characters on the end.

The program works exactly as I want it to but every once in a while the "PM" or "AM" gets written in lower case, "pm" or "am"

Any ideas on why this happens.

Use controlsettext() instead. It's possible something is holding the shift down (you or another app) at the exact instance it's sending.

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.

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...