Sign in to follow this  
Followers 0
nerden

Clicking button in a work (ControlClick is not working)

3 posts in this topic

#1 ·  Posted (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.

post-56282-12670252928505_thumb.jpg

Edited by nerden

Share this post


Link to post
Share on other sites



#2 ·  Posted (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.

:mellow:

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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

this can probably work

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

Edit:

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)



460px-Thief-4-temp-banner.jpg
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.

 

Share this post


Link to post
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
Sign in to follow this  
Followers 0