Autor Beitrag
Philipp_Reitter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 13.03.06 06:13 
hi

hab ne frage
wie kann ich in einem programm schreiben dass die tastenkombinationen STRG+C STRG+V und STRG+X funktionieren...

danke im vorraus
Jailbird
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 127

Windows XP Pro SP2
Delphi 7 Professional
BeitragVerfasst: Mo 13.03.06 07:44 
In Standard-Controls funktionieren diese eigentlich immer (??)
frank-wob
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 13.03.06 08:32 
Hallo,
du musst auf das KeyDown Ereignis reagieren. Bsp:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if (ssCtrl in Shift) and (chr(Key) in ['c', 'C']) then
    ShowMessage('Ctrl-C wurde gedrückt!');
end;


Frank
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 13.03.06 14:31 
ok na dann danke aber ne frage
kann ich mit dem alle tasten ansteuern

(chr(Key) in ['c', 'C']) then

enter auch oder nur a...z

und wie kann ich sagen so.... irgendwie 1 bis 100 (auch bei edits)

danke im vorraus
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Mo 13.03.06 14:57 
Enter geht auch siehe ascii tabelle

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 13.03.06 15:38 
Zitat:
ausblenden Quelltext
1:
und wie kann ich sagen so.... irgendwie 1 bis 100 (auch bei edits)					
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 13.03.06 15:45 
:gruebel:

(Mehr fällt mir dazu nicht ein...Was möchtest du?)

_________________
We are, we were and will not be.
frank-wob
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 13.03.06 15:54 
Zitat:

und wie kann ich sagen so.... irgendwie 1 bis 100 (auch bei edits)


Dazu fällt mir auch nichts ein.

Frank
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Mo 13.03.06 16:38 
user profile iconPhilipp_Reitter hat folgendes geschrieben:
Zitat:
ausblenden Quelltext
1:
und wie kann ich sagen so.... irgendwie 1 bis 100 (auch bei edits)					


Siehe ASCII Tabelle.. soll ich sie dir auch noch reinschreiben? Man man man :roll:

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 13.03.06 17:47 
ne´nene das mein ich nich tich mein da gibts doch so was in der art

array[1...50]

das etwas von 1 bis 50 geht
weiß nicht z.b. wenn taste a bis z oder ergebnis 100 bis 200 oder edit 1 bis 5

steht das ales in der tabelle und wo bekomm ichdie her...
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Mo 13.03.06 17:52 
Ich würd dir ja gerne helfen, aber das einzige was ich verstanden hab war "ne", dann hörts bei mir auch schon auf...


greetz

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Mo 13.03.06 17:56 
Hallo, Philipp!

Deine Postings scheinen hier auf allgemeines Unverständnis zu stoßen und auch ich kann diesen Satzfragmenten keinen Sinn abgewinnen. Gib Dir bitte mal ein bisschen mehr Mühe bei der Formulierung!

Christian

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mo 13.03.06 18:05 
ok ok ok ich versuchs mal ganz einfach und verständlich zu formulieren

ich möchte irgendwie eine variable festlegen die für mehrere zahle oder buchstaben gilst
oft sehe ich a..z, A..Z oder array [1..100]
wie kann ich jetzt so ne variable deklinieren???

noch mal in kurtzform
ich will eine variable die für mehrere zahlen gilt

PS: wars verständlich??


Zuletzt bearbeitet von Philipp_Reitter am Mo 13.03.06 18:35, insgesamt 1-mal bearbeitet
Born-to-Frag
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1094

Win XP SP2, Win 2000 SP4
Delphi 7, 2k5
BeitragVerfasst: Mo 13.03.06 18:16 
user profile iconPhilipp_Reitter hat folgendes geschrieben:
PS: wars verständlich??


NEIN! :rofl:

Les dir bitte noch mal dein Posting durch und drücke dann auf den Edit-Button. Ich werde mir dein Post dann noch mal in 10 Minuten durchlesen.

_________________
Theorie ist wenn man alles weiß, aber nichts funktioniert. Praxis ist wenn alles funktioniert, aber niemand weiß warum.
Microsoft vereint Theorie und Praxis: Nichts funktioniert und niemand weiß warum.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Di 14.03.06 20:04 
Variable für mehrere Zahlen = Array :gruebel:

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
starsurfer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 334

Win 95, Win 98, Win XP, Win Vista, Linux
D5 Enterprise ,D2005, D6 Personal, Visual C++ Express 2005, C++ Builder 6 E, Dev-C++
BeitragVerfasst: Di 14.03.06 20:07 
ausblenden Delphi-Quelltext
1:
var variable_fuer_mehrere_zahlen:array[0..99] of integer;					


so :?:

_________________
GEIZ IST GEIL! - Ihr Sozialamt
Philipp_Reitter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 430



BeitragVerfasst: Mi 15.03.06 06:25 
ah coll genau das hab ich gemeint dake!!!!!