Second "s" in the word "process" not showing up. Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
duzymichal
Posts: 16
Joined: 31 Mar 2017, 04:11

Second "s" in the word "process" not showing up.

05 Apr 2017, 16:07

Hello kind helpers

I have a bizarre problem regarding the word "process". In the script below the second "s" never shows in the body of the mail regardless of whether I write "process" or proces{Asc 0115}, even though attaching any other {Asc nnnn} shows positive results. Please help!

Code: Select all

Gui,+AlwaysOnTop
Gui, Tab, 7
Gui, Add, Tab2, x42 y20 w390 h310 , RAB
Gui, Add, Edit, vemailrab x232 y110 w160 h30
Gui, Add, Edit, vnamerab x232 y150 w160 h30
Gui, Add, Edit, vprrab x232 y190 w160 h30
Gui, Add, Text, x92 y110 w110 h30 , Email
Gui, Add, Text, x92 y150 w110 h30 , First Name
Gui, Add, Text, x92 y190 w110 h30 , Purchase Request
Gui, Add, Radio, x82 y68 w100 h30 vidm, IDM
Gui, Add, Button, default gok7 x182 y280 w90 h30 , OK

Gui, Show, x226 y116 h383 w483, SU Quickpaste
Gui, Submit, NoHide
Return


check:
	Gui, Submit, NoHide
	
return

ok7:


Gui, submit,

if (IDM = 1)

{

try
    IsObject(ObjOutlook := ComObjActive("Outlook.Application"))
catch
    ObjOutlook  := ComObjCreate("Outlook.Application")

mailItem :=	ComObj("Outlook.Application").CreateItem(0)


Loop, C:\Users\0101010101\Desktop\cfiles\RAB\*idm*	 
	mailItem.Attachments.Add(A_LoopFileLongPath)

MailItem.Subject := "XXXXXXXXXX required for (" prrab ")"
MailItem.To    := emailrab
MailItem.Display


sendinput {Down}
	

body3 =
(
Hello %namerab%
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

{Tab} 1. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Forms need to be sent to XXXXXXXXXXXXXX - [email protected] XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX for more in-depth information regarding the process for resource engagement. 
{enter}
)
sendinput %body3%

}

GuiControl,,emailrab,
GuiControl,,namerab,
GuiControl,,prrab,
Gui Minimize



return

GuiClose:
ExitApp
GuiEscape:
ExitApp
Nightwolf85
Posts: 295
Joined: 05 Feb 2017, 00:03

Re: Second "s" in the word "process" not showing up.  Topic is solved

05 Apr 2017, 16:56

Unfortunately I can't reproduce the problem you are describing, as it works perfectly for me. I've copied exactly what you have and it shows the email then types out everything perfectly.

What happens if you try this in place of what you have, do you still have any issue with the output?

Code: Select all

body3 =
(
Hello %namerab%,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

%A_Tab%1. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
%A_Tab%2. Forms need to be sent to XXXXXXXXXXXXXX - [email protected] XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
%A_Tab%3. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX for more in-depth information regarding the process for resource engagement. 


)
clipboard := body3
sendinput ^v
If you don't want it to overwrite the current clipboard change that part to:

Code: Select all

tmp := clipboardAll
clipboard := body3
sendinput ^v
Sleep 50
clipboard := tmp
**Edit

Actually why not just set the body directly? - Edited again to keep formatting we must set the body type to RTF (3)

Code: Select all

MailItem.BodyFormat := 3
MailItem.Body := body3
duzymichal
Posts: 16
Joined: 31 Mar 2017, 04:11

Re: Second "s" in the word "process" not showing up.

05 Apr 2017, 18:30

Thank you Nightwolf85. Your solution worked :D.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], flyingDman, JoeWinograd, Siopaulo, teadrinker and 111 guests