Check out example codes for "cool autohotkey". It will help you in understanding the concepts better.

Code Example 1

; Custom volume buttons
+NumpadAdd:: Send {Volume_Up} ;shift + numpad plus
+NumpadSub:: Send {Volume_Down} ;shift + numpad minus
break::Send {Volume_Mute} ; Break key mutes
return

Learn ReactJs, React Native from akashmittal.com