FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

What's new in 3.0.1?

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


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Wed Nov 02, 2005 6:09 pm    Post subject: What's new in 3.0.1? Reply with quote

3.0.1 (beta) is available here:

http://www.salling.com/forums/viewtopic.php?t=3027

Here are the new scripting commands available in this version:

simulate keyboard virtual down keycode VK_CODE
simulate keyboard virtual up keycode VK_CODE
simulate keyboard cleared

"simulate keyboard virtual down" simulates a key being pressed, keeping the key pressed until either (1) "simulate keyboard virtual up" is called for the same keycode, (2) "simulate keyboard cleared" is called, or (3) the current widget is no longer active.

The feature hence works similarly to the "simulate mouse button down/up" commands.

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hawkman
Junior Member


Joined: 03 Nov 2005
Posts: 30

PostPosted: Thu Nov 03, 2005 6:46 pm    Post subject: Reply with quote

Running that new build, but it doesn't appear to have the behaviour I would expect. Am I doing something dumb?

[code:1] on process key down the_key sent from the_keypad
if the_key is "1" then
tell application "SEC Helper"
simulate keyboard virtual down keycode 123
end tell
else if the_key is "3" then
tell application "SEC Helper"
simulate keyboard virtual down keycode 124
end tell
end if
return true
end process key down
[/code:1]
paired with
[code:1] on process key up the_key sent from the_keypad

if the_key is "1" then
tell application "SEC Helper"
simulate keyboard virtual up keycode 123
end tell
else if the_key is "3" then
tell application "SEC Helper"
simulate keyboard virtual up keycode 124
end tell
end if
return true
end process key up[/code:1]

That seems to give me the same behaviour as if I'd just used [b]keyboard virtual[/b] instead, even when holding the key (it fires on release)... :?
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Thu Nov 03, 2005 6:59 pm    Post subject: Reply with quote

What do you expect? What context is this supposed to be used in?

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hawkman
Junior Member


Joined: 03 Nov 2005
Posts: 30

PostPosted: Thu Nov 03, 2005 9:33 pm    Post subject: Reply with quote

In the context of a Front Row script - unless I've totally misunderstood, I'd expect the key (in this case, arrow key(s)) to be "held down" for the duration of the button press; in this case resulting in fast-forward and rewind. Instead, the track skips to the next one when the button is released.
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Thu Nov 03, 2005 9:36 pm    Post subject: Reply with quote

Is there still something dealing with these keys in your "repeat" handler?

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hawkman
Junior Member


Joined: 03 Nov 2005
Posts: 30

PostPosted: Thu Nov 03, 2005 9:44 pm    Post subject: Reply with quote

Not as far as I can tell. I'm afraid I'm solidly in the Novice Scripter bracket, though.
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Thu Nov 03, 2005 10:57 pm    Post subject: Reply with quote

Fair enough. I shall investigate this tomorrow. Feel free to email me your script, if you want me to have a look at it.

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Fri Nov 04, 2005 3:52 pm    Post subject: Reply with quote

You were absolutely correct. I'm coming up with a solution as we speak.

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hawkman
Junior Member


Joined: 03 Nov 2005
Posts: 30

PostPosted: Fri Nov 04, 2005 5:00 pm    Post subject: Reply with quote

Magnificent. Thanks very much indeed.
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Sat Nov 05, 2005 4:21 pm    Post subject: Reply with quote

Mr Hawk,

Did the new 3.0.1 build take care of the problem for you?

Best.
--
Jonas

[quote="Hawkman"]Magnificent. Thanks very much indeed.[/quote]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Hawkman
Junior Member


Joined: 03 Nov 2005
Posts: 30

PostPosted: Sun Nov 06, 2005 12:14 pm    Post subject: Reply with quote

Mr Salling,

Indeed it did! Works great here. Much appreciated :)
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