Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

How to move window's slider with keyboard shortcut


  • Please log in to reply
2 replies to this topic
step2
  • Members
  • 25 posts
  • Last active: Oct 26 2015 05:42 AM
  • Joined: 17 Jun 2014

Hi,

AutoHotkey v1.1.22.02 on Windows 7. I use Command Prompt a lot. I am very used to work almost all of the actions with keyboard. But time to time I have to move Command Prompt window slider to see what is the text right of the edge of screen. In this case alone I have to use mouse point it to the bottom of window and move slider to the right. Is there a way to create keyboard shortcut to move slider right and then back left? Something like every keyboard action to move slider partially to the right.

Thanks



GEV
  • Members
  • 1364 posts
  • Last active:
  • Joined: 23 Oct 2013

Try

#If WinActive("ahk_exe cmd.exe")

; move slider to the right end

F1::
WinGetPos,,, Width, Height, A
w := Width-50
h := Height-15
Loop, 3 ; or more
ControlClick, x%w% y%h%, A
return

; move slider back left

F2::
WinGetPos,,,, Height, A
h := Height-15
Loop, 3 ; or more
ControlClick, x10 y%h%, A
return

#If


step2
  • Members
  • 25 posts
  • Last active: Oct 26 2015 05:42 AM
  • Joined: 17 Jun 2014

Hi,

I pressed F1 key and has no effect, nothing happens. Also pressing F2 has no effect.

 

My cmd window has the following setting:

Screen Buffer Size

Width: 300

Height: 300

 

Window Size

Width: 62

Height: 49

 

Window Position

Left: 131 (settting grayed out)

Top: 60 (setting grayed out)

"Let system positino window" is checked.

 

Is your code working in your case? Do I have some specifics in my case that your code has no effect in my system? Any additional suggestion?

Thanks