2

I have a Belkin n52te. I'm using the Razor programming software to program it. What I'd like to do is program it to hold down the right mouse button for 5s and then let go. I've tried recording that but it didn't work. I've tried putting a 5000 ms delay between the Button Down and the Button Release event but that also didn't work.

Anyone know how to do this? Anyone know of any good forums to search for this?

Edit: this is for Minecraft. I'd like to make a macro that presses the left mouse button for x number of seconds. Let's say 3. So my macro is:

Left Button Press

3000 ms

Left Button Release

That's exactly what I see on the screen. But that's not what I get when I run the program. I get a single left button press.

The behavior isn't restricted to Minecraft. The same thing happens in Notepad++.

5
  • 3
    Perhaps Superuser may be a better place for this question? Oct 16, 2010 at 15:56
  • 2
    @mechko: It's a gaming peripheral, so this place seems more appropriate.
    – jcollum
    Oct 16, 2010 at 16:24
  • 2
    The Belkin n52te is a gamepad. An unusual one, aye, but a gamepad nonetheless. So as a gaming accessory, it's quite fit here.
    – Grace Note
    Oct 19, 2010 at 12:26
  • 1
    I'm for moving it to SuperUser, too. Though the hardware is related to gaming, the question asked could be related to any application, not only games.
    – DrFish
    Nov 9, 2010 at 14:34
  • I'll edit the question, since what I'm trying to do is specific to minecraft. Will get to it shortly.
    – jcollum
    Nov 9, 2010 at 17:57

2 Answers 2

3
+25

Try using http://www.autohotkey.com/ with the following script:

^!b::
    MouseClick, left, , , 1, 0, D
    Sleep 5000
    MouseClick, left, , , 1, 0, U
return

This will click the left mouse button for 5 seconds when pressing ctrl-alt-b.

This is regardless of inputdevice. To find out which keycode your device sends use the built in "Key history and script info" and replace the "^!b::" with the keycode found, ex: "SC132::".

More information about MouseClick http://www.autohotkey.com/docs/commands/MouseClick.htm

4
  • Thought it looked weird, before I noticed the D and U parameter values at the end. (D=Down, U=Up?)
    – DrFish
    Nov 10, 2010 at 16:21
  • How does this answer my question about my N52te? Does that program work with the N52te?
    – jcollum
    Nov 10, 2010 at 17:08
  • @Jcollum: it emulates mouse clicks, so will work with any mouse.
    – RCIX
    Nov 11, 2010 at 5:52
  • Still doesn't answer the question: your answer doesn't apply to programming the N52te
    – jcollum
    Nov 11, 2010 at 17:22
1

I have a Belkin Nostromo n52 and all I have to do is put the delay in as you describe; are you sure it's not working? What if you try changing the n52 macro to use a different key and bind that key in the game in question? Does that work instead? I suppose it could be an issue with their mouse support, which has been flaky at times.

2
  • do you have an n52te? I'm not able to change the bindings for the left mouse button in minecraft.
    – jcollum
    Nov 12, 2010 at 4:52
  • No, sorry, I didn't like the n52te because it stripped down so many of the buttons from the Nostromo n52. But I was hoping the software would be identical. Sorry to hear it's not :/ Nov 16, 2010 at 0:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .