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 with timers and fileselectfile

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Superfraggle



Joined: 02 Nov 2004
Posts: 753
Location: London, UK

PostPosted: Sat Apr 26, 2008 10:38 pm    Post subject: Problem with timers and fileselectfile Reply with quote

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
View user's profile Send private message MSN Messenger
Ian



Joined: 15 Jul 2007
Posts: 1077
Location: Enterprise, Alabama

PostPosted: Sat Apr 26, 2008 11:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Superfraggle



Joined: 02 Nov 2004
Posts: 753
Location: London, UK

PostPosted: Sat Apr 26, 2008 11:29 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
engunneer



Joined: 30 Aug 2005
Posts: 5957
Location: Pacific Northwest, US

PostPosted: Sun Apr 27, 2008 3:11 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Superfraggle



Joined: 02 Nov 2004
Posts: 753
Location: London, UK

PostPosted: Sun Apr 27, 2008 3:23 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
SomeGuy



Joined: 21 Apr 2008
Posts: 92
Location: somewhere

PostPosted: Sun Apr 27, 2008 3:47 am    Post subject: Reply with quote

engunneer....did you run it from within an editor per chance?
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 5957
Location: Pacific Northwest, US

PostPosted: Sun Apr 27, 2008 5:22 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
SomeGuy



Joined: 21 Apr 2008
Posts: 92
Location: somewhere

PostPosted: Sun Apr 27, 2008 5:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Fry



Joined: 01 Nov 2007
Posts: 485

PostPosted: Sun Apr 27, 2008 5:23 pm    Post subject: Reply with quote

Im Having the same error
_________________
check out my site
www.eliteknifesquad.com

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports 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