Reply
Logi Nu
megab
Posts: 4
Registered: ‎05-30-2006
0

Macro Programming

I currently have a MX510, which I like a lot but I feel the macro programming function for the buttons is limited. for example you can do ctrl+i but you cannot do ctrl+i+i because the software will not allow multiple key presses of the same key for some reason. Does anyone know or know of a way to allow this functionality? I tried, but failed to even locate the file the macros are saved to so I could possibly modify them manually. Does anyone know where these button settings are stored?
Logi Legend
rlowens
Posts: 6,594
Registered: ‎05-22-2006
0

Re: Macro Programming

The MX510 can use either MouseWare 9.80 (which is what Logitech still lists for it) or the newer SetPoint driver (MX510 support was added in ver. 2.60.590).

If you install SetPoint and my uberOptions mod, you can select the new "Keys:2 Keystrokes" function and set the 2 keystrokes to whatever you want (I.E., send ctrl-i, ctrl-i. I just tested it with sending "hi" ).

How this is done: the functions ("HandlerSets" ) are defined in the C:\Program Files\Logitech\SetPoint\default.xml file (with help strings defined in strings.xml). At the top of default.xml the "HandlerSets" are grouped into "HandlerSetGroups": uberOptions adds a "UberGroup" that has all functions.

To make a function that sends multiple keystrokes, I made a new HandlerSet with the payload of the "KeystrokeAssignment" HandlerSet twice. Since it was originally for someone that wanted a double arrow function, that's what I defined first. If you wanted to add a function that sends 3 (or more) keystrokes, you could do the same process as used for the "DoubleUpArrow" HandlerSet. To find the variables to pass for your specific keystroke, set a button to send that keystroke, close SetPoint's trey icon (so that it will save your user.xml settings file) and view the settings in C:\Documents and Settings\USERNAME\Application Data\Logitech\SetPoint\user.xml (where USERNAME is your Windows login name).

Fairly difficult, so if you want more than 2 keystrokes I suggest triggering another macro program such as AutoHotkey or Girder. With uberOptions you can have the button send F13-F24 and trigger off of that.

-Richard L. Owens, author of the uberOptions mod for SetPoint. Unlock the options of your SetPoint-controlled device! mirror
Logi Nu
megab
Posts: 4
Registered: ‎05-30-2006
0

Re: Macro Programming

Yes that was exactly what I was looking for!!!!:smileyvery-happy: Thank you! This is so cool the functionality is limitless now that I can setup my own binds :smileyvery-happy: :smileyvery-happy: :smileyvery-happy:!

One more question, when you set a repeat delay appoximately what length of time is 1 unit?
Logi Nu
megab
Posts: 4
Registered: ‎05-30-2006
0

Re: Macro Programming

Actually can the repeatable function be used with the "KeystrokeAssignment" handleset? so I could get a series of keystrokes to repeat as long as the button is held down?
Logi Legend
rlowens
Posts: 6,594
Registered: ‎05-22-2006
0

Re: Macro Programming

Repeat delay is in ms (1000 per second). Yes, repeat works with whatever function you set that button to. But, repeating is set per-button in the device's default file, so it isn't simple to turn on/off when you want.

-Richard L. Owens, author of the uberOptions mod for SetPoint. Unlock the options of your SetPoint-controlled device! mirror
Logi Nu
qwerty
Posts: 3
Registered: ‎05-26-2006
0

Re: Macro Programming

I am using STROKEIT ( http://www.tcbmi.com/strokeit/ ) for more difficult commands. I think, there is also possibility program a macro:
Menu: Keys - Send Keystrokes
"You can emulate key combinations through the syntax [KEY_DOWN]x[KEY_UP] where "KEY" is the key to hold down and "x" is the character to type while KEY is pressed ..."
 
The macro is not programmed then to mouse button, but it is also very simple use it. Just press right mouse button and draw simple shape - for example line from left to right or line from up to down ... or circle ... or whatever you want - you can program your own shape. It is very useful software for mouse controlling ...