Client preventing MouseClick func?

01/20/2010 11:50 rhotar#1
Hi im working on a custom looter, and well testing it i encountered a problem with the AutoIt function "MouseClick" it seems the client its actively filtering/ignoring messages(Function calls) sent from an autoit application, in other words MouseClick, MouseMove, etc doesnt seem to work when the client window is active (WinActivate, WinWaitActive)


here is a pseudocode to illustrate my point:

Code:
Func FindItem()
 WinActivate("TwelveSky2","")
				  
        $ClientRect = WinGetClientSize("TwelveSky2") 
        $ClientPos = WinGetPos("TwelveSky2") 

  ;Call GetItemMetrics (width heigth,etc) to find item position in screen
     
       $Item = GetItemMetrics()
      ;tried to call WinActivate before the clicking and after, whenever the client is active the function doesnt work, testing without the client window active the function seems to at least move to the position where the item should be
        MouseClick("left",$Item[0],$Item[1])
I purposely omitted part of my code, but the above pseudocode should illustrate where the problem arise.


Has anyone faced this problem before, and how did u solve it?, there is a mechanism that should be included in order to bypass the client filtering(if any)? any input or useful information will be highly appreciated

Regards,

Rhotar

EDIT: NVM i found the issue, it turns out that my autoit app needs admin rights in order to work properly, thanx anyway.