DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: SOLVED: Pass a MMM-YY date to a form using AHK  (Read 8,088 times)

xtroublex

  • Participant
  • Joined in 2010
  • *
  • Posts: 2
SOLVED: Pass a MMM-YY date to a form using AHK
« on: April 22, 2010, 04:39 PM »
I know this can't be too difficult but I cannot for the life of me find a help file or anything that can tell me how to pass a date to a form. I have an oracle form that I am creating a one click button for that will run the report that we need without having to enter all of the criteria manually. It asks for a date in the format MMM-YY but I don't know how to script that in AutoHotKey.

Thank you for your help.

X

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Pass a MMM-YY date to a form using AHK
« Reply #1 on: April 22, 2010, 08:34 PM »
I assume by MMM-YY, you mean something like 'Apr-10'.  If so, here you go:

Code: (AutoIt)
FormatTime, myDate, % A_Now, MMM-yy
MsgBox, % myDate

Original address: https://www.donationcoder.com/forum/index.php?topic=22519.0