Link to home
Start Free TrialLog in
Avatar of Luis Diaz
Luis DiazFlag for Colombia

asked on

AutoHotKey: change script related of adress e-mail sent.

Hello experts,

I have the following AutoHotkey script: 

;====================================
;louisdiazramirez@gmail.com
;====================================


:*:ldx::
Sleep,15
Send, louisdiazramirez@gmail.com
Return

Open in new window

Sometimes I have the following result:

luisdiazramirez@gmail.com

Instead of:

louisdiazramirez@gmail.com

I was wondering what should I do to always have the following:

louisdiazramirez@gmail.com


Thank you for your help.

Regards,

Luis.



SOLUTION
Avatar of Joe Winograd
Joe Winograd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Luis Diaz

ASKER

Hi Joe,
When you say sendinput is like send a block related to a declared variable because I tested at least 15 times the following script and it works even if I write text after and before:

;====================================
;louisdiazramirez@gmail.com
;====================================

:*:ldx::
Send, louisdiazramirez@gmail.com
Return

Open in new window

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Noted, I tried Sendinput with the capital at I. This is probably why it didn't work. Anyway it is too late her (1h34AM) and I have  a job interview tomorrow  in France no so far from Grenoble. Thank you for your help Joe!
This is probably why it didn't work.
No, that is not why. AutoHotkey commands and functions are case insensitive. If need be, we can work on this more whenever you have the time. Regards, Joe
Joe,
The following script works for me.
;====================================
;ldia468@gmail.com
;====================================

:*:ldix::
Sleep,15
SendInput, ldia468@gmail.com
Return

Open in new window

If I made a mistake, please let me know.

Regards,
Luis.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
;====================================
;louisdiazramirez@gmail.com
;====================================

:*:ldx::
Send, louisdiazramirez@gmail.com
Return

;====================================
;ldia468@gmail.com
;====================================

:*:ldix::
SendInput, ldia468@gmail.com
Return

Open in new window

I suggest changing Send on line 6 to SendInput (as you have on line 14).