AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem - Hotstrings typing on screen one at a time.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
wideeyedguy



Joined: 09 Apr 2009
Posts: 15
Location: Houston, Tx

PostPosted: Tue Dec 01, 2009 3:11 pm    Post subject: Reply with quote

hugoV,

I was premature with thinking the Clipboard method was going to work.
It's not.

When I was testing it yesterday, I was only testing it in my text editor and was working fine. Now that I've moved over to the apps where I use the hotstrings, it's not pasting the textstrings - at all.

When it does paste, it sometimes is pasting whatever it sees as the last thing on the clipboard. Just went from usable to not working.
What is going on?

Here is the actual coding I incorporated from yours:
Code:
#NoEnv        ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input     ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
;setkeydelay, -1

; #=Win ^=Ctrl +=Shift !=Alt

!c:: ;Inserts Contact Log info
ClipboardSave:=ClipboardAll
TodayMinus3 := A_Now
TodayMinus6 := A_Now
EnvAdd, TodayMinus3, -3, days
EnvAdd, TodayMinus6, -6, days
FormatTime, TodayMinus3, %TodayMinus3%, M/d/yy
FormatTime, TodayMinus6, %TodayMinus6%, M/d/yy
;MsgBox % TodayMinus3
;MsgBox % TodayMinus6
Clipboard=
(join`n
%TodayMinus3% -dg- reviewed client issues & involvement
Client gave me authority to negotiate.

%TodayMinus6% -dg- em'd client non-participation advisory
%TodayMinus6% -dg- emailed client request for new OIR
%TodayMinus6% -dg- contact attempt w/client`n
)
;MsgBox % Clipboard
;ClipWait, 2
Send ^v
Clipboard := ClipboardSave
ClipboardSave=
Return

;=======================================================
!d::  ;Inserts Supplement date
ClipSaved:=ClipboardAll
FormatTime, DateString,,M/d/yy
Clipboard= %DateString% -dg- report finished and submitted for supplementation.`n
;ClipWait, 2
Send ^v
Clipboard := ClipSaved
ClipSaved =
Return


I tried ClipWait just to see if that would alleviate the Send ^v from pasting existing CB contents. Didn't have any effect, so I disabled.

Even in the text editor, when doing multiple hotstring keyboard actions, the pasting is sporadic. Sometimes it will paste the intended strings and sometimes it will paste the pre-script CB contents.

Your help and guidance is appreciated.

weg
Back to top
View user's profile Send private message
hugov



Joined: 27 May 2007
Posts: 2471

PostPosted: Tue Dec 01, 2009 3:18 pm    Post subject: Reply with quote

Try this, by using clipboard= and clipwait,0 it should really erase all previous clipboard content. You could also use the methods a few posts above to get the active window & control so you can use ControlSend
Code:
#NoEnv        ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input     ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
;setkeydelay, -1

; #=Win ^=Ctrl +=Shift !=Alt

!c:: ;Inserts Contact Log info
ClipboardSave:=ClipboardAll
Clipboard= ; clear Clipboard
ClipWait, 0
TodayMinus3 := A_Now
TodayMinus6 := A_Now
EnvAdd, TodayMinus3, -3, days
EnvAdd, TodayMinus6, -6, days
FormatTime, TodayMinus3, %TodayMinus3%, M/d/yy
FormatTime, TodayMinus6, %TodayMinus6%, M/d/yy
;MsgBox % TodayMinus3
;MsgBox % TodayMinus6
Clipboard=
(join`n
%TodayMinus3% -dg- reviewed client issues & involvement
Client gave me authority to negotiate.

%TodayMinus6% -dg- em'd client non-participation advisory
%TodayMinus6% -dg- emailed client request for new OIR
%TodayMinus6% -dg- contact attempt w/client`n
)
;MsgBox % Clipboard
;ClipWait, 2
ClipWait, 0,  ; extra
Sleep, 100 ; extra
Send ^v
Clipboard=
clipwait, 0

Clipboard := ClipboardSave
ClipboardSave=
Return

;=======================================================
!d::  ;Inserts Supplement date
ClipSaved:=ClipboardAll
FormatTime, DateString,,M/d/yy
Clipboard= %DateString% -dg- report finished and submitted for supplementation.`n
;ClipWait, 2
Send ^v
Clipboard := ClipSaved
ClipSaved =
Return
Perhaps your new PC has other software installed that interferes with AutoHotkey, perhaps you could try to look into that as well. It is really hard to help you as you give little information (programs, OS etc etc). I'm sure it is something specific to your computer
_________________
Tut 4 Newbies
TF : Text file & string lib, TF Forum
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group