DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: AHK: ClickControl with a spinner / updown buttons  (Read 6,473 times)

Ampa

  • I am cute ;)
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 592
AHK: ClickControl with a spinner / updown buttons
« on: January 07, 2008, 12:30 PM »
I found an AHK script HERE which toggles the active screen when using a Wacom tablet in a dual screen setup.

I am new to AHK but the script looks very basic, and I would like to improve and extend it to better serve my needs. In the first instance I am trying to replace the MouseClick commands with ControlClick which seems to respond quicker(?)

One of the controls that I need to 'click' is an updown toggle.

[attachimg=#]

I have tried the following...

Code
ControlClick, msctls_updown321

and...

Code
ControlSend, msctls_updown321, Up

but neither work (change the value in the edit box).

What am I doing wrong?

Thanks for any help / advice, Ampa.

Code
;Wacom Helper 
;by Ampa, from an original script by finchie. 
!^Left:: 
Run C:\WINDOWS\system32\pentablet.cpl 
blockinput mouse 
WinWait, Pen Tablet, 
IfWinNotActive, Pen Tablet, , WinActivate, Pen Tablet, 
ControlClick, Button12 
KeyWait Space, D 
WinWait, Pen Mode Details, 
ControlSend, msctls_updown321, Up 
KeyWait Space, D 
ControlClick, Button14 
IfWinNotActive, Pen Tablet, , WinActivate, Pen Tablet, 
WinClose, Pen Tablet 
blockinput off 
return

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
Re: AHK: ClickControl with a spinner / updown buttons
« Reply #1 on: January 07, 2008, 01:00 PM »
I think that controlsend is sending "up" literally (an 'u' and a 'p'). Replace it with {up}, to send the arrow up and it should solve the problem.
For more info, check here.

Ampa

  • I am cute ;)
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 592
Re: AHK: ClickControl with a spinner / updown buttons
« Reply #2 on: January 07, 2008, 04:21 PM »
Ah-ha! Yes that little tip pointed me in the right direction...

Ended up targeting the editbox rather than the spinner and sending {Up} (seems to be case sensitive).

Code
ControlSend, Edit1, {Up}

Thanks for your help.

I shall expend on my little Wacom Helper and upload to share with others when I am done.

Original address: https://www.donationcoder.com/forum/index.php?topic=11719.0