Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

Hi all!

For a specific game (Pebble) i have to write an autohotkey script to use arrow key as a mouse (keys A & Z are respectively remapped to LeftClic & RightClick too) because the Gameex Mouse emulation don't seems to work with this game

So i've wrote this :

*up::MouseMove, 0, -10, 0, R ; Win+UpArrow hotkey => Move cursor upward

*Down::MouseMove, 0, 10, 0, R ; Win+DownArrow => Move cursor downward

*Left::MouseMove, -10, 0, 0, R ; Win+LeftArrow => Move cursor to the left

*Right::MouseMove, 10, 0, 0, R ; Win+RightArrow => Move cursor to the right

<a:: ; LeftWin + RightControl => Left-click (hold down Control/Shift to Control-Click or Shift-Click).

SendEvent {Blind}{LButton down}

KeyWait RCtrl ; Prevents keyboard auto-repeat from repeating the mouse click.

SendEvent {Blind}{LButton up}

return

<z:: ; LeftWin + AppsKey => Right-click

SendEvent {Blind}{RButton down}

KeyWait AppsKey ; Prevents keyboard auto-repeat from repeating the mouse click.

SendEvent {Blind}{RButton up}

return

the cliks buttons works, directions too, but i can't find a way to use diagonals ( for example left+up )

Any ideas or a better to do this??

Thanks ;)

Posted

In the AHK Helpfile search for "Hotkey" in the index. Then look for this section:

Custom Combinations and Other Features [Windows NT/2000/XP or later]

Hopefully that will help!

Posted

There is a key -> mouse feature built right into Windows that you might consider checking out also. I believe it's part of the Accessibility Options, but it will allow you to use the number pad as a mouse. IMO though, it's probably better/easier to use a script since it's more customizable. I just wanted to mention it in case you weren't aware.

Here's a link to the MS page detailing it:

http://www.microsoft.com/enable/training/w.../mousekeys.aspx

Posted

Thanks for the tip of the accessibility options, it's quite good

The diagonals are now set on numpad 1,3,7 & 9 keys

But how can i map left+up arrow to Numpad7 for example

I've tried

up & left::Numpad7

but it doesn't seems to work.....

Posted

Does someone knows another key to mouse editable software???

Like joy2mouse but editable to use keyboard keys?

At any members using mouse controlled PC games :

How do you perform this?????

Thanks ;)

Posted

Take a look at an advanced config found in the CONFIG\EMULATORS directory of your GameEx install. GameEx has a mouse mapping feature you could also try.

[MOUSEMAPPING]

# For registered users, the ability to control the mouse with a gamepad and/or directional keys.
# For example for PC strategy games.
# Apparantly this functionality is similar to the software Pinnacle profiler. Remember you can setup an emulator
# as one PC game. Specify enabled, and mousespeed 0-20. 20 Being fastest. This setting overrides the directional
# mapping for the above and buttons 1 and 2 Button 1/CTRL becomes left mouse. Button 2/ALT Right mouse

MouseMappingEnabled=False
MouseSpeed=0

Posted

OK i'm registered so i've already try the mouse emulation in gameex and it doesn't seems to work with this game ( like said in my first post)

Perhaps i have to learn better how to use AHK, because the Numpadmouse script doesn' seems to work too.....

I will try harder.....

Thanks

Posted

Ok, i've found my problem with the mouse emulation

The problem is that i have a special X-arcade setup ( mode 4 ) and the file PC Mouse V6.ini seems to use the standard X-arcade mode (mode 1 )

Which file have i to modify to make the mouse emulation work with my special X-Arcade setup??

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...