Quote:
Doesn't pressing ctrl-shift-left work in the program, it does in "regular" editors to select a word. Does a mouse double or tripple click select a word?
No, because there is not just only one word between those characteros but serveral ones.
Code:
#MaxThreads 2
^+r::
keepRunning = false
MsgBox "stoppe"
return
^r::
If keepRunning = true
{
MsgBox "abbruch"
keepRunning = false
return
}
KeepRunning=true
SetBatchLines, 0
WinActivate Untitled ; activate notepad
Loop
{
if keepRunning = false
{
Send {Shift up}
Break
}
Send {Shift down}
Send {right}
sleep 1000
Send ^C
StringRight, test, clipboard, 1
If (Test = "$")
{
Send {left}
Send ^C
sleep 10
Send {Shift up}
Break
}
}
KeepRunning = false
return
Here is what i got so far.
Though, I'm still not quite happy as it is very slow and it doesnt work if i drop "sleep 1000" before pressing ^C, if ^+r is supposed to stop the loop.
[/code]