another question

hey guys
i know ive been asking alot of questions, but we all start somewhere hehe :stuck_out_tongue: soon i;d like to start joining on projects and stuff.
so far ive learned alot and ty for answering questions, but, i have another question.
eerhm,
ā€¦
lets say i want to record something, like click movements or certain key movements.
is that possible? and then is it possible to play and loop the movements.
thank ya

Click movements can be recorded right from the Script Editor window. Look for the ā€œrecordā€ button at the top of the window, press it, then go click on stuff and it should record your actions. When youā€™re done press it again to stop the recording. Iā€™m not sure how good it works. It used to work great in OS9. I havenā€™t tried it with OSX though. As far as key presses you can do those with system events likeā€¦

tell application ā€œSystem Eventsā€
tell process ā€œsome applicationā€ ā†’ put in whatever app you want the keystroke to happen in
keystroke ā€œsā€ using command down ā†’ like if you wanted to save a document
end
end

You can search for more keystroke examples. Then you can mix your recorded clicks in with these key presses.

ah ok thanks man. the recording clicks doesnt work but the keystrokes is working out for me. thanks again for the reply.

The recording didnā€™t work? I had a feeling about that. I tired it once briefly and it wasnā€™t good, but I never looked into it.

There is another way to do clicks, itā€™s called gui scripting or ui scripting. Search the forums for that and you can learn about it. It works for certain but thereā€™s quirks with it because things you click on using it have a tendency to be in a different place the next time you try to click. Check around though and give it a try. Itā€™s pretty good when it works.

yeaaa, thanks for your help, i actually found a pretty nice hotkey maker and click maker called, keyboard maestro. works very very goodā€¦ thanks again.