nerden Posted February 24, 2010 Share Posted February 24, 2010 (edited) I am trying to click a button on a controller application for a OWI-535 robotic arm. the software is here and works without being connected to the arm: www.imagescompany.com/programs/rac535.zip I have attached a Pic of the interface I am tryinig to click any button on here without fail, usually I would use the controlClick command below: controlclick("Robotic Arm Controller","","[CLASS:ThunderRT6UserControlDC; INSTANCE:19]") I have tried using MouseClick too, this works but is no good as if the resolution or location of the window changes it will break does anyone have any ideas? Thanks in advance. Edited February 24, 2010 by nerden Link to comment Share on other sites More sharing options...
PsaltyDS Posted February 24, 2010 Share Posted February 24, 2010 (edited) First make sure your identities work for the window and the control. Test with something like: $hWin = WinGetHandle("[CLASS:ThunderRT6FormDC; TITLE:Robotic Arm Controller]", "") ConsoleWrite("$hWin = " & $hWin & @LF) $hCtrl = ControlGetHandle("[CLASS:ThunderRT6FormDC; TITLE:Robotic Arm Controller]", "", "[CLASS:ThunderRT6UserControlDC; INSTANCE:19]") ConsoleWrite("$hCtrl = " & $hCtrl & @LF) Compare the resulting handles with what you see on AU3Info.exe. Edited February 24, 2010 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
bogQ Posted February 24, 2010 Share Posted February 24, 2010 (edited) this can probably work ControlSend("Robotic Arm Controller","","[CLASS:ThunderRT6UserControlDC; INSTANCE:19]","{ENTER}") Edit: Tested and its working. Edited February 24, 2010 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. 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