Processor Posted May 29, 2013 Share Posted May 29, 2013 Hello, I'm trying to click on a button using its class id but it don't work and i don't know why. This is the code I use: Config_Storage() Func Config_Storage() WinActivate("10.1.1.30 - vSphere Client") WinWaitActive("10.1.1.30 - vSphere Client") sleep(1000) Send("^H") Sleep(1000) ControlClick("10.1.1.30 - vSphere Client","","WindowsForms10.BUTTON.app.0.ef627a8") Sleep(1000) ControlClick("10.1.1.30 - vSphere Client","","WindowsForms10.STATIC.app.0.ef627a16") Sleep(1000) ControlClick("10.1.1.30 - vSphere Client","","WindowsForms10.STATIC.app.0.ef627a27") EndFunc the 2 first controls clicks work ok but the last one does not. I'm tryning to act on Vsphere Client 5.1.0 Interface. See join screenshots of the interface and the class id. Many thx for your future help. Proc. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 29, 2013 Moderators Share Posted May 29, 2013 Processor, In your script I see: WindowsForms10.STATIC.app.0.ef627a27 In the Info tool I see: WindowsForms10.STATIC.app.0.ef627a24 Perhaps that is the problem? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Processor Posted May 29, 2013 Author Share Posted May 29, 2013 Unfortunately for me that's not the problem, I pushed the wrong screenshot . but the class it's actually : WindowsForms10.STATIC.app.0.ef627a27 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 29, 2013 Moderators Share Posted May 29, 2013 Processor,Does the class remain the same after the other 2 buttons have been pressed? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Processor Posted May 29, 2013 Author Share Posted May 29, 2013 Yes, in fact the 2 other buttons drive me to the menu where I'm stuck Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 29, 2013 Moderators Share Posted May 29, 2013 Processor,Then does the Window title remain the same? M23P.S. What version of AutoIt are you using? That looks like a very old version of the Window Info tool. Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Processor Posted May 29, 2013 Author Share Posted May 29, 2013 Yes the windows title never change. the full windows look like this: The first click is for configuration, the second is for Storage (but you can't see in this screenshot of course) and the third is for add storage.(the one that does not work.) I'm using release 3.3.8.1 of autoit, but the windows info of AutoHotKey as I already had problem with the window info of AutoIt previously. But I tried too with window info and the result is the same. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now