There is no way. GG actually injects itself into every process that is running, and if it detects a non-physical (meaning artificial) keystroke or mousepress or w/e, it'll block the game from detecting those actions. Here are the ways you could possibly get passed GG:
1. Find a working bypass for the current revision of GG.
2. Remove GG from dekaron.exe.
3. Design a program to simulate actions through I/O streams.
4. Use VMWare to simulate another OS and use a script to send actions to the simulator.