Jump to content
Sign in to follow this  
BadlyBoy

ControlClick dont work

Recommended Posts

BadlyBoy

Hello,

i hope i dont get punched to dead for open that topic >_<

but i search a couple of days, but no result.

My System:

WinXP Pro

AutoIt v3

( hope that is enough )

My Problem:

I want to code a Programm that send Mouse Clicks to a minimized window, or to a window in the background.

I tryed with Paint, and all works, but if i tryed with my target window ( Ragnarok Online ), nothing happend.

i tryed with something like that:

( $Full2 is the FullTitle of the window and HWnD2 the hwnd )

ControlClick($Full2,"", $HWnD2,"left",1,505,238)

like that:

ControlClick($Full2,"","[ID:" & $Full2 & "]","left",1,505,238)

but nothing work.

And the Window Info tool dont help me realy.

>>>> Window <<<<
Title:  IceRo
Class:  IceRo
Position:   188, 141
Size:   1030, 800
Style:  0x16CA0000
ExStyle:    0x00000100
Handle: 0x00140EBC

>>>> Control <<<<
Class:  
Instance:   
ClassnameNN:    
Advanced (Class):   
ID: 
Text:   
Position:   
Size:   
ControlClick Coords:    
Style:  
ExStyle:    
Handle: 0x000B0FA6

>>>> Mouse <<<<
Position:   587, 335
Cursor ID:  0
Color:  0x631806

>>>> StatusBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<

I hope you understand what i want, and sry for bad language

Share this post


Link to post
Share on other sites
JSThePatriot

Unfortunately not all controls report those types of things back. Also it could just be an image that looks like a button and behaves like a button that is being rendered not as a control, but as an image. Manipulating games is also not kindly looked on so I would have to say that I would step lightly if I were you. Also, manipulating games is also not usually that easy (depending on the game).

Regards,

Jarvis


AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Share this post


Link to post
Share on other sites
BadlyBoy

hmm, ok

but is there no way to send a mouse click to a minimized or backgrounded window ?

however, controlsend works finde, and send and mouseclick,

but the problem of the last 2 functions are, that the window must me in foreground

and this su**s.

how could i made this ? do you have an idee ?

Edit:

i tryed the UDF _MouseClickPlus, but either i made it wrong, or this dont work

_MouseClickPlus( "IceRo", "left",  356, 328, 2)

and i didnt get it run with Paint too.

Edited by BadlyBoy

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  

×