bhamiltony2k
11-13-2000, 12:49 PM
Hi. I am attemping to make a program that at 7:30 in the morning, It calls my moms pager and enters in my phone number. I already have Windows Phone Dialer set up to call my moms pager and put in the phone number, but, I don't know how to switch windows to use SendKeys to enter in the command. I already tryed SendKeys "%{TAB}". But I can't get it to work. I think I can use GetNextWindow and the SetActiveWindow to switch the window and then sendkeys to shut it down. Could anyone give me some info on how in the hell you use GetNextWindow???
THANX
B
Jared
11-16-2000, 12:43 AM
There would be a better way of doing this if you would want too. You could use the MSComm control to dial the numbers straight from your VB program.
Email me if you have any questions and I can help...
Jared Hoylman
Please visit VB Overdrive at <A HREF="http://www.extreme-vb.net/vboverdrive/" target="_new">http://www.extreme-vb.net/vboverdrive/</A>
bhamiltony2k
11-16-2000, 02:05 PM
Wow! ThanX for the advidce. one problem though. How do you use the control to Dial the number???
THANX
B
BillSoo
11-17-2000, 09:36 PM
You use the mscomm control to communicate with the modem and tell it to dial the number. You should probably read your modem manual for a list of all the commands possible. For simple dialing, you can do something like:
mscomm1.output = "atdt555-1234" & vbcrlf
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder