AutoHotkey Community

It is currently May 27th, 2012, 12:34 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 83 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
PostPosted: November 1st, 2011, 10:05 pm 
@drosen
When i change 49 line it doesn't work.
But i change 58 and 66.
Now when I turn the wheel slowly it doesn't scroll at all.
When fast it works.
I don't know what it should be. I will do more tests later.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 1st, 2011, 10:14 pm 
Offline

Joined: April 13th, 2010, 10:04 pm
Posts: 23
Did you download the latest script first?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 22nd, 2011, 1:40 pm 
Offline

Joined: October 29th, 2011, 10:44 am
Posts: 1
hi,

I tried last versions of the scripts, but all I get is AHK closing right away.

I'm runnning 7 64b, and AHK v1.1.05.04. Any idea?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2011, 12:54 am 
Offline

Joined: April 13th, 2010, 10:04 pm
Posts: 23
BuggyB wrote:
I'm runnning 7 64b, and AHK v1.1.05.04.

Honestly, I've never tried the script on AHK_L (I'm running Win7 32bit). If you manage to get the script working, please post your changes.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Scrol multiplier
PostPosted: January 8th, 2012, 7:40 pm 
Offline

Joined: January 29th, 2009, 9:50 pm
Posts: 483
Location: Belgium
I made my own, inspired by this thread.
The faster you scroll the faster it scrols.
Like exponentialy scroling faster.
You heve to set G_Timeout much higher for a normal mouse, liuke 500 or so, just play with it
Here you go:
Code:
#SingleInstance         Force   ; [force|ignore|off]
#MaxHotkeysPerInterval   200      ; def=70 nr of hotkeys in a interval before warning
#HotkeyInterval         1000   ; def=2000 The time(milleseconds) where  The nr of hotkeys is checked between this value
G_Timeout         :=   70      ; Scroll faster then this to have acceleration(i have a verry fast one)
G_limit            :=   10      ; max scrols + 1 per click
Return                     ; end of the autoexecute section
~$#WheelDown::exitapp
~$WheelUp::                  ; send 1 scroll thru
~$WheelDown::               ; send 1 scroll thru
   if (A_PriorHotkey = A_ThisHotkey && (G_TimeSincePriorHotkey := A_TimeSincePriorHotkey) < G_Timeout) {   ; if it's the same hotkey and in the timeframe we want
      StringTrimLeft,G_ThisHotkey,A_ThisHotkey,2                                             ; remove ~$ from the string of the hotkey
      ; Tooltip,% (G_Timeout - G_TimeSincePriorHotkey)*G_limit//G_Timeout               ; scrole some clicks
      MouseClick,%G_ThisHotkey%,,,(G_Timeout - G_TimeSincePriorHotkey)*G_limit//G_Timeout               ; scrole some clicks
   }
   Return
/* example calculation
G_Timeout            :=400         ; milliseconds
G_TimeSincePriorHotkey   := 240         ; milliseconds
G_limit               := 30         ; max clicks per scrol
; we know vvv
400 millisec = 00 clicks             ; we go verry slow
000 millisec = 30 clicks             ; extreme fast
; we have to reverse the value of G_TimeSincePriorHotkey so the higher the value the more clicks
400 millisec = 30 clicks            ; (400-0) we go verry fast
000 millisec = 00 clicks            ; (400-400) we go verry slow
(G_Timeout - G_TimeSincePriorHotkey)   ; (400-240)=160 Reversed value of G_TimeSincePriorHotkey
; now the real thing
(G_Timeout - G_TimeSincePriorHotkey)*G_limit/G_Timeout
(400-240)*30/400=12 clicks ; the real calculation
Or    160*30/400
(400-240)/400*30=12 clicks ; the alternative calculations
30/400*(400-240)=12 clicks ; the alternative calculations
*/

_________________
Stopwatch emdkplayer
the code i post falls under the: WTFYW-WTFPL license


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Scrol multiplier
PostPosted: January 8th, 2012, 7:48 pm 
Quote:
the code i post falls under the:
WTFYW license
, wich meens its free to use


Hey emmanuel d, what kind of license is that?
WTFYW = What the fu** you wanker?


Report this post
Top
  
Reply with quote  
 Post subject: Re: Scrol multiplier
PostPosted: January 9th, 2012, 7:13 am 
Offline

Joined: November 16th, 2009, 9:24 am
Posts: 114
Anonymous wrote:
Quote:
the code i post falls under the:
WTFYW license
, wich meens its free to use


Hey emmanuel d, what kind of license is that?
WTFYW = What the fu** you wanker?


ROFL! Brilliant. I want one of these.

Actually, he might have meant the WTFPL license - "Do What The F*** You Want To Public License". http://sam.zoy.org/wtfpl/


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Scrol multiplier
PostPosted: January 11th, 2012, 8:14 am 
Offline

Joined: July 5th, 2009, 7:27 pm
Posts: 188
emmanuel d wrote:
I made my own, inspired by this thread.
The faster you scroll the faster it scrols.
Like exponentialy scroling faster.
You heve to set G_Timeout much higher for a normal mouse, liuke 500 or so, just play with it.


Thanks for your code, it's clear and straightforward.
I'm testing it from yesterday and it's performing well; I set G_Timeout := 40 and G_Limit := 25 by the way.

Cheers and keep up this interesting thread! ^__^


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 83 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon, maul.esel and 8 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group