jmsssm
Joined: 19 Mar 2008 Posts: 6
|
Posted: Wed Mar 19, 2008 6:24 pm Post subject: Variable to Clipboard |
|
|
| Code: | ^k::
Send {Home}
Send JMM -{Space}
Send ^s
Send ^r
Sleep 2500
Send ^a
Sleep 500
Send ^c
Sleep 500
Send {Left}
z := clipboard
w := clipboard
x := clipboard
StringGetPos y, x, From:
StringTrimLeft mai, x, %y%
ClipBoard = %mai%
MsgBox MAIL = %mai%
Loop,Parse, w ,`n
{
StringGetPos,Occurence,A_LoopField,Subject:
If ErrorLevel <> 0
Continue
StringMid subj, A_LoopField, 16
StringTrimRight, subj2, Subj, 1
Clipboard=%subj2%
Break
}
StringGetPos, e, z, ]
StringGetPos, f, z , mailto:
f := f + 8
g := e - f + 1
StringMid, h, z, %f%, %g%
Sleep, 500
If InStr(h, "/")
{
StringGetPos, var1, h, /
StringMid, h, h, 1, 7
}
Clipboard = %h%
msgbox Done!
return |
Hi I've made this code just to retrieve information from Outlook (replyed or forwarded) email.
Cannot understand why just clipboard doesn't change to variable %mai%
When I do msgbox %mai% it shows exactly what I want....
Anyone?
Please sorry for my english it's not my first language.
Thanks |
|