Merchants Posted December 23, 2011 Share Posted December 23, 2011 (edited) i have a simpel program with a slider how to move a that slider in a autoit script from 0-100% ? i have try to use ControlCommand but i can't find it.. Edited December 23, 2011 by Merchants Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 23, 2011 Moderators Share Posted December 23, 2011 Merchants,Can you identify the slider within the app using the Window Info tool? If so you might be able to use the GUICtrlSlider* functions to automate it. Post the Window Info results here if you have problems. 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...
Merchants Posted December 23, 2011 Author Share Posted December 23, 2011 >>>> Window <<<< Title: Pinnacle Studio Ultimate Collection Setup Options Class: #32770 Position: 792, 120 Size: 557, 581 Style: 0x94C820C4 ExStyle: 0x00010101 Handle: 0x00000000002606BC >>>> Control <<<< Class: Button Instance: 3 ClassnameNN: Button3 Name: Advanced (Class): [CLASS:Button; INSTANCE:3] ID: 1135 Text: Video settings Position: 19, 122 Size: 248, 304 ControlClick Coords: 112, 268 Style: 0x50000007 ExStyle: 0x00000004 Handle: 0x000000000014078A >>>> Mouse <<<< Position: 131, 390 Cursor ID: 2 Color: 0xD6D6D7 >>>> StatusBar <<<< >>>> ToolsBar <<<< Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 23, 2011 Moderators Share Posted December 23, 2011 Merchants,Try this:; At the top of your script #include <GuiSlider.au3> $hSlider = ControlGetHandle ( "Pinnacle Studio Ultimate Collection Setup Options", "", [CLASS:Button; INSTANCE:3]) ; Then we try to action the slider _GUICtrlSlider_SetPos($hSlider, Random(0, 100, 1))Put the final command in a loop and see if it changes the position of the slider dynamically - you will need a Sleep in the loop to allow the control to react. 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...
Merchants Posted December 23, 2011 Author Share Posted December 23, 2011 (edited) correct script ; At the top of your script #include <GuiSlider.au3> $hSlider = ControlGetHandle ( "Pinnacle Studio Ultimate Collection Setup Options", "", "[CLASS:Button; INSTANCE:3]") ; Then we try to action the slider _GUICtrlSlider_SetPos($hSlider, Random(0, 100, 1)) thx fixed Edited December 23, 2011 by Merchants Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 23, 2011 Moderators Share Posted December 23, 2011 Merchants, Delighted I could help. 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...
Merchants Posted December 23, 2011 Author Share Posted December 23, 2011 dam got a problem i can't identify the slider, there is a item in front of it how can i see ALL the id's in the gui?? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 24, 2011 Moderators Share Posted December 24, 2011 Merchants, Try using this to list the controls in the GUI. 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...
Merchants Posted December 25, 2011 Author Share Posted December 25, 2011 (edited) wel it works to find the slider but it is in a custom program so i can't move it, i wil have to use ControlClick... but thx any way M23 Jeroen Edited December 25, 2011 by Merchants Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted December 25, 2011 Moderators Share Posted December 25, 2011 Merchants, A pity. But have a good Christmas anyway. 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...
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