Current Calendar Time Slot?!

  • Thread starter Thread starter Dennis Brown
  • Start date Start date
D

Dennis Brown

When the user arrows up and down in the Day view, there is a timeslot associated with the current position, but where in the object model can I retrieve that timeslot?
If the user is on 10:00 timeslot, and they start typing in an appointment for that timeslot, they are placed into a text field, and that text gets associated with that timeslot, but where can I get the current timeslot Outlook is getting when it assigns that particular appointment to that slot? How does it know the user is on the 4:30 PM timeslot when they are entering that appointment?
Not from the Appointment dialog, but if a user just starts typing text from within the Day view while the highlight is on the 4:30 PM timeslot?
That is driving me nuts, trying to figure this one out!!
 
Outlook doesn't provide any information about the selected timeslot through the object model. You can, however, use CommandBars to create a new appointment and read it from there. See http://www.outlookcode.com/codedetail.aspx?id=616

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



When the user arrows up and down in the Day view, there is a timeslot associated with the current position, but where in the object model can I retrieve that timeslot?
If the user is on 10:00 timeslot, and they start typing in an appointment for that timeslot, they are placed into a text field, and that text gets associated with that timeslot, but where can I get the current timeslot Outlook is getting when it assigns that particular appointment to that slot? How does it know the user is on the 4:30 PM timeslot when they are entering that appointment?
Not from the Appointment dialog, but if a user just starts typing text from within the Day view while the highlight is on the 4:30 PM timeslot?
That is driving me nuts, trying to figure this one out!!
 
Can I do it under the hood, without the user knowing I'm doing it?
I'm just needing the information internally within my adaptive screen reader, which has a scripting capability that will read/execute VBA code, so I don't want anything happening on the screen. I just want to get the current time slot and announce it via the screen reader.
Can I do what you suggest without altering the screen?

--

Thanks,
Dennis
Outlook doesn't provide any information about the selected timeslot through the object model. You can, however, use CommandBars to create a new appointment and read it from there. See http://www.outlookcode.com/codedetail.aspx?id=616

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



When the user arrows up and down in the Day view, there is a timeslot associated with the current position, but where in the object model can I retrieve that timeslot?
If the user is on 10:00 timeslot, and they start typing in an appointment for that timeslot, they are placed into a text field, and that text gets associated with that timeslot, but where can I get the current timeslot Outlook is getting when it assigns that particular appointment to that slot? How does it know the user is on the 4:30 PM timeslot when they are entering that appointment?
Not from the Appointment dialog, but if a user just starts typing text from within the Day view while the highlight is on the 4:30 PM timeslot?
That is driving me nuts, trying to figure this one out!!
 
The portion of that sample that returns the start and end times *is* all under the hood.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Can I do it under the hood, without the user knowing I'm doing it?
I'm just needing the information internally within my adaptive screen reader, which has a scripting capability that will read/execute VBA code, so I don't want anything happening on the screen. I just want to get the current time slot and announce it via the screen reader.
Can I do what you suggest without altering the screen?

--

Thanks,
Dennis
Outlook doesn't provide any information about the selected timeslot through the object model. You can, however, use CommandBars to create a new appointment and read it from there. See http://www.outlookcode.com/codedetail.aspx?id=616

When the user arrows up and down in the Day view, there is a timeslot associated with the current position, but where in the object model can I retrieve that timeslot?
If the user is on 10:00 timeslot, and they start typing in an appointment for that timeslot, they are placed into a text field, and that text gets associated with that timeslot, but where can I get the current timeslot Outlook is getting when it assigns that particular appointment to that slot? How does it know the user is on the 4:30 PM timeslot when they are entering that appointment?
Not from the Appointment dialog, but if a user just starts typing text from within the Day view while the highlight is on the 4:30 PM timeslot?
That is driving me nuts, trying to figure this one out!!
 
But wouldn't that make the application slow if I accessed that on every press of the up or down arrow while in the calendar?

--

Thanks,
Dennis
The portion of that sample that returns the start and end times *is* all under the hood.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Can I do it under the hood, without the user knowing I'm doing it?
I'm just needing the information internally within my adaptive screen reader, which has a scripting capability that will read/execute VBA code, so I don't want anything happening on the screen. I just want to get the current time slot and announce it via the screen reader.
Can I do what you suggest without altering the screen?

--

Thanks,
Dennis
Outlook doesn't provide any information about the selected timeslot through the object model. You can, however, use CommandBars to create a new appointment and read it from there. See http://www.outlookcode.com/codedetail.aspx?id=616

