Jump to content

Recommended Posts

Posted (edited)

It works perfectly on notepad for example,

Func button3()
 
   PixelSearch ( 292, 421, 383, 490, 0x52CE29 , 0 , 0  )
ControlClick("[CLASS:Notepad]", "", "")
EndFunc

If I were to do it on for example, google chrome or basically anything that's not as simple as notepad, it can't find the correct window. What do I do?

I have to do it like this =/

Func button3()
   WinActivate("[CLASS:Chrome_WidgetWin_0]", "")
   PixelSearch ( 292, 421, 383, 490, 0x52CE29 , 0 , 0  )
  MouseClick("primary", 348, 461, 1)
EndFunc
Edited by Dgameman1
Posted

Almost all of Chrome is custom drawn so the usual stuff doesnt work.

Instead of click on the button could you use a keyboard shortcut? A list of Chrome shortcuts can be found here....

http://www.google.com/support/chrome/bin/static.py?page=guide.cs&guide=25799&topic=28650

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
×
×
  • Create New...