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 

ahk_man

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ahk_man



Joined: 20 Jun 2004
Posts: 39

PostPosted: Mon Jun 28, 2004 2:48 am    Post subject: ahk_man Reply with quote

I was wondering how reliable are the scripts being generated by Autohotkey? I realize sometimes I've written a script that I know works numberous time and one day it just crash on me. For example, sometimes when I click the hotkey to start the script, the script does not run like it should. Also, when sometimes I use the Send command to send like:
Send, abc

Most of the time it will send abc, but there are times it only send ab, bc, or those variations. I know about the use of SetKeyDelay, however I have to open up my script and edit the SetKeyDelay to increase the value.
Back to top
View user's profile Send private message
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Mon Jun 28, 2004 3:07 am    Post subject: Reply with quote

Do you have an example of your script that we may look at? You might also want to use BlockInput to prevent user input from interfering with AutoHotkey commands.

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Beastmaster



Joined: 15 Apr 2004
Posts: 182

PostPosted: Mon Jun 28, 2004 10:18 am    Post subject: Reply with quote

Something which looks quite similar happened with my script.
It should send a date-/timestamp to an inputfield within a form.
As this script runs 24/7 (an AHK stress test Cool ) it looks that the string variable is loosing/changing some content after some time.

2004/06/28 23:59:59
becomes
2004.06.28 (can't remember if the colon's at the timestamp are changing as well Embarassed )

it's swapping the slash / character (the english date separator) to the one which was formerly assigned (based on the local keyboard setting, it was a dot).

a second field at this form should be filled afterwards but the string variable (which holds the path of the file which should be processed) is loosing its backslashes.

C: myfolder mysubfolder myfile.csv
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Mon Jun 28, 2004 11:58 am    Post subject: Reply with quote

The next time that happens, please use the main window's View > List Variables item to see what the variable actually contains. If a variable changes on its own, please let me know.

I suspect this has to do with a keyboard layout issue, however. It might also be caused if the Send command occurs while a modifier key such as Win or Ctrl is held down or stuck down.
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Mon Jun 28, 2004 12:24 pm    Post subject: Reply with quote

Quote:
sometimes I've written a script that I know works numberous time and one day it just crash on me.

Do you mean it generates an "application error" or other error message? If so, make sure you're using the latest version and please post the exact error message if it happens again.

Quote:
I was wondering how reliable are the scripts being generated by Autohotkey?

Quite a few people -- including me -- have very complex scripts that run continuously for days or even weeks at a time without any issues. My largest script is over 6000 lines long and although it uses more memory than a small script, I've never noticed any reliability problems, even when it's been running a week or more.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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