| View previous topic :: View next topic |
| Author |
Message |
Scott
Joined: 02 Jul 2008 Posts: 2 Location: Maine - USA
|
Posted: Wed Jul 02, 2008 3:30 am Post subject: Trying to learn - auto dialer script |
|
|
Im trying to learn...
Thought Id write a simple script where I could:
highlight a phone number,
hit a hot key (windows/space)
have the script copy the number,
open XP phone dialer,
open new dial dialog box,
paste the phone number
and dial the phone number for me...
I got this script to copy the phone number:
#space:: ^c
I then tried to open dialer.exe and got stuck...
#space::
^c
Run dialer.exe
return
I need a hint please as to what's wrong. I can open dialer with the run dialer.exe command. However when I put the two together it only copies the number.
Thanks
Scott |
|
| Back to top |
|
 |
Gosugenji
Joined: 07 May 2008 Posts: 35 Location: In your Internets
|
Posted: Wed Jul 02, 2008 5:26 am Post subject: |
|
|
hmm.. try this..
| Code: |
#persistent
#space::
{
send, ^c
run dialer.exe
winwait , Phone Dialer
send !pi
winwait , ahk_class #32770
sendinput %clipboard%
send {enter}
}
|
|
|
| Back to top |
|
 |
Scott
Joined: 02 Jul 2008 Posts: 2 Location: Maine - USA
|
Posted: Wed Jul 02, 2008 1:05 pm Post subject: |
|
|
Thanks. I couldnt get that to work but you did get me on the right track.
| Code: |
#space::
send, ^c
run, dialer.exe
winwait, Phone Dialer
send, !pi
winwait, Phone Dialer
send, ^v
send, {enter}
return
|
This works once dialer is open. If dialer is not open it freezes up. Any thoughts?
Thanks
Scott |
|
| Back to top |
|
 |
HugoV
Joined: 27 May 2007 Posts: 499
|
|
| Back to top |
|
 |
|