Jump to content

Automation of custom control


Recommended Posts

Hi,

We are using ComponentOne (Grapecity)'s spreadsheet control in our windows application developed in VC++. I want to read or write to/from control's cell.

Control Information is as follows (collected using AutoIt v3 Windows Info)

 
>>>> Control <<<<
Class: SPR32AU80_SpreadSheet
Instance: 1
ClassnameNN: SPR32AU80_SpreadSheet1
Name:
Advanced (Class): [CLASS:SPR32AU80_SpreadSheet; INSTANCE:1]
ID:
Text:
Position: 11, 10
Size: 441, 250
ControlClick Coords: 141, 39
Style: 0x56810000
ExStyle: 0x00000000
Handle: 0x002D0768

 

I am new to AutoIt. Can anyone please help me how i can proceed?

Thank you.

Link to comment
Share on other sites

That particular control is SPR32AU80_SpreadSheet11, although you may have to use it's advanced class name [CLASS:SPR32AU80_SpreadSheet; INSTANCE:1]. You probabaly can use the ControlSetText to write to it, and ControlGetText. Refer to the Help file for more of a description of those (and more! :) ) functions.

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Link to comment
Share on other sites

Thank you somdcomputerguy and Universalist for your reply.

somdcomputerguy :

I tried using ControlSetText and ControlGetText but no luck. And using those api how can i get the data of specific cell for e.g row-2 and column-1

Universalist :

I will read the link provided by and try to implement. If i face any problem i will let you know

Thanks

Edited by tejas1
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
 Share

  • Recently Browsing   0 members

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