phaenom

How to get input from keyboards own macro keys?

10 posts in this topic

Sorry my english, but i need help in my problem...

I have this Mad Catz S.t.r.i.k.e.3 -keyboard which comes with 12macro keys (M1-M7 & C1-C5). The macro making software which came with the keyboard is terrible, so im trying to write own macros for those macro buttons with autoit. I have used autoit for over an year and this is actually first time i get stuck. For those who don't know how the keyboard looks: >Link to picture here<

How i can use keyboards own macro keys in hotkeyset or _ispressed?

As far as i know these might help:

DEVICE NAME: Mad Catz S.T.R.I.K.E.3 Keyboard
DEVICE TYPE: Unknown
Safe To Unplug: Yes
USB Hub: No
Serial Number: Example#
VID/Vendor ID=0738
PID/Product ID=1112(115)
USB class: 00
USB Protocol: 00
PRODUCT NAME: 
SERVICE NAME: usbccgp
DRIVER FILENAME: usbccgp.sys
DEVICE MFG: (Standard USB Host Controller)
USB Version 2.00
DRIVER VERSION: 6.1.7601.18328
DESCRIPTION: USB Composite Device
FIRMWARE REVISION: 1.15
USB SubClass: 00
Parentld Prefix: 6&333627fc&0
Service Description: Microsoft USB Generic Parent Driver
Device Class: USB
Driver Description: USB Composite Device
Instance ID: USBVID_0738&PID_1112Example#
 
 
Thanks in advance!

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Please tell us the keycodes when pressing those keys.

Here a script to show the keycodes.

 

Sorry to hide the code. See next post by Melba

Edited by Exit

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites

Exit,

Please read the KeyLoggers announcement and thank your lucky stars that I realise your good intentions in posting one. ;)

phaenom,

Often these macro keys are hardware controlled and therefore cannot be managed by AutoIt - a bit like the Fn key on laptops. :(>

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
 

I would echo the vk_ keycodes and see if your keyboard uses any of the "oem" type in this list:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx

 

None of oem type works. So is there any other way to get this work?

Exit,

Please read the KeyLoggers announcement and thank your lucky stars that I realise your good intentions in posting one. ;)

phaenom,

Often these macro keys are hardware controlled and therefore cannot be managed by AutoIt - a bit like the Fn key on laptops. :(>

M23

 

Don't worry, I'm not trying to make "get all keystrokes keylogger-program" :) 

Share this post


Link to post
Share on other sites

I almost lost my hope with this one, but today I discovered that playstation 2 emulator on pc recognize my keyboards macro buttons. I think that if the emulator recognize those, autoit can also somehow. Any ideas how?

And yes, I know this message can be near to violate the forum rules, althought this is not directly against those...

Share this post


Link to post
Share on other sites

Just an idea, but if the macro software sucks and you want to use AutoIT for macro functions and you can't capture the macros key hooks directly.

Would it be a feasable solution to use the macro keys just as hotkeys.

Set them to something simple like say key "G1" as Control+Y and then use Autoit with a hotkey for Control+Y = Your Desired Macro

Share this post


Link to post
Share on other sites

Just an idea, but if the macro software sucks and you want to use AutoIT for macro functions and you can't capture the macros key hooks directly.

Would it be a feasable solution to use the macro keys just as hotkeys.

Set them to something simple like say key "G1" as Control+Y and then use Autoit with a hotkey for Control+Y = Your Desired Macro

 

That works, but then I need to keep macro software active, which seems to be kind of buggy and slows down computer sometimes. It would be nicer to do all only with autoit (:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now