Click Button(auto) (1 Viewer)

giddyhead

Registered User.
Local time
Yesterday, 23:31
Joined
Jul 3, 2014
Messages
88
Code:
ExportWindow = FindWindow(vbNullString, "Output To")
OkButtonTest = FindWindowEx(ExportWindow, ByVal 0&, "DUIViewWndClassName", vbNullString)
ButtonOKTest = FindWindowEx(ExportWindow, ByVal 0&, "Button", "OK")


  mouse_event MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0
  mouse_event MOUSEEVENTF_LEFTUP, 0, 0, 0, 0

The above code works and my issue is how can I move the mouse to the OK button and click on it to. The reason why is when I SETTEXT to the address bar it does not refresh so I SETTEXT to the file name box to navigate to the prescribe address which will refresh the navigation bar once the OK button is clicked. Any help is greatly appreciated in how to refreshing the navigation bar.

Thanks,

Ja
 

Attachments

  • picture.PNG
    picture.PNG
    34.4 KB · Views: 66

JHB

Have been here a while
Local time
Today, 05:31
Joined
Jun 17, 2012
Messages
7,732
Could you explain what exactly you're trying to do, (maybe it is another method)?
 

giddyhead

Registered User.
Local time
Yesterday, 23:31
Joined
Jul 3, 2014
Messages
88
What I am trying to do is to set a default location based upon the user's choice to save a file. After thought what I want to do is to move the mouse over a button and press it.

Thanks,

Ja
 

Users who are viewing this thread

Top Bottom