There are two methods for sending a key with modifiers held down.
If only one key is getting sent then you can use the modifier symbols ! + ^ #
If more than one key needs to be sent with modifiers held down or you need to indicate left or right modifiers than you can use the Down and Up options after the names of the modifier keys.
I commented out the Down/Up method in the script below.
Code: Select all
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
f1::
StringofText := "Some Text to Send"
Send ^+~ ; Holds down Control ^ and Shift + while sending ~ (!+^# only affect 1 character before they are released)
; Send {LCtrl Down}{LShift Down}~{LCtrl Up}{LShift Up} ; Could be any number of keys between the Down and Up
Sleep 10
Send % StringofText
Sleep 10
Send {Enter}
return
FG