AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MouseGetPos and OutputVarControl problem

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
doggy4s



Joined: 22 Jan 2007
Posts: 16

PostPosted: Tue Mar 31, 2009 9:18 pm    Post subject: MouseGetPos and OutputVarControl problem Reply with quote

Hi All

what should be simple is creating a littel problem for me
I am trying to use the mouse wheel and buttons to send keystrokes
this sending is only allowed when mouse is hovering over certain portions of the screen else they should act standard.

The problem is when checking the OutputVarControl at times i get an error because the classNN string has wrong characters in it (ie "ATL:xyz " ).

tried a function to check the list of allowable locations (controls) when a mousebutton has to be checked but the above errors keep messing it up.

Any advice please

Thanks
Back to top
View user's profile Send private message
Guest++
Guest





PostPosted: Tue Mar 31, 2009 9:38 pm    Post subject: Re: MouseGetPos and OutputVarControl problem Reply with quote

doggy4s wrote:
The problem is when checking the OutputVarControl at times i get an error because the classNN string has wrong characters in it (ie "ATL:xyz " )

??
Post your code,it might be some simple syntax mistake.
Back to top
doggy4s



Joined: 22 Jan 2007
Posts: 16

PostPosted: Wed Apr 01, 2009 8:28 am    Post subject: Reply with quote

Think I solved it this way, at least I am not getting the error anymore.(sorry in my search and tries I forgot how it initially was programmed)
While I was figuring out a test initialy when testing %control% and the content of %control% was something like "ATL:xxx" instead of "Renderer 1" the error was telling me there was an illigal character in %control%

on another note : whats the best way to make sure that original actions of the mouse do not creep in while the software is trying to catch up with the new actions (a delay or somehow ignore the movement until its caugth up) ?

thanks

Code:
check()
   {
   MouseGetPos, , , , control
   if control in Renderer1,Renderer2
   {
   return 1
   }
   }


WheelDown::
   MouseGetPos, , , ,control
   ToolTip, %control%
;   if control
   if check()
      {
      Send {Control Down} {left}{Control Up}
      }else{
      Send {WheelDown} 
      }
   return
   
 WheelUp::
   if check()
      {
      Send {Control Down} {right}{Control Up}
      
       } else{
      Send {WheelUp} 
      }
    return
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group