Hello, I'm using Delphi for few years but I've been doing some really basics stuff yet. Actually, I'm working on a program with Delphi 7.
Basically, it's a program to make orders. There is a phone system where you have to dial all items manually. I want to use my dial-up modem to make it automatically.
In my program, You use check boxes to select items (which are related to an item number). Then I press "ORDER" and It appears like that on a TMemo.
1-555-555-5555
4 // options
*2355322# // user ID
12345678 // password
1 // new order
123456 * 1# {items * quantity and # to confirm the end of a lines}
234567 * 3#
345678 * 10#
678901 * 5# {end}
# // end of order
1,,,9 // 1 to confirm, 9 to disconnect.
THE-END
I use a string. I append each Memo.lines to it with ',,,' between (to give the time to the phone system). I figured out that a string was only 256 char max. So I'm trying with a widestring. But I can't get it to work.
First, I've been using TTapiDial Component as well as HbTapi. But it wasn't working properly.
I had to make short orders of like 5-6 items at the time, hang up and start over with some other items. That could take up to 7 times sometimes to pass through the whole order.
I gave up on that few months ago. But yesterday, I said : THAT HAS TO BE DONE . So I reconsider some codes and I tried with Window's Tapi32.DLL (TapiRequestMakeCall). But I can't dial as a widestring, it only signal 1 digit. I tried with a PWideChar (cause I think it needs a Null terminated string) and I have the same issue.
Basically, I need something that would :
Pick Up the phone line and hold it,
dial line by line
release the phone line when it's done.
It sounds so simple. But right now I'm running out of ideas. I have googled for hours! Tried several thing, but can't get it done.
Any comments, suggest, question are really welcomed!!!
HELPPPP please!!!
thx
Yannick.
Basically, it's a program to make orders. There is a phone system where you have to dial all items manually. I want to use my dial-up modem to make it automatically.
In my program, You use check boxes to select items (which are related to an item number). Then I press "ORDER" and It appears like that on a TMemo.
1-555-555-5555
4 // options
*2355322# // user ID
12345678 // password
1 // new order
123456 * 1# {items * quantity and # to confirm the end of a lines}
234567 * 3#
345678 * 10#
678901 * 5# {end}
# // end of order
1,,,9 // 1 to confirm, 9 to disconnect.
THE-END
I use a string. I append each Memo.lines to it with ',,,' between (to give the time to the phone system). I figured out that a string was only 256 char max. So I'm trying with a widestring. But I can't get it to work.
First, I've been using TTapiDial Component as well as HbTapi. But it wasn't working properly.
I had to make short orders of like 5-6 items at the time, hang up and start over with some other items. That could take up to 7 times sometimes to pass through the whole order.
I gave up on that few months ago. But yesterday, I said : THAT HAS TO BE DONE . So I reconsider some codes and I tried with Window's Tapi32.DLL (TapiRequestMakeCall). But I can't dial as a widestring, it only signal 1 digit. I tried with a PWideChar (cause I think it needs a Null terminated string) and I have the same issue.
Basically, I need something that would :
Pick Up the phone line and hold it,
dial line by line
release the phone line when it's done.
It sounds so simple. But right now I'm running out of ideas. I have googled for hours! Tried several thing, but can't get it done.
Any comments, suggest, question are really welcomed!!!
HELPPPP please!!!
thx
Yannick.