232showtime Posted May 10, 2015 Share Posted May 10, 2015 (edited) How to change the path of this Basic window infoTitle: OpenClass: #32770or How to change the path of this Basic Control InfoClass: ComboBoxInstance: 1or How to set path to combo box in non autoit window Edited May 10, 2015 by 232showtime ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
jguinch Posted May 10, 2015 Share Posted May 10, 2015 Use ControlGetHandle to retrieve its handle and use it with _GUICtrlComboBox UDF functions 232showtime 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
232showtime Posted May 10, 2015 Author Share Posted May 10, 2015 hi one question, where can i get _GUICtrlComboBox.au3??? I already used google and this forum and still cant find it, could you give me a link please??? ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
jguinch Posted May 10, 2015 Share Posted May 10, 2015 Well, you can find it in the native AutoIt installation. Use #include <GuiComboBox.au3> and let's go. Look at the helpfile in the User Defined Function Reference > GUI Reference > GuiComboBox Management section Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
232showtime Posted May 10, 2015 Author Share Posted May 10, 2015 (edited) thought it was new UDF, thanks.hi again, search helpfile i found User Defined Function Reference but couldnt find GUI Reference > GuiComboBox Management,sorry got confused I found it... EDIT:I'm kinda confused and stuck here. dont know what to call this window, so I inserted a picture, this open dialog box is opened by another application(non-autoit program) Edited May 10, 2015 by 232showtime ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
l3ill Posted May 10, 2015 Share Posted May 10, 2015 (edited) this is an Open File Dialog Box and will (depending on the program) normally default back to whatever folder was used last.I couldn't find ( on the fly ) how to change this part of the settings, although it is more than likely a registry setting...But if you have a look here it will show you how to change the Links on the left side (Places Bar)Bill Edited May 10, 2015 by l3ill spelling 232showtime 1 My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
jguinch Posted May 10, 2015 Share Posted May 10, 2015 @232showtime : please, explain us what you're trying to do... It seems you want to open a PDF file with Adobe Reader : right ? In this case, maybe you can use the command line acroread.exe myFile.pdf or something like this... Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
232showtime Posted May 11, 2015 Author Share Posted May 11, 2015 (edited) @jguinch I changed the picture im using Documentation management software, and I want to change the path of open dialog box which is opened by DMS. I already tried ControlSend, ControlSetText, _GUICtrlComboBox_AddString, ControlGetHandle, didnt work at all. Edited May 11, 2015 by 232showtime ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
Shane0000 Posted May 11, 2015 Share Posted May 11, 2015 In your start menu under AutoIt v3 is a tool called AutoIt Window Info and it will give you the name of the window and info on the control you are trying to automate. To open a file I usually take the Edit Control (File Name area)and add a pathname or filename and send an enter.If you want to display a specific directory then [ControlSend] sending the edit (file name area) a string of "c:\" & @cr will set the displayed directory to c:\ 232showtime 1 Link to comment Share on other sites More sharing options...
232showtime Posted May 11, 2015 Author Share Posted May 11, 2015 (edited) this is an Open File Dialog Box and will (depending on the program) normally default back to whatever folder was used last.I couldn't find ( on the fly ) how to change this part of the settings, although it is more than likely a registry setting...But if you have a look here it will show you how to change the Links on the left side (Places Bar)Bill hii tried some script#include <MsgBoxConstants.au3> Opt("SendKeyDelay", 20) Opt("SendKeyDownDelay", 20) WinActivate("Open") $sVar = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\Placesbar", "Place4") MsgBox(0, "", $sVar) ;its working fine ;but if I change from msgbox to ControlSend or ControlClick its not working ControlSend("Open", "", "[CLASS:ToolbarWindow32; INSTANCE:2]", $sVar);not working or ControlClick("Open", "", "[CLASS:ToolbarWindow32; INSTANCE:2]", $sVar);not workingwhat am i doing wrong???tried it again same script its working but most of the time its malfunctioning, clicking on the wrong folder, or it will not work again...is this some kind of a bug?? Edited May 11, 2015 by 232showtime ill get to that... i still need to learn and understand a lot of codes Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 11, 2015 Moderators Share Posted May 11, 2015 232showtime,While not a direct solution to your problem, my ChooseFileFolder UDF is a bit more user-friendly and allows you to set the start path for the folder tree very easily. Why not take a look - the link is in my sig.M23 232showtime 1 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...
l3ill Posted May 11, 2015 Share Posted May 11, 2015 I haven't been able to find a way to send text to this control but you can send your path to the File Name control at get the same effect.It must be the full path including file to work though.Example (win7):Run("notepad") Sleep(700) $hWnd = WinGetHandle("[CLASS:Notepad]") Send("^o") Sleep(1000) ControlSend("Open", "", "[CLASS:Edit; INSTANCE:1]", "C:\Downloads\test.txt") Send("{ENTER}") 232showtime 1 My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
jguinch Posted May 11, 2015 Share Posted May 11, 2015 @232showtime : generally, you can just enter the full file name in the File name control and press OK. Use AutoIt Window Info tool to find infos for the file name control and for the Open button, then use ControlSetText and ControlClick.For example :$hOpen = WinGetHandle("Open") ControlSetText($hOpen, "", "[CLASS:Edit; INSTANCE:1]", "c:\path\of\the\file.pdf") ControlClick($hOpen, "", "[CLASS:Button; INSTANCE:2]") 232showtime 1 Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF 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