Jump to content


Choose date from a Date Control


  • Please log in to reply
8 replies to this topic

#1 User5462

User5462
  • Guests

Posted 19 July 2012 - 06:14 PM

Hello, I've been lamenting over if it would be possible for Autohotkey to input a date into a DATE Control on a specific application. Would that be possible? Thanks!

#2 Leef_me

Leef_me
  • Moderators
  • 7711 posts

Posted 19 July 2012 - 06:27 PM

Your inquiry is valid. ---but--- Your post is almost useless.
You ask about "a DATE Control on a specific application"
but you don't provide that required information to give a useful answer.
Please be SPECIFIC.

Hello, I've been lamenting over if it would be possible for Autohotkey to input a date into a DATE Control on a specific application. Would that be possible? Thanks!



#3 User5462

User5462
  • Guests

Posted 19 July 2012 - 07:26 PM

Sure, Sorry about that.

However the only information I have about the Date control is that its ClassNN is Combobox1, and that
it looks like a standard date control, here's a screenshot.

Posted Image

Also, WinSpy was able to capture the date text "7/19/2012" under section "TileMatchMode = slow visible text".

#4 User5462

User5462
  • Guests

Posted 19 July 2012 - 07:36 PM

Some more info,

When the calendar pops out, which looks like this:
Posted Image

You cannot gather any information about the calendar popup from "Now under mouse cursor".
Rather, Winspy only detects everything else that's under the calendar popup (things like input boxes, checkboxes, text etc...).

#5 Leef_me

Leef_me
  • Moderators
  • 7711 posts

Posted 19 July 2012 - 10:29 PM

Again, you give pieces of information.
You waste your time posting bits and pieces.

It's like trying to assemble a jigsaw puzzle without the pieces
:arrow: "this looks like a nose", "is that part of a flower",
"arrow: "I found a dog's tail, I think", "I found a brick; no wait, that's a bird; uhh, nevermind"

What is the application? Please be SPECIFIC.

#6 User5462

User5462
  • Guests

Posted 20 July 2012 - 11:57 AM

Sorry for being so discrete, however I can't give out more information. It's our own company-made software that only we use. I would give out a lot more info if I could - however that could cost me my job and I'm sure the software isn't publicly available or known for that matter. I think the admin should lock this thread since I guess there's no way to progress in that case.

The reason why I posted is because the app uses a generic calendar control that is standard among windows software applications - and I was wondering if someone found a way to manipulate with the calendar.

Thanks anyway!

#7 Pulover

Pulover
  • Members
  • 1295 posts

Posted 20 July 2012 - 12:00 PM

Did you try ControlSetText? Or maybe ControlClick?

#8 User5462

User5462
  • Guests

Posted 20 July 2012 - 01:47 PM

Thanks Pulover, I will try that!

#9 Navi

Navi
  • Members
  • 1 posts

Posted 30 May 2013 - 01:04 PM

I am trying to select a date from calendar control, tried solution given on

http://www.autohotke...a-date-control/ but that doesn’t work for me. the window Spy is detecting the Window Title and class, mouse pointers , Color and active window position but nothing else.

also tried ControlSetText and ControlClick. any suggestions to handle this.. its a webpage calendar..