sagirajuramaraju Posted June 1, 2009 Posted June 1, 2009 Hi, I have a combobox with classname "TOraLookupCombobox1", function ControlCommand is not working if I mention the classname at the palce of ControlID. But the remaining functions "ControlClick, ControlSend, ControlGetText, ControlGetHandle" are working well with the same class name. Why the controlCommand is not working can any one help me in this issue. -Ramaraju
nguyenbason Posted June 1, 2009 Posted June 1, 2009 Some controls will resist automation unless they are the active window. Use the WinActive() function to force the control's window to the top before using ControlCommand() on these controls.Certain commands that work on normal Combo and ListBoxes do not work on "ComboLBox" controls. UnderWorldVN- Just play the way you like it
bo8ster Posted June 1, 2009 Posted June 1, 2009 The classNN should be the first param not the third. The first three params of ControlCommand should be the same as ControlGetHandle (if its the same control) Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]
sagirajuramaraju Posted June 1, 2009 Author Posted June 1, 2009 I tried with WinActive(), after using also it is not working is there any other way thanks in advance.
Yashied Posted June 1, 2009 Posted June 1, 2009 Please post your code. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
sagirajuramaraju Posted June 1, 2009 Author Posted June 1, 2009 (edited) Please post your code.For ControlClick = ControlGetText("Import Options","","TOraLookupCombobox1") - WorkingFor ControlCommand = ControlCommand("Import Options","","TOraLookupCombobox1","SelectString",'ICN_IPD_MAP') - not working Edited June 1, 2009 by sagirajuramaraju
Yashied Posted June 1, 2009 Posted June 1, 2009 For ControlClick = ControlGetText("Import Options","","TOraLookupCombobox1") - WorkingFor ControlCommand = ControlCommand("Import Options","","TOraLookupCombobox1","SelectString",'ICN_IPD_MAP') - not workingICN_IPD_MAP - what this? My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
Zedna Posted June 1, 2009 Posted June 1, 2009 ControlCommand() works only with standard Windows controls.So if it's non-standard control then you must use ControlSend/ControlClick/ControlSetText Resources UDF ResourcesEx UDF AutoIt Forum Search
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