Script for eMail address

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
James-Brown
Posts: 1
Joined: 20 Apr 2018, 10:07

Script for eMail address

21 Apr 2018, 08:33

This script works on local applications, like notepad, word etc. but does not send these keystrokes to a Chrome page.
Why is that:

Code: Select all

; Script Function:
;	Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
;
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
!j::
Send [email protected]
SetCapsLockState,AlwaysOff
Return
Guest

Re: Script for eMail address

21 Apr 2018, 09:09

Check your security software, it most likely prevents ahk sending keys to your browser (webroot is a common cause), you can try to run the Script as Administrator to see if that helps.
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Script for eMail address

21 Apr 2018, 09:30

Code: Select all

; Script Function:
;	Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
;
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
SetCapsLockState,AlwaysOff

!j::sendPaste("[email protected]")

sendPaste(str) {
	clipSaved := ClipboardAll
	Clipboard := str
	Send, ^v
	Clipboard := clipSaved
	clipSaved := ""
}
u can also try pasting instead

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Billykid, Descolada, Swiftly9767 and 300 guests