Jump to content
Sign in to follow this  
huehuevolvofix

Scroll up script

Recommended Posts

huehuevolvofix

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
orbs

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
huehuevolvofix

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
orbs

start with this:

#include <Misc.au3>
While True
    If _IsPressed('20') Then MouseWheel('up')
WEnd 

note: this is infinite loop, quit the script by Tools > Stop Executing or by Exit from the tray menu.

* and just in case you did not notice the forum rules, this better not be for game automation, ok?

Share this post


Link to post
Share on other sites
huehuevolvofix

I did read rules its not for game automatimation its for edit program wich helps me to use some plugins :) 

Ty, il try.

Share this post


Link to post
Share on other sites
huehuevolvofix

Hmm it works  now when i click other keys, but its way way too fast.  Speed is really really fast, not even near 224-227.

Seems like its not easy :/ ?

Ty for help anyway.

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  

×