Recommended Posts

bob.frew 0

bob.frew 0

I am trying to write a script that toggles between two desktop colour schemes (under Windows Classic style). I prefer working with yellow on black, but have to change when I encounter the old black text on black backround problem.

I have the script working fine to the point where I need to read the current value in the selected combobox2 on the Appearance Tab of Display Properties. I used the Autoit Info tool to establish controlID etc.

Share this post

Link to post

Share on other sites

seandisanti 3

seandisanti 3

I am trying to write a script that toggles between two desktop colour schemes (under Windows Classic style). I prefer working with yellow on black, but have to change when I encounter the old black text on black backround problem.

I have the script working fine to the point where I need to read the current value in the selected combobox2 on the Appearance Tab of Display Properties. I used the Autoit Info tool to establish controlID etc.

I have been trying to use the following

since you're working with known values, ie: the value that is currently set, and the value you want it to be set to. Can't you just use:

ControlSetText ( "title", "text", controlID, "new text" ) with the literal value that you want it to have?