I'm trying to get MS to check or uncheck the line in box on the Volume Control window (Win98). I'm trying to follow the help instuctions closely, but no luck.
Is it the window names I've entered?
Thanks
From "System Windows"
1952 - Static "Volume Control"
2096 - Static "Line-In"
3840 - Static "Balance:"
2900 - Static "Volume:"
3916 - Button "&Select"
3852 - Button "&Advanced"
Windowspy does not seem to have much info on this window.
ExecuteFile>C:\WINDOWS\SNDVOL32.EXE
GetCheckBox>Volume Control,Line-In,&Select,res
If>res=1,checked,unchecked
Label>checked
SetCheckBox>Volume Control,Line-In,&Select,FALSE
Goto>end
Label>unchecked
SetCheckBox>Volume Control,Line-In,&Select,TRUE
Label>end
Wait>2
CloseWindow>Volume Control
More window pain
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7380
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Hi,
Two problems with your script:
1. Nothing to wait until sndvol32.exe is ready before proceeding. After the ExecuteFile do WaitWindowOpen>Volume Control
2. Your GetCheckBox and SetCheckBox have 4 parameters, but these commands only take 3 - window title, checkbox caption and result/setting.
Two problems with your script:
1. Nothing to wait until sndvol32.exe is ready before proceeding. After the ExecuteFile do WaitWindowOpen>Volume Control
2. Your GetCheckBox and SetCheckBox have 4 parameters, but these commands only take 3 - window title, checkbox caption and result/setting.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
checked box-no action
Thanks for your quick responses guys. I now can get this scp to check the box quite nicely, but it seems like it only "looks" checked and when I step thru it, if I double click on the already selected box, it then becomes really selected...and I hear sound.
Also, after the macro runs and closes the window, the check box is not checked when I open the window up again with the mouse.
Any ideas?
Thanks,
Pat
ExecuteFile>C:\WINDOWS\SNDVOL32.EXE
WaitWindowOpen>Volume Control
GetCheckBox>Volume Control,Line-In,res
If>res=1,checked,unchecked
Wait>5
Label>checked
SetCheckBox>Volume Control,&Select,FALSE
Wait>5
Goto>end
Label>unchecked
SetCheckBox>Volume Control,&Select,TRUE
Wait>5
Label>end
Wait>5
CloseWindow>Volume Control
Also, after the macro runs and closes the window, the check box is not checked when I open the window up again with the mouse.
Any ideas?
Thanks,
Pat
ExecuteFile>C:\WINDOWS\SNDVOL32.EXE
WaitWindowOpen>Volume Control
GetCheckBox>Volume Control,Line-In,res
If>res=1,checked,unchecked
Wait>5
Label>checked
SetCheckBox>Volume Control,&Select,FALSE
Wait>5
Goto>end
Label>unchecked
SetCheckBox>Volume Control,&Select,TRUE
Wait>5
Label>end
Wait>5
CloseWindow>Volume Control