Sign in to follow this  
Followers 0
jebus495

Control Click...

6 posts in this topic

#1 ·  Posted (edited)

$GUIActiveX = GUICtrlCreateObj($oIE, 10, 100, 660, 515)
$oIE.navigate("website...")
ControlClick("LaZy Slasher by Jebus", "", idk what to do here... , "left", 2, 332, 228)

I have read over the help file for ControlClick like 5 times now and can't figure out what to do to make the thing click on that spot...

Edited by jebus495

Share this post


Link to post
Share on other sites



Leave the text section blank. Unless Auto IT window info tool really states that the control has text then dont worry about it. Now, the "title" need to be the title of the window that your clicking into. So whatever the window info tools tells you is the title I would use that. Biggest problem your having is not specifying which control to click. That section is blank and we need to fix this:

$oIE.navigate("website...")
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 100, 660, 515) 
ControlClick("LaZy Slasher by Jebus","","Handle to control goes here", "left", 2, 332, 228)

Use the window info tool and grab the info that says something like this "[CLASS:MozillaWindowClass; INSTANCE:5]" put that where your handle goes and u should be good to go. Post back

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Leave the text section blank. Unless Auto IT window info tool really states that the control has text then dont worry about it. Now, the "title" need to be the title of the window that your clicking into. So whatever the window info tools tells you is the title I would use that. Biggest problem your having is not specifying which control to click. That section is blank and we need to fix this:

$oIE.navigate("website...")
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 100, 660, 515) 
ControlClick("LaZy Slasher by Jebus","","Handle to control goes here", "left", 2, 332, 228)

Use the window info tool and grab the info that says something like this "[CLASS:MozillaWindowClass; INSTANCE:5]" put that where your handle goes and u should be good to go. Post back

Forgot to include the picture in the first post heh.

Posted Image

I tried that and it doesn't click at all... =\

EDIT: LOL I forgot the "" in "[CLAS... ANCE:1]" LOL

Edited by jebus495

Share this post


Link to post
Share on other sites

Another thing too is that as soon as your song changes its going to get a new window title and the controlclick will no longer work, or will the window title stay the same always?

Anyway if it changes you want to get the handle to your gui at the very beginning and then you wont have to reference the window title any more so something like this:

$handle = controlgethandle("LaZy Slasher by Jebus","","CLASS CRAP HERE")
controlclick("","",$handle,"left",1,x,y)

Share this post


Link to post
Share on other sites

also ControlClick and also MouseClick function or how Click is not so,

Level functions such

If there help me write a code

Share this post


Link to post
Share on other sites

Another thing too is that as soon as your song changes its going to get a new window title and the controlclick will no longer work, or will the window title stay the same always?

Anyway if it changes you want to get the handle to your gui at the very beginning and then you wont have to reference the window title any more so something like this:

$handle = controlgethandle("LaZy Slasher by Jebus","","CLASS CRAP HERE")
controlclick("","",$handle,"left",1,x,y)

This is a far better way of handling Control functions. You validate the handle once then know it is good. A good way is to use ConsoleWrite($handle) then compare that to the handle the info tool gets.

Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]

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