Register    Login    Forum    Search    FAQ Awesomenauts



Post new topic Reply to topic Go to page Previous  1, 2, 3  Next

Author Message
 Post subject: Re: Mouse whiel
 Post Posted: Sun Jul 10, 2011 4:22 pm 
Offline

Joined: Sun Jul 10, 2011 4:14 pm
Posts: 3
nike9307 wrote:
Anyone knows a way to emulate a mouse as a keyboard or as a gamepad so i can use this thing?

You can try GlovePIE. It has quite impressive capabilities.


Top 
 Profile  
 
 Post subject: Re: Mouse whiel
 Post Posted: Sun Jul 10, 2011 4:46 pm 
Offline

Joined: Sun Jun 26, 2011 9:16 pm
Posts: 93
I tried AutoHotkey and when i tried to turn nothing happened :(
And GlovePIE doesn't work because there is no scroll functions in it.


Top 
 Profile  
 
 Post subject: Re: Mouse whiel
 Post Posted: Sun Jul 10, 2011 5:05 pm 
Offline
User avatar

Joined: Tue Jun 28, 2011 4:53 am
Posts: 37
I did some stuff lately with autohotkey
Maybe you can post your code here so we can help
I don't have a wheel (or a mouse either :p) to test, but did you see this ?


Top 
 Profile  
 
 Post subject: Re: Mouse whiel
 Post Posted: Sun Jul 10, 2011 5:07 pm 
Offline

Joined: Sun Jun 26, 2011 9:16 pm
Posts: 93
The code is

loop
{
MButton::Space
LButton::w
RButton::s
k::LButton
l::RButton
WheelDown::d
WheelUp::a
}

If you (or anyone) can help me that will be grate :)
Note :When using this script you'r left mouse key will be on "k" on the keyboard and the right key on "L" and to turn of the script you need to go down next ot the clock an find the big greed H leather move you mouse on it click "L" and then click on exit with the LEFT MOUSE BUTTON


Top 
 Profile  
 
 Post subject: Re: Mouse whiel
 Post Posted: Sun Jul 10, 2011 5:36 pm 
Offline

Joined: Sun Jul 10, 2011 4:14 pm
Posts: 3
nike9307 wrote:
And GlovePIE doesn't work because there is no scroll functions in it.

Are you sure?
http://glovepie.org/w/index.php?title=Script_Language
http://glovepie.org/w/index.php?title=Preliminary_Documentation_v0.43#The_Scroll_Wheel


Top 
 Profile  
 
 Post subject: Re: Mouse whiel
 Post Posted: Sun Jul 10, 2011 5:37 pm 
Offline
User avatar

Joined: Tue Jun 28, 2011 4:53 am
Posts: 37
Quote:
to turn of the script you need to go

To make it more simple, you can activate the hotkeys only when Proun window is active
http://www.autohotkey.com/docs/commands ... Active.htm

Also you don't need the loop, because it's kind of persistant commands

I tried you code and it seems to work fine, except the WheelThings I can't test...
Did you try something like:
WheelUp::send {Left}


Top 
 Profile  
 
 Post subject: Re: Mouse whiel
 Post Posted: Sun Jul 10, 2011 5:43 pm 
Offline

Joined: Sun Jun 26, 2011 9:16 pm
Posts: 93
I tried without the loop and it bugs and i tested the WheelUp::send {Left} and it doesn't work .And the IfWinActive thing i will make if i see a way to make this work.

About the GlovePIE sry my bad dident see it :) BTW T_F can you make a program for GlovePIE because i dident find a dissent tutorial for it


Last edited by nike9307 on Sun Jul 10, 2011 6:01 pm, edited 1 time in total.

Top 
 Profile  
 
 Post subject: Re: Mouse whiel
 Post Posted: Sun Jul 10, 2011 5:59 pm 
Offline
User avatar

Joined: Tue Jun 28, 2011 4:53 am
Posts: 37
Strange, for me it works also without loop
But maybe GlovePIE is better for that use indeed
I think it's hard to get the exact wheel rotation value in autohotkey, if you want "proressive" control


Last edited by Lemo on Sun Jul 10, 2011 6:03 pm, edited 1 time in total.

Top 
 Profile  
 
 Post subject: Re: Mouse whiel
 Post Posted: Sun Jul 10, 2011 6:02 pm 
Offline

Joined: Sun Jun 26, 2011 9:16 pm
Posts: 93
No using GlovePIE will be too complicated for me. Its sad that i will not use this thing.


Top 
 Profile  
 
 Post subject: Re: Mouse whiel
 Post Posted: Sun Jul 10, 2011 7:56 pm 
Offline

Joined: Sun Jul 10, 2011 4:14 pm
Posts: 3
Don't give up so easily!

I didn't use GlovePIE for a long time, but I made something.
(I'm not entirely sure what result you want to obtain)

Version 1 (every scroll "tick" is as one keystroke):
Code:
Key.Space = Mouse.MiddleButton;
Key.W = Mouse.LeftButton;
Key.S = Mouse.RightButton;
Key.D = Mouse.WheelUp;
Key.A = Mouse.WheelDown;

Varsion 2 (scroll has "3 positions" - left, middle, right):
Code:
Key.Space = Mouse.MiddleButton;
Key.W = Mouse.LeftButton;
Key.S = Mouse.RightButton;

if (Mouse.WheelUp) var.steer = Math.min(var.steer+1, 1);
if (Mouse.WheelDown) var.steer = Math.max(var.steer-1, -1);
Key.D = (var.steer == 1);
Key.A = (var.steer == -1);


You can give them a try.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic Go to page Previous  1, 2, 3  Next