Hi support,
I looked at the sample code in Macro Scheduler Help file (under GetListItem) and tested out. The code would work fine with the listbox but when I tried to modified the code with the combobox the computer locked up at me. So, I had to close Macro Scheduler via the Task Manager.
Here is the code:
//Open Display Properties
Run>rundll32 shell32.dll,Control_RunDLL Desk.cpl
WaitWIndowOpen>Display Properties
//Select Desktop Tab
Press CTRL
Press TAB
Press TAB
Release CTRL
WaitReady>0
//Get listindex of "Azul" in Background box
GetListItem>Display Properties,Combobox,0,Blank Screen,0,0,0,nDx,lvHwnd
//Select it
Press Home
Press Down * nDx
WaitReady>0
//OK!
Press Enter
My question is .... Can the GetListItem be used with a combobox control?
thanks
GetListItem won't work with combobox?
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
On my system the entry is just called "Blank" not "Blank Screen" and it is Combobox instance 1 not instance 0. Macro Scheduler doesn't hang up, but it doesn't seem to be able to "see" this combo box either.
Anyway, if all you want to do is Select "Blank Screen" just do this:
//Open Display Properties
Run>rundll32 shell32.dll,Control_RunDLL Desk.cpl
WaitWIndowOpen>Display Properties
//Select Desktop Tab
Press CTRL
Press TAB
Press TAB
Release CTRL
WaitReady>0
//Select it:
Send>Blank Screen
Anyway, if all you want to do is Select "Blank Screen" just do this:
//Open Display Properties
Run>rundll32 shell32.dll,Control_RunDLL Desk.cpl
WaitWIndowOpen>Display Properties
//Select Desktop Tab
Press CTRL
Press TAB
Press TAB
Release CTRL
WaitReady>0
//Select it:
Send>Blank Screen
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?