Crash course to create your GPH Header file
Posted: Mon Apr 24, 2017 12:45 pm
Here is an example on how to use an header file to use several scripts in one, create a new gph file and paste that according to your gph file name at the top of your script:
And paste that at the end of your script:
You can create any script or function as gph and use it with any other script.
paste that according to your gph file name and location at the top of your script to use your header file:
If you see anything to add please comment.
- Code: Select all
#ifndef My_Layout_
#define My_Layout_GPH_
And paste that at the end of your script:
- Code: Select all
#endif /* My_Layout_GPH_ */
- Code: Select all
#ifndef My_Layout_
#define My_Layout_GPH_
#include <keyboard.gph>
#include <mouse.gph>
main {
// For the keyboard
if(key_status(KEY_A)) {
set_val(BUTTON_15, 100);
}
if(key_status(KEY_B)) {
set_val(BUTTON_15, 100);
}
// For the mouse
if(key_status(MBUTTON_1)) {
set_val(BUTTON_15, 100);
}
if(key_status(MBUTTON_2)) {
set_val(BUTTON_15, 100);
}
}
#endif /* My_Layout_GPH_ */
You can create any script or function as gph and use it with any other script.
paste that according to your gph file name and location at the top of your script to use your header file:
- Code: Select all
#include <C:/GtunerIVBeta/Layout/My_Layout.gph>
main {
}
If you see anything to add please comment.