Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 69879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:38:35+00:00 2026-05-10T19:38:35+00:00

I have the following Macro I want to call from within an AutoHotkey script

  • 0

I have the following Macro I want to call from within an AutoHotkey script in order to set certain dates in my MonthCal object to be bold.

http://msdn.microsoft.com/en-us/library/bb774722(VS.85).aspx

How would I go about that?

Note that it’s possible the easiest way to do it is to write a simple VB script which uses the macro and call that. But I am entirely clueless about VB scripts. Any thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T19:38:36+00:00Added an answer on May 10, 2026 at 7:38 pm

    I found the following script on the AutoHotkey forums via their great IRC channel (thanks _rhys and Titan)

    monthNb := 3   ; How many months are displayed. Can be fetched with MCM_GETMONTHRANGE MCM_FIRST := 0x1000 MCM_SETDAYSTATE := MCM_FIRST + 8  ; MCS_DAYSTATE = 1 Gui, Add, MonthCal, +0x1 vMyCalendar Gui, Add, Button, gBoldify w100, B Gui Show  Gui +LastFound guiID := WinExist() ControlGet mcID, Hwnd, , SysMonthCal321, ahk_id %guiID%  Gosub SetDayState Return  Boldify: VarSetCapacity(daysBuffer, 4 * monthNb, 0) if bOdd {    days = 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31 } else {    days = 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30 } bOdd := not bOdd addr := &daysBuffer + 4 Loop Parse, days, `, {    o1 := (A_LoopField - 1) / 8    o2 := Mod(A_LoopField - 1, 8)    val := *(addr + o1) | (1 << o2)    DllCall('RtlFillMemory', 'UInt', addr + o1, 'UInt', 1, 'UChar', val) } Gosub SetDayState Return  SetDayState:    SendMessage MCM_SETDAYSTATE, monthNb, &daysBuffer, , ahk_id %mcID% Return  GuiClose: GuiEscape: ExitApp 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have the following macro: #define xxx(x) printf(%s\n,x); Now in certain files I
I have the following c macro from the libpurple yahoo plugin: #define yahoo_put16(buf, data)
I have the following macro: #define testMethod(a, b) \ if (a.length > b.length) \
I have the following macro: ‎#define GTR(type) \‎ type type##_gtr(type a, type b) \‎
I have following script that executes all the .reg files in the current directory.
I'd like to have a version of lambda , called lambda-r , from within
I have the following macro: #define IF_TRACE_ENABLED(level) if (IsTraceEnabled(level)) The user code should look
I have the following macro which is supposed to get a struct CLEAR_ARG and
I have an Excel worksheet that has the following macro. I'd like to loop
I have the following code: Sub WordtoTxtwLB() ' ' WordtoTxtwLB Macro ' ' Dim

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.