c# - SENDKEYS F-Key sends trema Y (Y with two dots over it) -


i’m trying send f-keys application c# app i’m writing. when send f-key shows Ÿ (trema y). settle .net programmatically pressing desired f-key once i’ve brought desired widow focus.

when run code on development machine f-keys interpreted correctly. machine interpreting them trema y windows 7 .net 4 client 64 bit.

i’ve tried sendkeys.sendwait("{f2}") , sendkeys.send("{f2}"). have following code in app.config:

 <appsettings>     <add key="sendkeys" value=" journalhook"/>  </appsettings> 

here code example:

void poptargetapp() {     try     {         string targetwindowtitle;          targetwindowtitle = "notepad";          int ihandle = nativewin32.findwindow(null, targetwindowtitle);         nativewin32.setforegroundwindow(ihandle);          sendkeys.sendwait("{f2}");          sendkeys.flush();         //thread.sleep(1000);         sendkeys.sendwait(currentinteraction.account + "{enter}");         sendkeys.flush();          toolstripstatuslabel1.text = string.format("{0} {1}", targetwindowtitle, ihandle.tostring());     }     catch (system.exception ex)     {         messagebox.show(string.format("method: {0} \nerror: {1} ", methodinfo.getcurrentmethod().name, ex.message));     } } 


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -