Skip to content

Commit

Permalink
rerer
Browse files Browse the repository at this point in the history
  • Loading branch information
TaranVH committed Jan 7, 2019
1 parent d265daf commit 348d2ec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Razer/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Download and install the following:
https://github.com/TaranVH/2nd-keyboard/tree/master/Razer/razer_direct_launch

(Github doesn't have a way to do this, so here is a direct link:)
https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/TaranVH/2nd-keyboard/tree/master/Razer/razer_direct_launch.ahk
https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/TaranVH/2nd-keyboard/tree/master/Razer/razer_direct_launch

- Unzip that file and make sure that all the scripts go exactly here:

Expand All @@ -48,16 +48,18 @@ https://github.com/TaranVH/2nd-keyboard/blob/master/Razer/Cyonosa_2nd_Keyboard.s

- Make sure that the Razer profile is active on your Cyonosa Chroma keyboard.
- Make sure that the .ahk script is running.

- Hit a key on your Razer keyboard. A message box should appear that includes the word **"Horray."** Success!

If you don't dismiss the message box within 5 seconds, an error message will appear. Also, if you try to launch any other script while the box is up, you will get a tooltip instead, informing you that you already have a script running.

This gets a bit complicated, but basically, we had to do it in this special way, to avoid cross-talk, making sure that only one script is running at a time. Otherwise, you'd have multiple competing threads, if you accidentally hit more than one key at a time.

Simply using #include to get your functions into the first .ahk script is not good enough; that still results in cross-talk.

But if you like, you can use Razer synapse to directly launch an autohotkey script of your own design, which is independant from all the other ones. The sky's the limit!

- Now it's up to you, to replace each of those lines in 2nd_keyboard_if_using_Razer.ahk with calls to your own scripts and functions. It's all just normal AHK scripting from this point on. You can find some of my functions, here: https://github.com/TaranVH/2nd-keyboard/blob/master/Almost_All_Windows_Functions.ahk
- Now it's up to you, to replace each of those lines in 2nd_keyboard_if_using_Razer.ahk with calls to your own functions. It's all just normal AHK scripting from this point on. You can find some of my functions, here: https://github.com/TaranVH/2nd-keyboard/blob/master/Almost_All_Windows_Functions.ahk


### Auto-launching
Expand Down

0 comments on commit 348d2ec

Please sign in to comment.