Autor Beitrag
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 11.12.03 15:53 
hallo !!!

wie kann ich ein analog modem das am PC hängt (seriell oder paralelle schnittstelle) so ansprechen, dass es erst eine festgelegte Telefonnummer wählt und dann nach 2 sek auflegt ??

vor dem wählen soll der user dann seinen telefon hörer abnehmen. das tel des useres ist mit dem modem paralell geschaltet so dass das proggi für den suer die telefonnummer wählt und der user dann telefonieren kann.


Moderiert von user profile icontommie-lie: Topic verschoben

_________________
In the beginning was the word.
And the word was content-type: text/plain.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Do 11.12.03 16:32 
Vielleicht hilft dir ja das hier weiter: www.delphi-forum.de/....php?p=114347#114347

Ansonsten könntest du dich nach Terminalprogrammen richten, eine Suche nach sowas ergibt vielleicht ein paar OpenSource-Terminals zum lesen ;-)

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 11.12.03 19:09 
na ja ich muss irgendwas mit TAPI machen

oder weiss jemadn wie ich die windows wählhilfe fernsteuern kann.
ein tut zu tapi hab ich ja schon bei den schweizern gefunden, aber da ist leider nciht beschrieben, wie man die verbindung wieder auflegt !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Fr 12.12.03 14:13 
Wie man die Verbindung wieder auflegt, wird im MSDN beschrieben.

_________________
If accidentally read, induce vomitting.
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 13.12.03 09:59 
danke schonmal.
aber irgendwie steig ich bei MSDN immer nicht so ganz durch. also der code von den schweizern lautet:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
function tapiRequestMakeCall(DestAddress, AppName, 
  CalledParty, Comment: PChar): Longint; stdcall; external 'TAPI32.DLL'; 

procedure TForm1.Button1Click(Sender: TObject); 
var 
  PhoneNumber, AppName: array[0..255] of Char; 
begin 
  PhoneNumber := '1234567890'; 
  StrPCopy(AppName, Application.Title); 
  tapiRequestMakeCall(PhoneNumber, AppName, '', ''); 
end;


wie muss ich dann das linedrop einbauen ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 16.12.03 14:29 
oder kann mir wenigstens jemand sagen, was dir parameter
ausblenden Quelltext
1:
2:
3:
HCALL hCall,
  LPCSTR lpsUserUserInfo,
  DWORD dwSize

bedeuten ??

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Di 16.12.03 19:39 
HCall ist ein Handle vom Typ HCALL auf eine zuvor aufgebaute Verbindung.
lpsUserInfo ist ein String vom Typ PChar.
dwSize ist die Größe des Records und ist vom typ DWord.

Das Problem hierbei ist, dass dir das nicht weiterhilft, wenn du eine Verbindung über tapiRequestMakeCall aufgebaut hast, da du kein hCall erhältst.

Deshalb musst du wohl oder übel den langen Weg über lineMakeCall gehen. Dafür brauchst du dann aber wieder andere Handles, die du wiederum über andere line-Funktionen erhältst.

Man kann sich die ganzen Funktionen aus dem MSDN zusammenbasteln und dann die TAPI32.DLL ansprechen oder du lädst dir die TAPI-Übersetzung für Delphi bei den Delphi-Jedis herunter.
Dann brauchst du dir nur noch sämtliche benötigten Funktionen aus dem MSDN heraussuchen und die entsprechenden Funktionen aus der Übersetzung verwenden. hCall ist dann z.B. einfach THCall usw.

Ich hoffe, dass dir das weiterhilft.

_________________
If accidentally read, induce vomitting.
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 17.12.03 15:32 
ich schau mir mal das von den jedis an ! mal schaun ob mir das wieterhilft

_________________
In the beginning was the word.
And the word was content-type: text/plain.