Jump to content

Just need a Very Very simple ControlClick Script


Recommended Posts

Im a bit of a new user, regardless im having trouble with the ControlClick function, all I need it to do is simply push 2 different coordinates indefinitely, also need it to work minimized and leave the function of my actual mouse still intact. What I have so far is this. IT does not work at all i dont know why.

While 1=1

ControlClick("Yahoo! - Mozilla Firefox", "", "left", 1, 1187, 449)

Sleep (2000)

ControlClick("Yahoo! - Mozilla Firefox", "", "left", 1, 1187, 465)

Sleep (2000)

WEnd

Thats really all i need. I dont need any fancy variables thats it. Yahoo was just an example, I want to encorporate this into multiple things but it must be able to be used with the window minimized, or at least not active.

Window Info:

>>>> Window <<<<

Title: Yahoo! - Mozilla Firefox

Class: MozillaWindowClass

Position: -8, -8

Size: 1936, 1056

Style: 0x17CF0000

ExStyle: 0x00000100

Handle: 0x0000000000740728

>>>> Control <<<<

Class:

Instance:

ClassnameNN:

Name:

Advanced (Class):

ID:

Text:

Position:

Size:

ControlClick Coords:

Style:

ExStyle:

Handle:

>>>> Mouse <<<<

Position: 1181, 467

Cursor ID: 0

Color: 0x000000

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

>>>> Hidden Text <<<<

Link to comment
Share on other sites

Ok figured it out i changed to internet explorer and got some stuff off the forums here and it works

While 1=1

ControlClick("Yahoo!- Windows Internet Explorer", "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "left", 1, 1120, 330)

Sleep (1500)

ControlClick("Yahoo! - Windows Internet Explorer", "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "left", 1, 1120, 320)

Sleep (1500)

ControlClick("Yahoo! - Windows Internet Explorer", "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "left", 1, 1120, 310)

Sleep (1500)

ControlClick("Yahoo! - Windows Internet Explorer", "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "left", 1, 1120, 300)

Sleep (1500)

WEnd

Hope this can help some people as its taken me hours to get it to work. Hopefully it saves someone some time.

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

×
×
  • Create New...