FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Multi-key send...?

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac
View previous topic :: View next topic  
Author Message
Hector
Newbie


Joined: 03 Jul 2006
Posts: 2
Location: Boulder, Co, USA

PostPosted: Mon Jul 03, 2006 8:57 pm    Post subject: Multi-key send...? Reply with quote

Is there a simple way
to send multi-key entries
( Shift+Apple+4 and such )
with Salling Clicker...?
Back to top
View user's profile Send private message
mgorrell
Newbie


Joined: 03 Jul 2006
Posts: 3

PostPosted: Tue Jul 04, 2006 5:38 am    Post subject: Reply with quote

Yup, it's not too hard.

tell application "SEC Helper"
simulate keyboard charcode (ASCII number "4") modifiers {"shift", "command"}
end tell


There is a chart with keycodes for other keys at http://www.salling.com/forums/viewtopic.php?t=1619 (convert them to decimal from hex). For example you can do:
simulate keyboard virtual keycode 53
to send escape.

You can also emulate more complex keystrokes by doing something like:
simulate keyboard charcode down (ASCII number "a")
simulate keyboard charcode down (ASCII number "b")
simulate keyboard charcode up (ASCII number "b")
simulate keyboard charcode up (ASCII number "a")

Hope that helps.
Back to top
View user's profile Send private message Visit poster's website
Hector
Newbie


Joined: 03 Jul 2006
Posts: 2
Location: Boulder, Co, USA

PostPosted: Tue Jul 04, 2006 6:35 pm    Post subject: Reply with quote

Yes, ideed, thank you very much.

BTW, the FN key code is 63.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group