When the user arrows up and down in the Day view, there is a timeslot associated with the current position, but where in the object model can I retrieve that timeslot?
If the user is on 10:00 timeslot, and they start typing in an appointment for that timeslot, they are placed into a text field, and that text gets associated with that timeslot, but where can I get the current timeslot Outlook is getting when it assigns that particular appointment to that slot? How does it know the user is on the 4:30 PM timeslot when they are entering that appointment?
Not from the Appointment dialog, but if a user just starts typing text from within the Day view while the highlight is on the 4:30 PM timeslot?
That is driving me nuts, trying to figure this one out!!
 
Yes, I think it might, but since there's no event firing for the up and down arrow, it's something of a moot point.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



But wouldn't that make the application slow if I accessed that on every press of the up or down arrow while in the calendar?

--

Thanks,
Dennis
The portion of that sample that returns the start and end times *is* all under the hood.


Can I do it under the hood, without the user knowing I'm doing it?
I'm just needing the information internally within my adaptive screen reader, which has a scripting capability that will read/execute VBA code, so I don't want anything happening on the screen. I just want to get the current time slot and announce it via the screen reader.
Can I do what you suggest without altering the screen?

--

Thanks,
Dennis
Outlook doesn't provide any information about the selected timeslot through the object model. You can, however, use CommandBars to create a new appointment and read it from there. See http://www.outlookcode.com/codedetail.aspx?id=616

When the user arrows up and down in the Day view, there is a timeslot associated with the current position, but where in the object model can I retrieve that timeslot?
If the user is on 10:00 timeslot, and they start typing in an appointment for that timeslot, they are placed into a text field, and that text gets associated with that timeslot, but where can I get the current timeslot Outlook is getting when it assigns that particular appointment to that slot? How does it know the user is on the 4:30 PM timeslot when they are entering that appointment?
Not from the Appointment dialog, but if a user just starts typing text from within the Day view while the highlight is on the 4:30 PM timeslot?
That is driving me nuts, trying to figure this one out!!
 
Thanks again! All the assistance I have received here is helping other blind users gain access to an otherwise inaccessible part of Outlook!


--

Thanks,
Dennis
Yes, I think it might, but since there's no event firing for the up and down arrow, it's something of a moot point.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



But wouldn't that make the application slow if I accessed that on every press of the up or down arrow while in the calendar?

--

Thanks,
Dennis
The portion of that sample that returns the start and end times *is* all under the hood.


Can I do it under the hood, without the user knowing I'm doing it?
I'm just needing the information internally within my adaptive screen reader, which has a scripting capability that will read/execute VBA code, so I don't want anything happening on the screen. I just want to get the current time slot and announce it via the screen reader.
Can I do what you suggest without altering the screen?

--

Thanks,
Dennis
Outlook doesn't provide any information about the selected timeslot through the object model. You can, however, use CommandBars to create a new appointment and read it from there. See http://www.outlookcode.com/codedetail.aspx?id=616

When the user arrows up and down in the Day view, there is a timeslot associated with the current position, but where in the object model can I retrieve that timeslot?
If the user is on 10:00 timeslot, and they start typing in an appointment for that timeslot, they are placed into a text field, and that text gets associated with that timeslot, but where can I get the current timeslot Outlook is getting when it assigns that particular appointment to that slot? How does it know the user is on the 4:30 PM timeslot when they are entering that appointment?
Not from the Appointment dialog, but if a user just starts typing text from within the Day view while the highlight is on the 4:30 PM timeslot?
That is driving me nuts, trying to figure this one out!!
 
A Windows message event hook with a callback into the COM addin would tell
you what key was pressed and wouldn't be discernable as to bandwidth used.
That's how system tray icon handlers work in Outlook addins. They monitor
for right-click and double-click sent to the handle provided when they
registered their message handler with Windows.

You could use that to monitor for up and down arrows in messages sent to the
handle for each open Explorer.

It's all Win32 API code for this sort of thing, not really Outlook code,
except where it is being used in an Outlook addin.




Yes, I think it might, but since there's no event firing for the up and down
arrow, it's something of a moot point.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



But wouldn't that make the application slow if I accessed that on every
press of the up or down arrow while in the calendar?
 
Thanks! I'll check into that.

--

Thanks,
Dennis
A Windows message event hook with a callback into the COM addin would tell
you what key was pressed and wouldn't be discernable as to bandwidth used.
That's how system tray icon handlers work in Outlook addins. They monitor
for right-click and double-click sent to the handle provided when they
registered their message handler with Windows.

You could use that to monitor for up and down arrows in messages sent to the
handle for each open Explorer.

It's all Win32 API code for this sort of thing, not really Outlook code,
except where it is being used in an Outlook addin.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


Yes, I think it might, but since there's no event firing for the up and down
arrow, it's something of a moot point.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



But wouldn't that make the application slow if I accessed that on every
press of the up or down arrow while in the calendar?
 
Back
Top