| View previous topic :: View next topic |
| Author |
Message |
doggy4s
Joined: 22 Jan 2007 Posts: 16
|
Posted: Tue Mar 31, 2009 9:18 pm Post subject: MouseGetPos and OutputVarControl problem |
|
|
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 |
|
 |
Guest++ Guest
|
Posted: Tue Mar 31, 2009 9:38 pm Post subject: Re: MouseGetPos and OutputVarControl problem |
|
|
| 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
|
Posted: Wed Apr 01, 2009 8:28 am Post subject: |
|
|
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 |
|
 |
|