Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Mon Dec 17, 2018 8:12 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Send shortcut key to Notepad in background
Thanked: 0 time(s)  Unread post Posted: Tue Sep 18, 2018 4:18 pm 
New User
New User



Joined: Tue Sep 18, 2018 12:27 am
Posts: 2
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 13
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?


Top
 Profile  
Reply with quote  
 Post subject: Re: Send shortcut key to Notepad in background
Thanked: 0 time(s)  Unread post Posted: Wed Sep 19, 2018 5:01 am 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1840
Location: USA
Been thanked: 393 time(s)
Has thanked: 33 time(s)
Contribution Points: 16377
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.

_________________
----------------------------------------Syrifina---------------------------------------------------
PM me for licenses and/or licensing information: Click Here
[Be sure to include and update your profile with your BE ID]

Forum Rules
Reminder of rules regarding Contribution points
Getting started in 1, 2, 3
Virtual Drivers; Manual Installers


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group