| View previous topic :: View next topic |
| Author |
Message |
Superfraggle
Joined: 02 Nov 2004 Posts: 753 Location: London, UK
|
Posted: Sat Apr 26, 2008 10:38 pm Post subject: Problem with timers and fileselectfile |
|
|
Take the example code here
| Code: | settimer,Bugtimer,5000
FileSelectFile,Files,M3
REturn
bugtimer:
tooltip,Timer has run
return |
If you select two or more files before the tooltip appears, it works. However, If the timer runs, whilst the dialog is showing, you are then unable to select more than one file, or you get an error saying file not found.
Edit:
The manual does say
Can someone else test/verify. | Quote: | | Known limitation: A timer that launches during the display of a FileSelectFile dialog will postpone the effect of the user's clicks inside the dialog until after the timer finishes. To work around this, avoid using timers whose subroutines take a long time to finish, or disable all timers during the dialog: |
But doesnt mention this. At least that I can see. _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
Ian
Joined: 15 Jul 2007 Posts: 1077 Location: Enterprise, Alabama
|
Posted: Sat Apr 26, 2008 11:27 pm Post subject: |
|
|
| Code: | settimer,Bugtimer,5000
Sleep, 10
FileSelectFile,Files,M3
REturn
bugtimer:
tooltip,Timer has run
return |
That worked for me without ever touching the FileSelectFile interface. _________________ 1,000 Posts achieved on Saturday April 26, 2008 1:45 am |
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 753 Location: London, UK
|
Posted: Sat Apr 26, 2008 11:29 pm Post subject: |
|
|
How can you not touch the interface when the bug involves touching the interface :S
The issue is with selecting more than one file in the fileselectfile dialog. _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 5957 Location: Pacific Northwest, US
|
Posted: Sun Apr 27, 2008 3:11 am Post subject: |
|
|
i was able to select multiple files both before and after the timer ran. I was unable to reproduce your problem. I am using Vista _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 753 Location: London, UK
|
Posted: Sun Apr 27, 2008 3:23 am Post subject: |
|
|
Yeah i've had someone using the same version (XP SP2) test it and unable to reproduce it too.
I have a work around anyway, its just a very unusual issue. I cannot think what could cause it, it only happens when a timer runs whilst the dialog box is shown. And then only if multiple files are selected.
It must be something local, its just too obscure to try and trace. _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
SomeGuy
Joined: 21 Apr 2008 Posts: 92 Location: somewhere
|
Posted: Sun Apr 27, 2008 3:47 am Post subject: |
|
|
| engunneer....did you run it from within an editor per chance? |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 5957 Location: Pacific Northwest, US
|
Posted: Sun Apr 27, 2008 5:22 am Post subject: |
|
|
I ran the code as displayed. I use PSPad as an editor. When testing code on the forums, I rarely save the file, so it made a temp file for me. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
SomeGuy
Joined: 21 Apr 2008 Posts: 92 Location: somewhere
|
Posted: Sun Apr 27, 2008 5:29 am Post subject: |
|
|
| when i run the script from scite (the file is saved), I do not get the error. When I drag and drop the SAME script onto the autohotkey exe I get the error as described. |
|
| Back to top |
|
 |
Fry
Joined: 01 Nov 2007 Posts: 485
|
Posted: Sun Apr 27, 2008 5:23 pm Post subject: |
|
|
Im Having the same error _________________ check out my site
www.eliteknifesquad.com
 |
|
| Back to top |
|
 |
|