Autor Beitrag
icedre
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

Windows XP Prof. , SuSE Linux 9.0 Prof.
Borland Delphi 6.0 Enterprise
BeitragVerfasst: So 06.06.04 17:59 
Hallo,

also folgendes Problem:

Ich möchte ein kleines Tool bauen, was beim ausführen den selben Efekt hat, wie die Windows Taste.
Also, wird das Programm ausgeführt, wird dann auch die Windows Taste gedrückt, dass z.B. das Startmenü aufklappt.

Also wenn es eine einfachere Lösung gibt dann nur her...

Das Programm soll einfach nur das Windows Startmenü aufklappen.

Da ich keinen blassen Schimmer hab und auch noch keinen Ansatz gefunden hab, bitte ich um Hilfe.


Vielen Dank im Voraus, icedre


Moderiert von user profile iconPeter Lustig: Topic aus VCL (Visual Component Library) verschoben am So 06.06.2004 um 19:01
icedre Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

Windows XP Prof. , SuSE Linux 9.0 Prof.
Borland Delphi 6.0 Enterprise
BeitragVerfasst: So 06.06.04 18:25 
Also, hab jetzt mal ein bißchen gegoogelt...

Muss ich das irgendwie mit der Unit "Qt" in Verbindung bringen.
Und was genau beschreibt die Windows Taste, "Key_Win_R"
oder wie ist der genaue Bezeichner dafür ???

Vielen Dank für die Antworten[/faq]
DaRkFiRe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 526

WinXP Home & Professional
C, C++, Delphi
BeitragVerfasst: So 06.06.04 18:27 
Ich würde vermuten, es sei die rechte Windows-Taste auf der Tastatur (rechts von der Leertaste).

_________________
Lang ist der Weg durch Lehren - kurz und wirksam durch Beispiele! Seneca
Cruiser23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 191

WinXP
D7 Prof.
BeitragVerfasst: So 06.06.04 19:38 
Startmenü per Programm öffnen

Saug dir auf jedenfall auch den EDH 2000 (gibts auf der Site)! Sind noch vile brauchbaren sachen für dich drin!

_________________
Du steckst immer in der Sch****, das einzige, was sich ändert, ist die Tiefe!
icedre Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

Windows XP Prof. , SuSE Linux 9.0 Prof.
Borland Delphi 6.0 Enterprise
BeitragVerfasst: So 06.06.04 20:15 
Alles klar, super !

Danke für die schnelle Antwort.

Nur noch ein Problem:

Wie kann ich das jetzt machen, dass wenn ich das Programm starte, also z.B. doppel klicke auf die EXE Datei,
sofort der Befehl augeführt wird und ich nocht noch auf den Button drücken muss ?

Vielen Dank !
Cruiser23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 191

WinXP
D7 Prof.
BeitragVerfasst: So 06.06.04 20:24 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.OnCreate(Senter: TObject);
  begin
    //Der Aufruf
  end;

_________________
Du steckst immer in der Sch****, das einzige, was sich ändert, ist die Tiefe!
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: So 06.06.04 20:26 
Schau dir mal NonVcl an, wenn dein Programm wirklich nur das machen soll, ansonsten in OnCreate der Form.

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
icedre Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

Windows XP Prof. , SuSE Linux 9.0 Prof.
Borland Delphi 6.0 Enterprise
BeitragVerfasst: So 06.06.04 20:34 
Hallo,

also mit TForm1.OnCreate hab ich auch schon versucht, aber dann bleibt immer das Programm Fenster offen, auch wenn ich nach dem Startmenü Befehl ein "close" darunter schreibe.
Das Programm soll ja dann wieder geschlossen werden...
Cruiser23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 191

WinXP
D7 Prof.
BeitragVerfasst: So 06.06.04 20:41 
delphi hat da so seine Probleme. Setz einfach OnCreate die For auf unsichtbar ( Application.ShowmainForm := False; ) und einen Timer auf true, den Intervall auf 500 (1/2 sek.). OnTimer dann  Application.Terminate;

_________________
Du steckst immer in der Sch****, das einzige, was sich ändert, ist die Tiefe!
icedre Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

Windows XP Prof. , SuSE Linux 9.0 Prof.
Borland Delphi 6.0 Enterprise
BeitragVerfasst: So 06.06.04 20:45 
Hallo,

also mal ganz langsam :shock:

Du willst also das Fenster unsichtbar machen und dann einen Timer stellen der das ganze dann schließt oder ?
Cruiser23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 191

WinXP
D7 Prof.
BeitragVerfasst: So 06.06.04 20:46 
jepp

_________________
Du steckst immer in der Sch****, das einzige, was sich ändert, ist die Tiefe!
icedre Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

Windows XP Prof. , SuSE Linux 9.0 Prof.
Borland Delphi 6.0 Enterprise
BeitragVerfasst: So 06.06.04 20:49 
OK
das mit dem unsichtbar hab ich,
aber mit dem Timer komm ich nicht ganz zurecht...
Cruiser23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 191

WinXP
D7 Prof.
BeitragVerfasst: So 06.06.04 20:57 
Bei dem Timer-Event OnTimer (auf den Timer doppelklicken) die volgende zeile einfügen:
ausblenden Delphi-Quelltext
1:
Application.Terminate;					

Die Eigenschaft Intervall von Standard 1000 auf 500 setzen.
Fertig.

_________________
Du steckst immer in der Sch****, das einzige, was sich ändert, ist die Tiefe!
icedre Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

Windows XP Prof. , SuSE Linux 9.0 Prof.
Borland Delphi 6.0 Enterprise
BeitragVerfasst: So 06.06.04 21:00 
Also ich glaub ich bin am verblöden... :(

Ich find diesen Timer-Event einfach nicht...

Ist der in dem Objectinspektor oder wo ? ? ?
Cruiser23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 191

WinXP
D7 Prof.
BeitragVerfasst: So 06.06.04 21:02 
was passiert wenn du doppelt auf den timer klickst?

_________________
Du steckst immer in der Sch****, das einzige, was sich ändert, ist die Tiefe!
icedre Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45

Windows XP Prof. , SuSE Linux 9.0 Prof.
Borland Delphi 6.0 Enterprise
BeitragVerfasst: So 06.06.04 21:03 
Also ich glaub ich habs :D

Bei System -> Timer :lol:
Cruiser23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 191

WinXP
D7 Prof.
BeitragVerfasst: So 06.06.04 21:06 
Sorry, dachte du wüstest sas der timer ne Kompo is... :D

_________________
Du steckst immer in der Sch****, das einzige, was sich ändert, ist die Tiefe!
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Mo 07.06.04 08:49 
Was spricht eigentlich gegen dieses Programm?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
program Project1;

uses
  Windows, Messages;

{$R *.res}

var
 hdc: HWND;
begin
  hdc := FindWindow('Shell_TrayWnd','');
  if hdc <> 0 then
   SendMessage(hdc,WM_SYSCOMMAND,SC_TASKLIST,0);
end.


NonVCl und nur 9K...
@icedre: einfach alle Units aus dem Projekt nehmen und das in die .dpr schreiben


mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)