Jonnyuse Win32::OLE; use Win32::OLE::Const; my $Body = "this is just a test\nnew note"; my $Color = 1; my $Categories = "Favorites"; my $MessageClass = "IPM.StickyNote"; my $Top = "182"; my $Width = "200"; my $Height = "166"; my $Left = "207"; $Outlook = Win32::OLE->GetActiveObject('Outlook.Application'); $olc = Win32::OLE::Const->Load($Outlook); # Setup Creation of a new Note $note = $Outlook->CreateItem($olc->{olNoteItem}); # Write Note Title & Body $note->{Body} = $Body; # Optional note properties. $note->{Categories} = $Categories; $note->{Width} = $Width; $note->{Height} = $Height; $note->{Top} = $Top; $note->{Left} = $Left; #$note->(Color) = $Color; # Close and Save note. $note->Close($olc->{olSave});
In reply to OLE and Outlook Note Color's by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |