Make profile

What features you would like to have in HIDmacros?
Post Reply
sayalaper
Posts: 6
Joined: 15 Mar 2015, 07:00

Make profile

Post by sayalaper » 25 Mar 2015, 13:18

hello, thankyou for make this software. this software really help doing my task. i used macro with numpad, i use it for browsing, watching movie, and autocad and also play games. after that, i want hidmacros to add profile, i always copy and make another folder hidmacros, for browsing and autocad different macros, thankyou :)

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Make profile

Post by admin » 26 Mar 2015, 08:45

You don't need separate installations.
The program accepts one parameter which is something like profile - it's name of configuration file. If it's not provided, all settings are stored to hidmacros.xml.
If you provide parameter e.g. autocad, settings will be stored to (and loaded from) file autocad.xml.
So just create more shortcuts to the same exe but with different parameter.
Petr Medek
LUAmacros author

sayalaper
Posts: 6
Joined: 15 Mar 2015, 07:00

Re: Make profile

Post by sayalaper » 28 Mar 2015, 01:46

hi thankyou for your answer but i cant see how to use it ? any idea you tell me how to use it ?
ok petr, i can use it now, just make shortcut and right click , properties and add after target is the name parameter what i want

tanoshimi
Posts: 2
Joined: 08 Jan 2016, 16:22

Re: Make profile

Post by tanoshimi » 08 Jan 2016, 16:41

This is directed to Petr:
Great app! I was writing my own, but got stuck. I used GetRawDeviceInput to determine what key was pressed on which keyboard, but it consumed/hijacked the event, so I could not pass it through to windows or other apps. HIDMacros does exactly what I wanted to do, allows me to press a key on my USB numpad and have commands sent instead, but I need "profiles" or different commands depending upon which game is active. My program will do that, if I can figure out how to send the commands forward.

So, my question to you is, and I know you're not supporting HIDMacro anymore, but:
- Can you give me the code or some advice on how to send the keys forward after screening them? I tried SendMessage and PostMessage but they aren't working for me.

LuaMacros does what I need, different codes for different apps, but I don't want to learn another language to do the scripting, and I need a graphical interface as new games are added.

Again, my code is about 90% done, just need to figure out how to get the keys (or my altered commands) to go on to windows or the app.

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Make profile

Post by admin » 12 Jan 2016, 08:52

HidMacros sources are at github: https://github.com/me2d13/hidmacros
Not sure if I get your point - AFAIK raw input doesn't "consume" the message, I had the opposite problem - to stop standard windows handling of the key press if macro is assigned.
Petr Medek
LUAmacros author

tanoshimi
Posts: 2
Joined: 08 Jan 2016, 16:22

Re: Make profile

Post by tanoshimi » 12 Jan 2016, 14:16

Maybe it's the Raw Input dll I'm using. But I find that if I have a textbox on my form, and I hit a key, the DLL registers the key and I can use it (add it to the list), but it does not appear in the textbox. I think I'm going to need to use both Raw Input and Keyboard hooks.

Also, I noticed yours doesn't work with non-printable characters for the commands. This is for gaming, so I need to use the arrow keys and return/escape. Do you recall if there was a reason why you don't use them? Is it just that they don't display in the command text box?

Thanks for the directions.

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Make profile

Post by admin » 13 Jan 2016, 08:54

What do you mean by "yours doesn't work with non-printable characters for the commands"? AFAIR you can have macros defined for those. Maybe you cannot send them as key press from macro's script, I'm not sure now.
Petr Medek
LUAmacros author

Post Reply