Autor Beitrag
Flash106
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 234


D7 Ent
BeitragVerfasst: Di 04.07.06 17:53 
Hallo,

ich möchte gerne aus eine Fenster einen markierten Text mit einer ShellExecute ausführen. Es geht dabei um dateien. Wenn ich also einen Pfad markiere und eine vordefinierte Taste drücke soll die Datei geöffnet werden. Ich hab noch nicht so die idee wie ich das anstellen soll und bedanke mich schonaml für jede idee. :)
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Di 04.07.06 17:54 
In was für einer Kompo wird dein Text angezeigt?

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Di 04.07.06 17:55 
stehen die pfade z.B. in einem listview oder als label auf der form?

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
Flash106 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 234


D7 Ent
BeitragVerfasst: Di 04.07.06 17:57 
Es geht um externe Fenster. Kein eigenes Programmfenster
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Di 04.07.06 17:59 
Und in was für einer Kompo steht der Text da? :roll:

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Flash106 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 234


D7 Ent
BeitragVerfasst: Di 04.07.06 18:02 
Weis ich nicht genau. Ist das sehr wichtig?! :( Es sollte egal sein. Einfafch flexibel aus alles auslesbar
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Di 04.07.06 18:03 
Auf ein Edit greift man z.B. anders zu als auf eine ListBox, also ja.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Flash106 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 234


D7 Ent
BeitragVerfasst: Di 04.07.06 18:06 
Ok könnte ich vielleicht erstmal ein Beispiel haben? Egal wofür. Ich hab ja noch nichtmal den HAUCH einer idee ^^
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Di 04.07.06 18:09 
Screenshot?

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
Flash106 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 234


D7 Ent
BeitragVerfasst: Di 04.07.06 18:18 
Hm?! Wovon? Hmmm.. vielleicht habe ich es falsch ausgedrückt. Ich habe ein Windows Fenster.. irgendeins. Z.b. Ein Mail Fentser aus Outlook Express dem IE oder vielleicht einfach nur Notepad. Jetz markiere ich was in dem Fenster und drücke eine Taste die ich selber definiere. Dann öffnet sich bei Shellexecute der markierte Text.. weil ich z.b. einen Pfad zu einer Datei markierte habe. Mehr nicht :)
ReDoX
Hält's aus hier
Beiträge: 14

WinXP & Linux [VM]
Delphi 7 Professional
BeitragVerfasst: Di 04.07.06 18:46 
Ich wuerde den Inhalt des Clipbrds speichern, dann [Strg]+V an der Handle senden, danach das Clipbrd auslesen und mit ShellExecute/CreateProcess ausfuehren. Zum Schluß noch den alten Inhalt wieder herstellen, ist zwar nicht die beste Loesung, aber einfach und Universel
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Di 04.07.06 18:57 
user profile iconFlash106 hat folgendes geschrieben:
Dann öffnet sich bei Shellexecute der markierte Text..


Wie meinst du das genau? Wie willst du den anzeigen und so...

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
Flash106 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 234


D7 Ent
BeitragVerfasst: Di 04.07.06 19:08 
Also ich will z.b. eine Datei ausführen wenn ich einen Pfad markiere. Wenn ich den Text nur markiere ist ja noch nichts im Clipboard oder?! :(.