Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
QuestionRunning Powershell scripts in C# fails/no effect Pin
me@dagsunde.com3-Oct-16 22:35
professionalme@dagsunde.com3-Oct-16 22:35 
AnswerRe: Running Powershell scripts in C# fails/no effect Pin
Pete O'Hanlon3-Oct-16 23:44
mvePete O'Hanlon3-Oct-16 23:44 
GeneralRe: Running Powershell scripts in C# fails/no effect Pin
me@dagsunde.com4-Oct-16 0:20
professionalme@dagsunde.com4-Oct-16 0:20 
GeneralRe: Running Powershell scripts in C# fails/no effect Pin
me@dagsunde.com3-Oct-16 23:52
professionalme@dagsunde.com3-Oct-16 23:52 
GeneralRe: Running Powershell scripts in C# fails/no effect Pin
Pete O'Hanlon4-Oct-16 0:34
mvePete O'Hanlon4-Oct-16 0:34 
GeneralRe: Running Powershell scripts in C# fails/no effect Pin
me@dagsunde.com4-Oct-16 1:52
professionalme@dagsunde.com4-Oct-16 1:52 
GeneralRe: Running Powershell scripts in C# fails/no effect Pin
Pete O'Hanlon4-Oct-16 2:03
mvePete O'Hanlon4-Oct-16 2:03 
GeneralRe: Running Powershell scripts in C# fails/no effect Pin
me@dagsunde.com4-Oct-16 20:29
professionalme@dagsunde.com4-Oct-16 20:29 
Its a Norwegian proverb... Don't know where/why... But it is a good one! Smile | :)

Still got some small problems, thou...

I turned on ExecutionPolicy so it looks like this:
$li = New-WinUserLanguageList "nb-NO";
$li[0].InputMethodTips.Add("0414:A0000414");
$li[0].InputMethodTips.Remove("0414:00000414");
Set-WinUserLanguageList $li -Force;
$li = Get-WinUserLanguageList;
$li[0].InputMethodTips.Add("0414:00000414");
Set-WinUserLanguageList $li -Force;


- This creates a new languagelist with Norwegian standard culture,
- Adds the Norwegian Apple input (keyboard).
- Removes the Standard Norwegian keyboard.
- Set the list to be the current one in windows.
- Add back the Norwegian standard keyboard.
- Reapply the list to windows.

The sole purpose of the operation is to set the language bar to "Norwegian, with Apple Keyboard" with Norwegian with std. keyboard as a second option.

And it *ALWAYS* does, when run from Powershell/Command prompt.
When run embedded in c#, it sets Input to Norwegian Standard, and does NOT show Apple keyboard as a first (or second) alternative...

This drives me NUTS!

--
Dag.
Questionhow to display a value using delegate ? Pin
forte743-Oct-16 15:56
forte743-Oct-16 15:56 
AnswerRe: how to display a value using delegate ? Pin
Midi_Mick3-Oct-16 17:51
professionalMidi_Mick3-Oct-16 17:51 
AnswerRe: how to display a value using delegate ? Pin
Simon_Whale3-Oct-16 23:35
Simon_Whale3-Oct-16 23:35 
AnswerRe: how to display a value using delegate ? Pin
Sunil Jatolia4-Oct-16 21:06
professionalSunil Jatolia4-Oct-16 21:06 
QuestionGrammar checker Web server - MultiThreaded Application Pin
nqioweryuadfge3-Oct-16 1:57
nqioweryuadfge3-Oct-16 1:57 
GeneralRe: Grammar checker Web server - MultiThreaded Application Pin
Richard MacCutchan3-Oct-16 2:02
mveRichard MacCutchan3-Oct-16 2:02 
GeneralRe: Grammar checker Web server - MultiThreaded Application Pin
nqioweryuadfge3-Oct-16 2:13
nqioweryuadfge3-Oct-16 2:13 
GeneralRe: Grammar checker Web server - MultiThreaded Application Pin
Richard MacCutchan3-Oct-16 2:17
mveRichard MacCutchan3-Oct-16 2:17 
GeneralRe: Grammar checker Web server - MultiThreaded Application Pin
nqioweryuadfge3-Oct-16 2:19
nqioweryuadfge3-Oct-16 2:19 
AnswerRe: Grammar checker Web server - MultiThreaded Application Pin
Pete O'Hanlon3-Oct-16 2:06
mvePete O'Hanlon3-Oct-16 2:06 
GeneralRe: Grammar checker Web server - MultiThreaded Application Pin
nqioweryuadfge3-Oct-16 2:11
nqioweryuadfge3-Oct-16 2:11 
GeneralRe: Grammar checker Web server - MultiThreaded Application Pin
nqioweryuadfge3-Oct-16 2:15
nqioweryuadfge3-Oct-16 2:15 
GeneralRe: Grammar checker Web server - MultiThreaded Application Pin
Pete O'Hanlon3-Oct-16 3:00
mvePete O'Hanlon3-Oct-16 3:00 
GeneralRe: Grammar checker Web server - MultiThreaded Application Pin
nqioweryuadfge3-Oct-16 3:03
nqioweryuadfge3-Oct-16 3:03 
GeneralRe: Grammar checker Web server - MultiThreaded Application Pin
Pete O'Hanlon3-Oct-16 3:15
mvePete O'Hanlon3-Oct-16 3:15 
SuggestionRe: Grammar checker Web server - MultiThreaded Application Pin
ZurdoDev3-Oct-16 3:40
professionalZurdoDev3-Oct-16 3:40 
AnswerRe: Grammar checker Web server - MultiThreaded Application Pin
ZurdoDev3-Oct-16 3:38
professionalZurdoDev3-Oct-16 3:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.