I'm looking for a way to execute a function if a click is done on the upper or lower right of the screen
How can I detect the click on the upper right region? I know I can read the upper / lowest price displayable on the screen using GetAppInfo(aiHighestDispValue) but that is not a condition
Actually, I coded to trigger if the click occurred in .5% or .95% of the entire price area. Work OK but the trigger is not define for the right part of the screen. Meaning, If I click anywhere above .95% of the displayable price area
Code: Select all
HighestPrice = Getappinfo(aiHighestDispValue);
Lowestprice = Getappinfo(aiLowestDispValue);
UpperPart = HighestPrice - (.05 * (HighestPrice-LowestPrice));
LowerPart = HighestPrice - (.95 * (HighestPrice-LowestPrice));
if vclickprice >= upperpart then Print ("ClickUpper Part");
if vclickprice <= Lowerpart then Print ("ClickLower Part");
Martin