Показать сообщение отдельно
  #2  
Старый 01.06.2012, 18:03
d1sable d1sable вне форума
Прохожий
 
Регистрация: 18.05.2012
Сообщения: 19
Репутация: 10
По умолчанию

Цитата:
Сообщение от d1sable
Ребят, как сделать так чтобы

Если Edit1.Text равен 123 , то Button1.Enabled := false;

Зарание спасибо!

Код:
if CommandLabel.Caption = 'Command : Play' then
Form1.Left:=0;
Form1.Top:=0;
x := 434;
y := 258;
SetCursorPos(x, y);
Mouse_Event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
Mouse_Event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
Application.Restore;
ButtonStop.Enabled:=true;
ButtonPlay.Enabled:=false;

if CommandLabel.Caption = 'Command : Stop' then
Form1.Left:=0;
Form1.Top:=0;
x := 60;
y := 472;
SetCursorPos(x, y);
Mouse_Event(MOUSEEVENTF_LEFTDOWN, x, y, 0, 0);
Mouse_Event(MOUSEEVENTF_LEFTUP, x, y, 0, 0);
Application.Restore;
ButtonStop.Enabled:=false;
ButtonPlay.Enabled:=true;
Вот так у меня не прокатывает(Запускаются всеравно обе и сразу)
Ответить с цитированием