sorry code muss natürlich so aufgebaut sein:
Code:
if(shift_pressed==false && lparam==16)// 16 = shift taste
{shift_pressed= true;}
if(shift_pressed == true &&lparam == 66)// 66 = B taste
{
Schalter++; shift_pressed=false;
}
if (Schalter == 1)
{
//tuh iwas
}
if(Schalter==2)
{
Schalter =0;
}
bool Arrow_erstellen(string name,datetime time,double price,color clr)
{
ObjectCreate(0,name,OBJ_ARROW,0,time,price);
ObjectSetInteger(0,name,OBJPROP_ARROWCODE,108);
ObjectSetInteger(0,name,OBJPROP_FONTSIZE,10);
ObjectSetInteger(0,name,OBJPROP_WIDTH,1);
ObjectSetInteger(0,name,OBJPROP_COLOR,clr);
ObjectSetInteger(0,name,OBJPROP_BACK,false);
ObjectSetInteger(0,name,OBJPROP_SELECTABLE,true);
ObjectSetInteger(0,name,OBJPROP_SELECTED,false);
ObjectSetInteger(0,name,OBJPROP_ZORDER,0);
return(true);
}