| View previous topic :: View next topic |
| Author |
Message |
ahk_man
Joined: 20 Jun 2004 Posts: 39
|
Posted: Mon Jun 28, 2004 2:48 am Post subject: ahk_man |
|
|
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 |
|
 |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Mon Jun 28, 2004 3:07 am Post subject: |
|
|
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 |
|
 |
Beastmaster
Joined: 15 Apr 2004 Posts: 182
|
Posted: Mon Jun 28, 2004 10:18 am Post subject: |
|
|
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 ) 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 )
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10463
|
Posted: Mon Jun 28, 2004 11:58 am Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10463
|
Posted: Mon Jun 28, 2004 12:24 pm Post subject: |
|
|
| 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 |
|
 |
|