TeknoMusicMan
Joined: 14 Apr 2005 Posts: 188 Location: Wisconsin, USA
|
Posted: Tue Apr 26, 2005 6:50 pm Post subject: |
|
|
you would probably have to ControlGetText from Edit2 then StringGetPos to fine the first `n and then use StringTrimLeft to delete everything upto and including the `n.
Hope those Ideas help ya out _________________
"Make it idiot-proof, and someone will make a better idiot." |
|
umek
Joined: 02 Oct 2004 Posts: 74
|
Posted: Tue Apr 26, 2005 7:53 pm Post subject: |
|
|
thx Mr.TeknoMusicMan
... for the impuls, I had my problems but I got it ...
| Code: | #Persistent
#SingleInstance
escape::
title = Clip Library Entry
shortcut = !1 ; to paste new entry ...
Send, ^a
Sleep, 10
Send, ^c
clip = %clipboard%
Send, %shortcut%
Sleep, 10
ControlGetText, contents, Edit2, %title%
StringGetPos, pos, contents, `n
pos += 1
StringTrimLeft, finalContent, contents, %pos%
ControlSetText, Edit2, %finalContent%, %title%
Exit |
greetings _________________ Works on my machine! |
|