APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > xmacro gui macro key recording
Printer Friendly Version




News Group Posts

gui macro key recording

Main Index

From: googlemike@hotpop.com
Subject: Re: "SendKeys" equivalent in Linux
Date: 30 Jul 2005 22:06:49 -0700
Message-ID: <1122786409.954562.281600@o13g2000cwo.googlegroups.com> 
References: <1122234167.709542.216520@g44g2000cwa.googlegroups.com> 

I just found xmacro (on Sourceforge.net) to be a real *KEEPER* in my
box of tools on Linux now that I have figured it out. The docs kind of
aren't there, so the technique with it is:

$ vi /etc/apt/sources.list
{Edit your apt sources so that you can use a source that has xmacro
packaged for your particular distro. For instance, on Ubuntu, I have to
uncomment the "universe" setting in order to see the xmacro Debian
package. Otherwise, you can always download this from SourceForge.net.}
$ apt-get update
$ apt-get install xmacro
$ xmacrorec2 > my.macro
{Press [Scroll Lock] key. Type your keystrokes and do your optional
mouse events that you want to record. Press [Scroll Lock] key again to
stop the recording.}
$ vi my.macro
{Edit this file and remove out any lines that you don't want or need.}
$ cat my.macro | xmacroplay ":0.0"

By doing this, for instance, I was able to record CTRL+ALT+d, which was
the Show Desktop feature in GNOME. I could then attach this to a
launcher and make a better looking Show Desktop button, which I
describe here:


http://www.ubuntuforums.org/showthread.php?p=279697#post279697

If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

g_face.jpg

This post tagged:

       - GUI
       - Linux




Unix/Linux Consultants

Skills Tests

Guest Post Here