Jump to content

Clicking button in a work (ControlClick is not working)


Recommended Posts

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 by nerden
Link to comment
Share on other sites

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 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

this can probably work

ControlSend("Robotic Arm Controller","","[CLASS:ThunderRT6UserControlDC; INSTANCE:19]","{ENTER}")


Tested and its working.

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...