Run Macro Programmatically or c++ / c# | Razer Insider
Skip to main content

Run Macro Programmatically or c++ / c#

  • 22 February 2020
  • 5 replies
  • 116 views

Hello, is there a chance to run a recorded macro through program?

I recorded pressing letter q and assigned it to the keyboard key F1, it is working fine, when I press F1 it will press q.

I tried to use c++ keybd_event and c# SendKeys.Send to press F1, it is pressing F1 but not pressing q

Is there a way I can do this?

Thank you in advance!
Did this topic help you find an answer to your question?
This topic has been closed for comments

5 Replies

shmekermeister
If you are running your application outside of the Synapse environment, it's an expected behavior.
Both C++ and C# simulate keypress on OS level, not on actual keyboard input. I am not quite sure how triggering of macros is happening in Razer environment (does this happen immediately on keyboard, or later in Synapse software), but triggering keypress through custom application comes outside of Synapse, and because of that doesn't trigger any macro defined in it.

If you want to do this, perhaps there is a way with custom application which is registered through Synapse. I didn't do any application like this myself, but there are some application on the internet (maybe some tutorial, too).

Thank you that makes sense, you have a great idea. Maybe I need to try to do a postmessage on synapse itself.

I been researching how to do it, guess my only options now is to seek help here.

Thank you so much!

Tried to do a PostMessage on RzSynapse.exe it's not the solution. hmmm. any other ideas?

shmekermeister
fleeasura123
Tried to do a PostMessage on RzSynapse.exe it's not the solution. hmmm. any other ideas?

Unfortunately, this whole setting is a black box for me :frown_:
Perhaps someone will show up here who made something similar.

Hopefully there is someone who can do this. Thank you so much!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings