AutoHotkey Community

It is currently May 27th, 2012, 12:24 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: December 4th, 2009, 8:23 pm 
Offline

Joined: April 9th, 2009, 4:11 pm
Posts: 22
Location: Houston, Tx
I am losing keyboard control when running this script.
After it completes, I lose all movement (arrows, bkspc, enter, etc.)
and cannot type anything to the screen (apps).
The only way I can get out of the "lockup" is to activate another
hotstring shortcut that is a single textstring.

Sometimes, even the single-line hotstrings will cause the lockup.
Somehow, some way, I can activate the "unlocking" hotstring with
the keyboard shortcut.

Here is the script that causes the lockup:
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.

;=======================================================
!s::   ;Inserts 'Settled for' note
TodayNow := A_Now
TodayMinus1 := A_Now
EnvAdd, TodayMinus1, -1, days
FormatTime, TodayMinus1, %TodayMinus1%, M/d/yy
FormatTime, TodayNow, %TodayNow%, M/d/yy
Send %TodayNow% -dg- Settled for $`n
Send Subsequent year not litgated.`n
Send Subsequent year nonsuited.`n
Send %TodayMinus1% -dg- client refusing to participate`n`n
Send %TodayMinus1% -dg- reviewed settlement negotiations w/client`n
Send %TodayMinus1% -dg- reviewed client issues & expectations`n
Send Client is relying on agent for direction of negotiations.`n
Return


This is one of the single line scripts that will typically "unlock" and
give me back keyboard control:
Code:
!v::   ;Inserts "Quickie - verified, but CADs not sent."
FormatTime, DateString,,M/d/yy
Send %DateString% -dg- Quickie - verified, but CADs not sent.`n
Return


Please note - these scripts worked perfectly on another PC that I was using before our IT folks gave me this current PC.
So, I know that the scripts will work just fine on XP, etc.

I have tried other 'Send' commands and setkeydelay, -1 and using the
Clipboard-paste method and nothing is solving this.

My system >>> Let me know if this is not enough info.
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 3 Build 2600
Processor x86 Family 15 Model 95 Stepping 2 AuthenticAMD ~2393 Mhz
BIOS Version/Date Phoenix Technologies, LTD MS7297 1.08, 8/22/2007
SMBIOS Version 2.5
Total Physical Memory 1,536.00 MB
Available Physical Memory 751.14 MB
Total Virtual Memory 2.00 GB
Available Virtual Memory 1.96 GB
Page File Space 2.54 GB

Running Office 2003 apps & IE7

Thank you,
weg


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2009, 8:28 pm 
Offline
User avatar

Joined: March 19th, 2008, 12:43 am
Posts: 5480
Location: the tunnel(?=light)
What program are you sending the data to? Are you able to check ListLines to see if/where the script stopped executing?

_________________
Image
Try Quick Search for Autohotkey or see the tutorial for newbies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2009, 9:02 pm 
Offline

Joined: April 9th, 2009, 4:11 pm
Posts: 22
Location: Houston, Tx
sinkfaze,

It doesn't differ whether working in my text editor (NoteTab),
Word, or the IE GUI interface our company uses for our database front end. The lockup happens regardless.

The script is not stopping. It executes - typing all of the text with
the formatted dates and all - to the screen.
At the end of the execution is when the keyboard lockup is occurring.

weg


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2009, 9:50 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Execute a hotstring until you loose control.
Now Double Click on the green H AHK icon in your systray, you should should see the lines most recently executed (see View if not)

What do you see?

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2009, 4:54 pm 
Offline

Joined: April 9th, 2009, 4:11 pm
Posts: 22
Location: Houston, Tx
106: TodayNow := A_Now
107: TodayMinus1 := A_Now
108: TodayMinus1 += -1
109: FormatTime,TodayMinus1,%TodayMinus1%,M/d/yy
110: FormatTime,TodayNow,%TodayNow%,M/d/yy
111: Send,%TodayNow% -dg- Settled for $
(0.05)
112: Send,Subsequent year not litgated.
(0.03)
113: Send,Subsequent year nonsuited.
(0.03)
114: Send,%TodayMinus1% -dg- client ìs not participating.

(0.05)
115: Send,%TodayMinus1% -dg- reviewed settlement negotiations w/client.
(0.06)
116: Send,%TodayMinus1% -dg- reviewed client issues & expectations.
(0.06)
117: Send,Client is relying on agent for direction of negotiations.
(0.06)
118: Return (91.03)
128: FormatTime,DateString,,M/d/yy
129: Send,%DateString% -dg- Quickie - verified, but CADs not sent.
(0.06)
130: Return (6.03)

Press [F5] to refresh.
===========================================

The key history includes the last hotstring I had to call in order to
get out of lockup.

Thanks,
weg


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2009, 7:01 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
Could you try this script it gets, sets focus on a control and sends an extra space via controlsend (all marked red)
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.

;=======================================================
!s::   ;Inserts 'Settled for' note
ControlGetFocus, _Control, A ; store
TodayNow := A_Now
TodayMinus1 := A_Now
EnvAdd, TodayMinus1, -1, days
FormatTime, TodayMinus1, %TodayMinus1%, M/d/yy
FormatTime, TodayNow, %TodayNow%, M/d/yy
Send %TodayNow% -dg- Settled for $`n
Send Subsequent year not litgated.`n
Send Subsequent year nonsuited.`n
Send %TodayMinus1% -dg- client refusing to participate`n`n
Send %TodayMinus1% -dg- reviewed settlement negotiations w/client`n
Send %TodayMinus1% -dg- reviewed client issues & expectations`n
Send Client is relying on agent for direction of negotiations.`n
ControlFocus, _Control, A
ControlSend, _Control, {Space}, A
Return
Dunno if it will do any good...

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2009, 8:10 pm 
Offline

Joined: April 9th, 2009, 4:11 pm
Posts: 22
Location: Houston, Tx
hugoV,

We're getting very close.

Tested multiple times - switching between my original script and your mod and yours has yet to lockup the keyboard.

However, when working in the Internet Explorer interface that we use here at work, I'm losing the first letter of the first & second line of the textstring.
Sometimes I lose the second line's only and then both first-letters.
I'm trying SetKeydelay to see if that will help.

This loss of the character does not happen if using MSWord or NoteTab to receive the hotstrings - as an experiment.

Here is the output result in the IE interface:
Quote:
2/5/09 -dg- Settled for $
ubsequent year not litgated.
Subsequent year nonsuited.
12/4/09 -dg- client refusing to participate

12/4/09 -dg- reviewed settlement negotiations w/client
12/4/09 -dg- reviewed client issues & expectations
Client is relying on agent for direction of negotiations.


What is the 'A' parameter on each of the lines you added?
Cannot find reference to in the Help listings of each.

weg


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 5th, 2009, 11:15 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
A stands for active window. IE missing characters has been reported before*, pasting as I've shown in the other thread will solve it I guess. Also note that I already suggested the controlfocus method in your other thread as well.

* Search forum I'm to lazy

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 8th, 2009, 1:05 pm 
Offline

Joined: April 9th, 2009, 4:11 pm
Posts: 22
Location: Houston, Tx
The ControlFocus is not working.
I'm reading in the forums to see how others have dealt with to try and narrow down my issue with it.

Thanks,
weg


Report this post
Top
 Profile  
Reply with quote  
PostPosted: December 10th, 2011, 8:35 pm 
Loss of keyboard control and missing first letter of the first line.

My scripts are very basic -

^!c::
Send Please see my comments and let me know if you have any questions
return

I tried this in IE8 and FF 3.6. I use a PC running Windows 7.

Thanks in advance for any help you can provide. I like this program, but will have to fins another easy to use (I am not that tech savvy) to be able to record macros like we had in windows years ago.

D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 11th, 2011, 5:07 am 
Offline

Joined: February 17th, 2008, 8:52 pm
Posts: 314
Maybe try loading all the text you want to send to the clipboad then paste the clipboard. If that doesn't work add some delay by using the sleep command between each line of your send commands.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 13th, 2011, 6:34 pm 
Sleep command? Can you let me know what that is, please? Thanks!


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, Google Feedfetcher, iDrug, Leef_me, rjgatito and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group