I think I remember seeing something about passing a function through a function using the @ symbol?
Basically, I run this code block a lot:
Simba Code:Start := GetSystemTime;
repeat
Wait(100);
if((GetSystemTime - Start) > 7500)then
begin
Failsafe(False);
Break;
end;
until(not(R_BankScreen))
So I want to make a function allowing myself to input a value instead of the 7500 for the Breakout time, and then the until() condition.
But you can't just do WhateverFunction(7500, not(BankScreen)) because that will run the function and actually pass the result through correct?
Would it be: WhateverFunction(7500, @not(BankScreen)) ?
Can't test atm, have a sick proggy going.




Reply With Quote










