Jump to content

Recommended Posts

Posted

It seems all the articles that I've read here are flagging for gaming issue violations but I am not doing this for any game whatsoever...this is for work.  The following command works fine:

MouseClick("left",1679,141,1)

 

However, the following CommandClick commands don't perform any mouse movement or button clicking:

ControlClick($id, "", "", "left",1,967,169) ;$id is from WinGetHandle()

ControlClick($id, "", "", "left",1,1679,141) ;$id is from WinGetHandle()

ControlClick("Lightspeed 2024.03.072123 - Company Name - bpgraves@email.com", "", "", "left",1,967,169)

ControlClick("Lightspeed 2024.03.072123 - Company Name - bpgraves@email.com", "", "", "left",1,1679,141)

ControlClick($id, "", "[CLASS:Button; INSTANCE:1]", "left",1,1679,141) ;$id is from WinGetHandle()

ControlClick("Lightspeed 2024.03.072123 - Company Name - bpgraves@email.com", "", "[CLASS:Button; INSTANCE:1]", "left",1,1679,141)

Yes, I realize that I'm passing blank for the controlID parameter for some of these but the AutoIt Finder tool doesn't show anything under the Control tab for Lightspeed:

image.png.f5fb7215b8ae613c8d649a892927023c.png

Question: is there a default controlID parameter that I can pass so ControlClick will use the entire window screen like MouseClick does instead a control (that I don't have)?

Please don't reply telling me to just use MouseClick() because I can't: this needs to run for a scheduled task that doesn't have an Active window.

I've tried _MouseClickPlus and this doesn't do anything with the mouse so I'm not sure if there's something else I can try.

Posted
1 hour ago, Nine said:

You may try to use UIAutomation

I tried using the UIASpy but it just puts a red box around the entire pane and I can't find any Control IDs in the tool to use in order to select a license or click a button.  

image.thumb.png.c7e7ff2ee8d2f400bc62332a7af44723.png

Posted

Just notice it is a SunAwtFrame,  if UIAutomation can't see inside the frame, then I suggest you take a look at JAB (Java Access Bridge).  That's where I hope someone else can further help you, as this is something I never study.

Posted
22 minutes ago, Nine said:

Just notice it is a SunAwtFrame,  if UIAutomation can't see inside the frame, then I suggest you take a look at JAB (Java Access Bridge).  That's where I hope someone else can further help you, as this is something I never study.

Is that an AutoIt utility?   Or a different AutoIt Forum?  Or are you saying that AutoIt doesn't (or can't) work with SunAwtFrame?

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