Jump to content

Recommended Posts

Posted

Is it possible to create such a loop?

If yes, can anybody explain the syntax to me?

 

Thank you in advance.

OS: Win10 | Hardware: Z97 Mainboard, i7 4790k @4Ghz, GTX980, 4x4GB DDR3-1600 Dual Channel Ram, TM Warthog (w/ Extension) + Throttle, CH Pro Pedals, TIR5 with Custom Clip

Posted (edited)

Well, I want to know the syntax of the keywords the script supports, espicially the one called while, which I intend to use for a while-loop (a structure (excuse for my maybe not perfect english) that repeats until a condition is matched).

 

A List of the supported keywords according to the manual (where their syntax is not explained as it is a basic manual and an advanced one seems not to exist):

char, byte, short, word, int, alias, float, struct, include, if - else, do - while, while, return, goto, break

 

This would help me creating a function in my script, as I could make sure that my faults are in the logical structure.

Currently I am not sure whether my while loop is terminated after the condition is matched.

 

Edit: This is my best try at the moment:

 

loop1 = EXEC("while(rind3 < 0) ActKey(PULSE+ KEYON+ ch1);");

 

ch1 (function) creates some keypresses and sets rind3 (variable) to rind3+1

however, the whole thing is executed only once, no matter what rind3 value you use as long as it is smaller than zero

=> replacing the while condition with an if condition does not change anything

Edited by qqQ

OS: Win10 | Hardware: Z97 Mainboard, i7 4790k @4Ghz, GTX980, 4x4GB DDR3-1600 Dual Channel Ram, TM Warthog (w/ Extension) + Throttle, CH Pro Pedals, TIR5 with Custom Clip

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...