Jump to content

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

ctrl+ // ctrl+



  • Please log in to reply
6 replies to this topic
rosto
  • Members
  • 130 posts
  • Last active: Jan 06 2016 01:50 PM
  • Joined: 14 Feb 2006
Hi,

I have a simple question but can't find the answer.

I want to send 2 keystrokes
ctrl+ (control button and the character "+")
ctrl- (control button and the character "-")

However the "+" is interpreted as SHIFT
even the "-" doesn't work in my script.

Can anybody help me?

HotKeyIt
  • Moderators
  • 7439 posts
  • Last active: Jun 22 2016 09:14 PM
  • Joined: 18 Jun 2008
✓  Best Answer
Ctrl & +::MsgBox


engunneer
  • Moderators
  • 9162 posts
  • Last active: Sep 12 2014 10:36 PM
  • Joined: 30 Aug 2005
or for sending,

Send, ^{+}

{} can be used to describe any special keys and symbols

Alternate:
Send, {Ctrl Down}{+}{Ctrl Up}


rosto
  • Members
  • 130 posts
  • Last active: Jan 06 2016 01:50 PM
  • Joined: 14 Feb 2006
In my email client Postbox
ctrl+ can be used to zoom in
and
ctrl- to zoom out

I created this little script but it still doesn't work:

#ifWinactive "Postbox"
Control & WheelUp::Send ^{+}
Control & WheelDown::Send ^{-}

Is the "+" and "-" key still wrong?

engunneer
  • Moderators
  • 9162 posts
  • Last active: Sep 12 2014 10:36 PM
  • Joined: 30 Aug 2005
does your program have "Postbox" as the title, or Postbox?

Do not put "" around the title of windows.

Also, see SetTitleMatchMode

SetTitleMatchMode 2
#ifWinactive "Postbox" 
^WheelUp::Send ^{+} 
^WheelDown::Send ^{-}


rosto
  • Members
  • 130 posts
  • Last active: Jan 06 2016 01:50 PM
  • Joined: 14 Feb 2006
Thank you
I had to remove the "" aroun the title.

and the second thing
I had to create a new .ahk file.
I added it first to a .ahk file with many scripts.

Is it not possible to add this file to another .ahk file?
I have now 2 ahk files in the system tray.

sinkfaze
  • Moderators
  • 6367 posts
  • Last active: Nov 30 2018 08:50 PM
  • Joined: 18 Mar 2008

Is it not possible to add this file to another .ahk file?


#Include