Autor Beitrag
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 03.08.03 17:51 
Hi Leutz,
Meine Frage: Wie kann man systemweite ShortCuts erstellen.

Danke für eure Antworten.

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)
blackbirdXXX

ontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1077
Erhaltene Danke: 1

Ubuntu Dapper

BeitragVerfasst: So 03.08.03 19:18 
Wenn du meinst das ich eine Verknüpfung zu einer Datei erstelle geht das so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
function CreateLink(lpszPathObj,lpszPathLink,lpszDesc:string):Boolean;
var psl : IShellLink;
    ppf : IPersistFile;
begin
  Result:=false;
  if SUCCEEDED(CoCreateInstance(CLSID_ShellLink,nil,CLSCTX_INPROC_SERVER, IID_IShellLinkA, psl)) then 
   begin
    psl.SetPath(PChar(lpszPathObj));
    psl.SetDescription(PChar(lpszDesc));
    if SUCCEEDED(psl.QueryInterface(IID_IPersistFile,ppf)) then 
     begin
      ppf.Save(StringToOLEStr(lpszPathLink),TRUE);
      Result:=true;
     end;
   end;
end;


Aufgerufen wird das mit:
ausblenden Delphi-Quelltext
1:
 CreateLink('Dateiname','Name.lnk','Titel der Verknüpfung');					


Ist das das was du wissen wolltest?

_________________
Klein, schwarz und ärgert Techniker? Jumper!
GSE Threadstarter
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 03.08.03 21:07 
Zitat:
Ist das das was du wissen wolltest?
Eigentlich nicht.

Vielmehr meinte ich mit ShortCut: Hotkey, also eine Tastenkombination,
die in meinem Programm festgelegt wird und auf die meine Anwendung immer reagiert auch wenn sie nicht den Fokus hat. Hoffe jetzt ist es halbwegs verständlich.Aber trotzdem Danke für deine Mühe.

Hoffe dazu hat jemand was (blackbirdXXX ?)

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)
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: So 03.08.03 21:18 
Hi,

schau dir mal Suche in: Delphi-Forum, Delphi-Library REGISTERHOTKEY in der Hilfe an :)

Au'revoir
Aya~

Moderiert von user profile iconTino: DF-Tag hinzugefügt.

_________________
Aya
I aim for my endless dreams and I know they will come true!
GSE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Di 05.08.03 10:50 
"...Du wirst lachen, werd ich machen..." :wink:

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)