Blue Eye Macro
http://blueeye-macro.com/

Send shortcut key to Notepad in background
http://blueeye-macro.com/viewtopic.php?f=122&t=32320
Page 1 of 1

Author:  wyj [ Tue Sep 18, 2018 4:18 pm ]
Post subject:  Send shortcut key to Notepad in background

Hi guys,

I have come across Gigus's post on how to send press key to notepad and his code is printed as follows
Code:
 begin
     Window.Send press keys("Untitled - Notepad", "yes", "Edit", "Blue Eye Macro")
 end

It works for me to print Blue Eye Macro on Notepad. Now as some of you might know that using the shortcut key F5 in notepad will print you the current time and date. I tried to modified Gigus's code like below.
Code:
 begin
     Window.Send press keys("Untitled - Notepad","Yes","Edit","{<f5>}")
 end

But nothing happened when I ran the macro. Could someone give me a hand on this?

Author:  Syrifina [ Wed Sep 19, 2018 5:01 am ]
Post subject:  Re: Send shortcut key to Notepad in background

No, you can't do that...but you can use "system.get date/time" viewtopic.php?f=170&t=1237, then use type text or send keys with the variable results.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/