Jump to content

Nvidia Inspector automation


yuna
 Share

Recommended Posts

Dear all,

I'm new in the autoit world and I would like to automate the Overclocking of graphic card. The program use is the NVIDIA Inspector 1.9.7.8 but when I try to send any type of input to the application, it doesn't do anything.


Here under is a piece of code used to try, but nothing seems to work. Do you have any idea why it's not working?

   Local $i = 0
   Local $hWnd = WinWait("[CLASS:WindowsForms10.Window.8.app.0.34f5582_r6_ad1]","",5)
   if $hWnd = 0 Then
    MsgBox($MB_SYSTEMMODAL, "Error", "Not able to get the application", 10)
    Else
      ;WinWaitActive("[CLASS:WindowsForms10.Window.8.app.0.34f5582_r6_ad1]")
      While Not WinActive($hWnd)
         WinActivate($hWnd)
         Sleep(500)
      WEnd

      ;open overcloking window
      ;ControlClick($hWnd, "", "[CLASS:WindowsForms10.BUTTON.app.0.34f5582_r6_ad1; INSTANCE:42]","Left", 1)
      ;ControlClick($hWnd, "", "[CLASS:WindowsForms10.COMBOBOX.app.0.34f5582_r6_ad1; INSTANCE:1]","Left", 1)
      MouseClick($MOUSE_CLICK_LEFT, 756, 280, 2)
      MouseClick($MOUSE_CLICK_LEFT,  280,756, 2)
      Send("{ENTER}")
      ;Send("{ENTER} up")
      ;Controlsend($hWnd, "", "","{ENTER}", 1)

 

Thanks for you help.

Link to comment
Share on other sites

  • Moderators

@yuna welcome to the forum. "doesn't work" doesn't usually help much. How about some idea of where your code is failing? For example:

  • Does the initial WinWait work, or do you get the MsgBox?
  • I see you have the two ControlClick's commented out, is the Mouse Clicking at the coordinates you show?
  • Try one MouseClick at a time rather than one right after another

In essence, the more information you can provide us with, the less guessing we have to do and the more we can help 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...