I was looking for this but could not find it yet so i tought to just fire the question here.
is it possible to change the grapics settings with an addon. and if yes what is the code.
just a hint for wat i need it.
most of the time i m running on ultra settings and everything works fine but once every 3 hours i get in a situation wich causes my fps to drop to about 3 fps.
[edit: i am usualy runnin ultra on 25fps]
when i turn my graphic settings down the problem gets solved and about 10 minutes later i can turn it back up.
now my idea was to create an addon that listens to the fps and when it gets below or above a certain treshold to change the graphic settings to either a higher or lower setting so i can just worry about the fight in stead of bugging in my options and getting myself killed.