Jump to content

Scroll up script


Recommended Posts

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".

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
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
Link to comment
Share on other sites

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?

Signature - my forum contributions:

Spoiler

UDF:

LFN - support for long file names (over 260 characters)

InputImpose - impose valid characters in an input control

TimeConvert - convert UTC to/from local time and/or reformat the string representation

AMF - accept multiple files from Windows Explorer context menu

DateDuration -  literal description of the difference between given dates

Apps:

Touch - set the "modified" timestamp of a file to current time

Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes

SPDiff - Single-Pane Text Diff

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...