matlab to notepad

17 views (last 30 days)
yatin kharbe
yatin kharbe on 27 Apr 2011
I want to send keys like backspace which perform actions from matlab file to notepad using SendKeys method of windows shell scripting.All other keys are working except - backspace, delete, capslock etc.

Accepted Answer

Jason Ross
Jason Ross on 27 Apr 2011
How are you sending them? Can you post some example code?
This link might help with the formatting of the string you send: http://msdn.microsoft.com/en-us/library/8c6yea83%28v=vs.85%29.aspx
  4 Comments
Jason Ross
Jason Ross on 27 Apr 2011
And for the ' symbol,
h.SendKeys('''')
yatin kharbe
yatin kharbe on 27 Apr 2011
OK .. THANKS

Sign in to comment.

More Answers (1)

Aleksander
Aleksander on 11 Feb 2013
hi, is it possible to send ctrl + f ? i wish to use the find and replace functionality in notepad.
all best Aleks.
  1 Comment
Jason Ross
Jason Ross on 11 Feb 2013
Edited: Jason Ross on 11 Feb 2013
All the keys are here, control-f should work the same way as the above example.

Sign in to comment.

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!