![]() |
Re: ShutDown Problem
*push* waren das nun 24h oder 24 Tage pause bis zum pushen :gruebel: :mrgreen:
|
Re: ShutDown Problem
habs genauso wie im #4 gemacht aber keine wirkung :?
nach einem countdown wird ein button automatisch geklickt mit folgendem code:
Delphi-Quellcode:
was ist daran falsch?
//case mag ich nicht so ;)
if lboff.itemindex=0 then ExWindows('', ewx_poweroff) //Beenden else if lboff.itemindex=1 then ExWindows('', ewx_reboot ) //Neustart else if lboff.itemindex=2 then ExWindows('', ewx_logoff ); //Logoff end; |
Re: ShutDown Problem
Zitat:
Delphi-Quellcode:
Was kann man daran bitte jetzt nicht mögen?
case lboff.itemindex of
0: ExWindows('', ewx_poweroff); 1: ExWindows('', ewx_reboot ); 2: ExWindows('', ewx_logoff ); end; BTW debugg das mal und guck, ob er überhaupt in den entsprechenden Zweig (if/case) reinspringt. |
Re: ShutDown Problem
ich weiß so hatte ich es auch schon aber ist nicht eine if-anweisung schöner? ;)
verschachtelt ohne ende. case geht schon.. |
Re: ShutDown Problem
Zitat:
|
Re: ShutDown Problem
Back to the topic please.
warum funzt die case nicht. wäre eine ShellExecute besser? |
Re: ShutDown Problem
Hallo,
weil du in Zeile 533 ein "end" vergessen hast. :cyclops: Nein, kleiner Scherz. Schreib doch mal, was daran nicht funktioniert, sonst ist dir nicht zu helfen ;-) Gruß, ManuMF |
Re: ShutDown Problem
hab mir selber geholfen ;)
es gab ein problem mit der tlistbox. irgendwie verstand der nicht .itemindex. die gleiche methode bei einer tcombobox funzt einwandfrei. |
Re: ShutDown Problem
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:40 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz