MMM
Results 1 to 25 of 506

Thread: Evga Voltage Tuner

Threaded View

  1. #11
    Xtreme Addict
    Join Date
    May 2008
    Location
    Land of Koalas and Wombats
    Posts
    1,058
    Quote Originally Posted by Diverge View Post
    It's possible RT returns values, but it doesn't return them to the command line. If it did, i'd be able to get them using the following:

    Code:
                System.Diagnostics.Process proc = new System.Diagnostics.Process(); //create my process
                proc.EnableRaisingEvents = false;
                //String sMyPath = Environment.CurrentDirectory;
                proc.StartInfo.FileName = "devcon.exe";                                //name of file to run
                proc.StartInfo.Arguments = " ";
                proc.StartInfo.RedirectStandardOutput = true;                       //setup redirection
                proc.StartInfo.UseShellExecute = false;                             //redirect from shell to
                proc.StartInfo.CreateNoWindow = true;                               //hide shell
                proc.Start();
                String cmd_out = proc.StandardOutput.ReadToEnd();
                MessageBox.Show(cmd_out);
    Problem is I'm not an experienced programmer, so I have no clue how to do this with applications that don't display values on the command line.

    The above example is a piece of code I used to make a GUI for devcon, which is a microsoft command line utility that lets you manipulate devices in your computer - basically device manager, but via command line. Instead of displaying the info at the command line prompt, the code redirects it into a string, and then I can parse it, to read status, find device id's ect. In the above example it just displays it in a messagebox. (i made the GUI to turn off devices in my laptop to extend battery live... it's a lot easier then going to device manager to disable them).

    Unfortunately this is the way I have the GUI run rivatuner to set the voltage control registers, and it doesn't redirect anything for me to parse, cause it doesn't display the info in the dos box (command line). it displays it in it's own GUI (rivatuner).

    Like I said, I'm n00b at programming. So if you have any visual C# examples that work to return RT value, i'll be glad to try to make it work.
    Heh we all gotta learn from somewhere right. For Visual C# examples have you checked Windows Platform SDK? and MSDN Library that comes with Visual Studio 2008 (if using that)?

    I'll install Intel CPP Compiler on my Windows 7 and make up a small C app to see what Rivatuner returns and get back to you. I really should read SDK docs but don't have much time at the moment.

    Personally I've never written anything in C#, even my C++ GUI abilities are poor, but I can write in C++ so so. Mostly I can write in C since it is more where I have spent my time learning.
    Last edited by mikeyakame; 02-03-2009 at 11:22 PM.

    DFI LT-X48-T2R UT CDC24 Bios | Q9550 E0 | G.Skill DDR2-1066 PK 2x2GB |
    Geforce GTX 280 729/1566/2698 | Corsair HX1000 | Stacker 832 | Dell 3008WFP


Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •