Grezvangbe Posted June 22, 2012 Share Posted June 22, 2012 Having problems using the ControlMove command. (i just started using AutoIt yesterday)I want to know if there is any way to make AutoIt skip looking for the control id?ControlMove ("title", "text", controlID, x, y, .......) Link to comment Share on other sites More sharing options...
Grezvangbe Posted June 22, 2012 Author Share Posted June 22, 2012 the reason i want to skip the controlID, is because i don't see it in the control tab of the AutoIt window info Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 22, 2012 Moderators Share Posted June 22, 2012 Grezvangbe,Welcome to the AutoIt forum. On the Help file page for ControlMove you can see there is link within the controlID explanation - if you follow it you will find a page that shows you all of the ways to define a control. One of those should help you. 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...
water Posted June 22, 2012 Share Posted June 22, 2012 No. As you can see from the docu the ControlID is a mandatory parameter. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Athos Posted June 22, 2012 Share Posted June 22, 2012 As far as I know the control ID field is required. You can use the window info tool to get it. Link to comment Share on other sites More sharing options...
Grezvangbe Posted June 22, 2012 Author Share Posted June 22, 2012 I actually just found a way to skip it... I think. ControlMove ("title", "text", "?" , x, y, width, height) I didn't get an error at least. Link to comment Share on other sites More sharing options...
Mechaflash Posted June 22, 2012 Share Posted June 22, 2012 It's like telling someone to move an object without telling them what to move... Boss: Hey you... go move that thing over there. You: What thing? Boss: That thing. You: Can you at least point to it? Boss: No... just move it. You: Move what? You're not telling me what you want moved. Boss: You're fired. BrewManNH 1 Spoiler “Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.” Link to comment Share on other sites More sharing options...
Grezvangbe Posted June 22, 2012 Author Share Posted June 22, 2012 It's like telling someone to move an object without telling them what to move... Boss: Hey you... go move that thing over there. You: What thing? Boss: That thing. You: Can you at least point to it? Boss: No... just move it. You: Move what? You're not telling me what you want moved. Boss: You're fired. True... here is what AutoIt window info (control tab) is telling me this: Class ComboBox Instance 1 Classname NN Combobox1 Name Advanced Mode [CLASS:ComboBox; INSTANCE:1] ID Text Position 245, 36 size 250, 21 ControlCick Coords 170, 8 style 0x56010203 ExStyle 0x00000000 Handle 0x0011053E Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 22, 2012 Moderators Share Posted June 22, 2012 Grezvangbe, Why not read the responses you have been given above - what you have is quite enough to identify the control. 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...
BrewManNH Posted June 22, 2012 Share Posted June 22, 2012 You have the handle, and also the control's class and instance number, use one of those for the ControlID parameter for ControlMove. See the help file and click on the link to the types of controls you can reference for controlid. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
Grezvangbe Posted June 22, 2012 Author Share Posted June 22, 2012 oh wow. I am so derp. It turns out i was looking for a command more like WinMove no wonder i had no idea what ControlID was for. Link to comment Share on other sites More sharing options...
Grezvangbe Posted June 22, 2012 Author Share Posted June 22, 2012 sorry about that Link to comment Share on other sites More sharing options...
Bert Posted June 22, 2012 Share Posted June 22, 2012 no problem. You're getting the hang of it though. If you want to learn more there are tons of examples in the help file, youtube videos, the wiki and more. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Ziggs Posted June 23, 2012 Share Posted June 23, 2012 could you possibly link those youtube vids? thanks if you do Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 23, 2012 Share Posted June 23, 2012 could you possibly link those youtube vids? thanks if you do It's in the list.Tutorials .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
somdcomputerguy Posted June 23, 2012 Share Posted June 23, 2012 could you possibly link those youtube vids? thanks if you do autoit - YouTube - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. 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