Jump to content

Excel Grid does not resize as it should the 1st time.


ptrex
 Share

Recommended Posts

@jpm

Your right never say last B)

Post #156 includes the solution for the 100% CPU.

For the LEFT MOUSE CLICK in the first CELL.

If I know how to sent a RIGHT MOUSE click than I can try to figure out how to do it.

Can you show how to sent a right mouse click, in a certain windows position, in AutoIT

Thanks

Edited by ptrex
Link to comment
Share on other sites

Link to comment
Share on other sites

Link to comment
Share on other sites

@kjactive

Indead your solution is cleaner.

This clicks in the first cell.

GUISetState(@SW_SHOW, $Main)
$tmp = WinGetPos($GUIText)
    MouseClick("left", $tmp[0] + 275, $tmp[1] + 30,1,1); Clicks on the Object GUICtrlCreateObj($ExcelLV,265,1,730,415)

I have put it after teh GUISetSate command does it matter ?

Or should I put the GUISetState() afterwards as well ?

Link to comment
Share on other sites

No - just before GuiSetState makes no differense...

Hell - there is lots of functions to this activex component but I was looking for a function to make another cell active / change focus directly in the component but to much to look up and you did not stated your component PROGID or CLSID so I leave it here...

good luck

kjactive B)

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