How to handle keyboard language change while composing a mail in Outlook? - outlook

Is there any callback that gets called when keyboard language is changed in To, Cc, Bcc, Subject fields of outlook? What MAPI properties are used to change keyboard language?

No, neither MAPI or Outlook have hooks like that.
Why exactly do you need that? Why does it matter how the recipient name/address were entered?

Related

How to Bind Keyboard button to do other action in windows

I want to know if it's possible to bind any keyboard key in windows to do a action.
The action I want is, when I press "?" then it just types a text "Hello, This is new world" Automatically. Is this possible? If so then please help me out.
Here are a few places to start researching.
The functionality you are looking for is similar to the design of a key logger. the difference is you intend to consume the key as opposed to observe it and let it through
http://www.securelist.com/en/analysis/204792178/Keyloggers_Implementing_keyloggers_in_Windows_Part_Two
C++ Custom hot keys using windows hooks
http://www.apriorit.com/our-company/dev-blog/132-keystroke-monitoring

Applications hook

I would like to make some hook in windows programs. For instance, Vodafone application have some MSN like popup that can't be hiddent. So, in that way, I would like to create my option to hide or not this popups. Can anybody tell me some tutorials (basic first) how to do that?
Thanks in advice.
You have to create system wide windows hook with SetWindowsHookEx with first param WH_CBT. You can hook on HCBT_CREATEWND event and return non zero value and window will be destroyed, but first you have to somehow recognize that this is right window, maybe according to window title or something inside that title.
Another thing is that you can't use managed code and C# for system wide hooks, since you have to make unmanaged dll in witch hook will reside. So you have to use C++ or Delphi, and if you are not experienced in win32 programming that would probably be very complicated task.

Window Message Notification - Language and Locale

I want to find out what win message is / are sent when we change the locale settings, Date Time and Language in particular.
I know when window Theme is changed we receive WM_THEMECHANGED.
WM_SETTINGSCHANGE for locale settings and WM_TIMECHANGE for time changes.
You will get WM_INPUTLANGCHANGEREQUEST before the language is changed (and you can choose whether to accept or reject the change), and then WM_INPUTLANGCHANGE after the language is successfully changed (if you pass WM_INPUTLANGCHANGEREQUEST to the DefWindowProc).
WM_TIMECHANGE is sent whenever system time is changed.
WM_SETTINGCHANGE is also sent upon change of some modifications. However, it's done on a volunteer base by the app that changes the setting. One can assume standard Control Panel applets are fair players.

Windows Simulate clicks in a program

I'd like to create a program which format signature in Outlook 2007.
The user will only have to lauch Outlook. It will search informations about the user, then will create automatically the signature.
The user wouldn't have to open any menu, the program will do it for him.
I'd like to know what language will be easy to use to create this kind of program ?
Thank you
I'd say you shouldn't be simulating clicks, instead you should just generate an automated signature file which the user could then load.
Edit:
The file formats for windows signatures are.txt, .htm and .rtf. All of these are very well documented formats and should be easy to generate. They should be saved in c:\Users\username\AppData\Roaming\Microsoft\Signatures. Outlook saves each signature in all three formats, presumably for portability to other apps and individual email settings (for instance if the user uses HTML or not).

Outlook 2007 add-in - What event occurs when an user moves an email from a folder to another one?

I am writing an Outlook 2007 add-in. I would like to know what event occurs when user moves an email from a folder to another one (with drag and drop or with move to folder option). My application represents a spam filter, I have a Spam folder, and I need to know whenever user moves an email form inbox to spam or form spam to inbox (this means for me that the email was wrong classified and I have to retrain it).
Thanks
Install the tool Outlook Spy then try out your experiment and see what events Outlook fires under the hood
how about Folder.BeforeItemMove?
Spambayes is a popular Open Source spam filter, which works exactly the way you describe - have a look at how it does it.

Resources