Jump to content
Sign in to follow this  
huehuevolvofix

Scroll up script

Recommended Posts

Hello, im new with autoit and i need help with autoscroll.

I did try to do it, but it didnt work.

I need script wich scrolls my scroll up when i hold space.

It should scroll always once, timings 224-227 ms. (randomize)

Share this post


Link to post
Share on other sites

post your code, then we can help you see what's wrong, so you can get it right. don't be shy, "the shy one does not learn".

Share this post


Link to post
Share on other sites

Fact is i couldnt even start that code properly :(

I can do only hello world wich one is easy.

Any help is apreciated. 

Send "keys" [, flag] ?

MouseWheel "direction" [, clicks] ?

 

My friend tryed to help me, but this didnt work properly. 

It works only if i hold space, but if i click something else it stops.

Any idea ?

HotKeySet("{SPACE}", "Spacebarhold")
HotKeySet ( "{o}", "LessDelay" )
HotKeySet ( "{p}", "MoreDelay" )

$dif = 200
$begin = 0
$Delay = 230

Func Spacebarhold()
   $begin = TimerInit()
   sleep(5)

   
EndFunc


Func LessDelay()
   $Delay = $Delay - 1
   If $Delay < 180 Then
      $Delay = 180
   EndIf
   ToolTip($Delay, 0, 0)

EndFunc


Func MoreDelay()
   $Delay = $Delay + 1
   If $Delay > 350 Then
      $Delay = 350
   EndIf
  ToolTip($Delay, 0, 0)

EndFunc


While 1
   $dif = TimerDiff($begin)
   
   if $dif <100 Then
      MouseWheel ( "up" , 1 )
      Sleep($Delay+(Random(-1, 1, 1)))
      ToolTip("GO TIME!",0,0)
   Else
      ToolTip("",0,0)
      Sleep(5)
   EndIf

WEnd

Edited by huehuevolvofix

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...