Quantcast
Channel: LiveCode Forums
Viewing all articles
Browse latest Browse all 782

Getting Started with LiveCode - Experienced Developers • Re: How to use the "Type" command with FunctionKeys

$
0
0
Hi.

I was pretty sure that it would be fruitless, and was right, at least for me.

Function keys are "control" keys, like the optionKey or the commandKey. They are very difficult to integrate into the "normal" LC world. They stand apart as a group which gives them a certain special status which is hard to break into. Anyway, trying to finagle the "functionKey" and "keysDown" functions defeated me entirely. I could not simulate a user keyPress on F1. Just as I could not with, say, the controlKey. One can see its state, but not simulate a keypress on it.

I think.

Someone may chime in with a clever method, and if so, that would force me to go back quite a ways in this forum to see if the many other queries along this line could then be worked out.

The good news is that you can do whatever you need without having to rely on a script-controlled keypress on a function key. Just do the task somewhere else in the usual way, and abandon the need to simulate that keyPress.

Easy for me to say.

So is there some reason, apart from that you think it a nice idea, to have to use a function key?

Craig

Statistics: Posted by dunbarx — Mon Jun 24, 2024 4:04 am



Viewing all articles
Browse latest Browse all 782

Trending Articles