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 

Default length of double click for renaming a file in XP ?
Goto page 1, 2, 3  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Mr_and_Mrs_D



Joined: 19 Dec 2006
Posts: 164

PostPosted: Wed Aug 27, 2008 3:08 am    Post subject: Default length of double click for renaming a file in XP ? Reply with quote

Hallo !

Is there a function like GetDoubleClickTime() to retrieve the time that must pass between two left mouse clicks for them to be considered a "slow" double click - in windows XP a "slow" left mouse click on a file renames the file.

Does anyone know the default time ? (for a double click it's 0.5 sec)

Thanks for any suggestions Smile

EDIT: I realized through this thread there is no such thing as slow double click - let alone default time. It is really two clicks on the file (or folder) name area. Well Rolling Eyes
_________________
XP SP3 Pro x32 / 7 x64 Pro - AHK 1.0.48.05


Last edited by Mr_and_Mrs_D on Thu Aug 28, 2008 7:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Aug 27, 2008 4:19 am    Post subject: Re: Default lenght of double click for renaming a file in XP Reply with quote

Mr_and_Mrs_D wrote:
Hallo !

Hello!

Mr_and_Mrs_D wrote:
Is there a function like GetDoubleClickTime()...

...I would guess it's GetDoubleClickTime()+1ms or something...anything slightly bigger than a double click is a single click & 2 single clicks = rename...why tho?...F2 will rename too...not to mention FileMove...

Mr_and_Mrs_D wrote:
..."slow" double click...

...I would not call it a "slow double click", if it's too slow for a double click, it's a single click, so it's "2 single clicks"...
Back to top
Slanter



Joined: 28 May 2008
Posts: 739
Location: Minnesota, USA

PostPosted: Wed Aug 27, 2008 4:35 am    Post subject: Re: Default lenght of double click for renaming a file in XP Reply with quote

Anonymous wrote:
...I would guess it's GetDoubleClickTime()+1ms or something...anything slightly bigger than a double click is a single click & 2 single clicks = rename...why tho?...F2 will rename too...not to mention FileMove...
You must not understand, GetDoubleClickTime() isn't a built-in function, it doesn't exist. That's the function he wants to create.
_________________
Unless otherwise stated, all code is untested

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Wed Aug 27, 2008 5:19 am    Post subject: Re: Default lenght of double click for renaming a file in XP Reply with quote

Slanter wrote:
You must not understand...

...yes I do...

Slanter wrote:
GetDoubleClickTime() isn't a built-in function, it doesn't exist.

...no it's not a "built-in function", but it does exist...
...by him mentioning..."like GetDoubleClickTime()"...I figured he meant/knew of the WinAPI function GetDoubleClickTime()...(he wanted something "like" it)...a simple DllCall/wrapper & it's usable in AutoHotkey...so yes I'm fully aware of what I meant...but if he didn't know about the WinAPI GetDoubleClickTime() then he amazingly guessed the correct function name...so my point is to just call the WinAPI GetDoubleClickTime(), add 1ms (or so) to it, then use that value as the "2 single click time"...if he had not made me believe he knew about the WinAPI function already, I would've posted a clearer example, but he demonstrated knowledge of it already...
Back to top
another guest
Guest





PostPosted: Wed Aug 27, 2008 5:53 am    Post subject: Reply with quote

Guest, Come on, it isn't long. you could elaborate it

Code:
MsgBox % GetDoubleClickTime()

GetDoubleClickTime(){
    Return DllCall("GetDoubleClickTime")   
}


Mr_and_Mrs_D
Joined: 19 Dec 2006
Posts: 2

welcome back Very Happy
Back to top
Guest






PostPosted: Wed Aug 27, 2008 6:19 am    Post subject: Reply with quote

another guest, come on, you forgot the +1ms!...hehehe...I would've posted that, but I was waiting on Mr_and_Mrs_D to reply & tell me if they were aware of the WinAPI function...
Back to top
BoBo²
Guest





PostPosted: Wed Aug 27, 2008 6:50 am    Post subject: Reply with quote

I'd vote for F2. Period. Rolling Eyes
Back to top
Mr_and_Mrs_D



Joined: 19 Dec 2006
Posts: 164

PostPosted: Wed Aug 27, 2008 2:18 pm    Post subject: Reply with quote

DId I set up a poll for slow double click vs F2 ? I didn't.

Yes I meant the windows API function whatever this means, I am not a programmer I just googled a lot (recommended).

IMHO spell corrections are bad taste, at least if you don't answer the question posted which was :

A. Is there a function that gives the default time ?

It is probably a rational multiple of "doubleclicktime", see

http://blogs.msdn.com/oldnewthing/archive/2008/04/23/8417521.aspx

In this case :

B. Does anyone know the default time ? 2 single clicks =! rename except if close together. How much close ?

Stop wasting other people's time, please.

bai

PS http://de.wikipedia.org/wiki/Hallo
PS2 I don't want to rename - I want to make XP behave like vista concerning file extensions. There are scripts for F2, of course.
Back to top
View user's profile Send private message
BoBo²
Guest





PostPosted: Wed Aug 27, 2008 2:55 pm    Post subject: Reply with quote

Quote:
in windows XP a "slow" left mouse click on a file renames the file.
I doubt that. What you descripe as a "slow" double click is seen as two separate single clicks which ends up as 'rename'-selection. And AFAIK you can change the sensitivity/click speed of "two single clicks seen as a single double click" at the ControlPanel. So its variable anyway, based on your local setting, or?
Back to top
Mr_and_Mrs_D



Joined: 19 Dec 2006
Posts: 164

PostPosted: Wed Aug 27, 2008 3:07 pm    Post subject: Reply with quote

BoBo² wrote:
Quote:
in windows XP a "slow" left mouse click on a file renames the file.
I doubt that. What you descripe as a "slow" double click is seen as two separate single clicks which ends up as 'rename'-selection. And AFAIK you can change the sensitivity/click speed of "two single clicks seen as a single double click" at the ControlPanel. So its variable anyway, based on your local setting, or?


I mean a slow left double click. But not 2 left clicks separated by a couple of secs. The second one will be just ignored. There is no term I am aware of for this kind of double click so I use the "slow double click". What you can change is the "regular" double click time. Follow the link I posted, and google Smile
Back to top
View user's profile Send private message
Superfraggle



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

PostPosted: Wed Aug 27, 2008 3:25 pm    Post subject: Reply with quote

Unless I am mistaken, (Someone may have more patience to test longer).

It really doesnt matter how much time has passed between the two clicks, I waited about two mins and single clicked, and it went into rename mode.

I think What the original guest posted was correct. If the default double click time is 0.5 seconds then the default for getting the file into rename should be 0.501. Adding 10ms onto the the doubleclick speed should be a safe enough bet.

I tested this by making my double click speed as low as possible and this would suggest the same.

If you were looking to sleep the same ammount of time then

Code:
sleep,% GetDoubleClickTime() + 10

GetDoubleClickTime(){
    Return DllCall("GetDoubleClickTime")   
}

_________________
Steve F AKA Superfraggle

http://r.yuwie.com/superfraggle
Back to top
View user's profile Send private message MSN Messenger
Mr_and_Mrs_D



Joined: 19 Dec 2006
Posts: 164

PostPosted: Wed Aug 27, 2008 9:45 pm    Post subject: Reply with quote

Superfraggle wrote:
Unless I am mistaken, (Someone may have more patience to test longer).

It really doesnt matter how much time has passed between the two clicks, I waited about two mins and single clicked, and it went into rename mode.

I think What the original guest posted was correct. If the default double click time is 0.5 seconds then the default for getting the file into rename should be 0.501.



Thanks Smile Smile

I experimented a bit myself - yes he 's right - what confused me is that one must click especially on the file name - not on the icon as I was doing. Anyway - this think is poorly documented.

I 'll come back to it.
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Aug 28, 2008 2:19 pm    Post subject: Reply with quote

Mr_and_Mrs_D wrote:
DId I set up a poll for slow double click vs F2 ? I didn't.

...I hope that was a joke, because a slow double click is rename, so I & he suggested F2 as a better way to do what we thought you wanted...

Mr_and_Mrs_D wrote:
IMHO spell corrections are bad taste...
PS http://de.wikipedia.org/wiki/Hallo

...I simply made the e blue...this is an English forum, not the de forum, I wasn't mean about it, I just said Hello in my own language...

Mr_and_Mrs_D wrote:
...at least if you don't answer the question posted which was...

...I did answer it...

Superfraggle wrote:
I think What the original guest posted was correct.
Mr_and_Mrs_D wrote:
...yes he 's right...

...ah, thank you Superfraggle...I'm always right (just a little joke...plz don't flame over it)...but I do always try to be right before I post an answer...

Mr_and_Mrs_D wrote:
...I want to make XP behave like vista concerning file extensions.

...your orig post didn't mention that, I don't have Vista...so you'd have to explain what Vista does in this case that you are trying to mimic...is it something like renaming the file extension?...or is it when you rename it only highlights the filename & doesn't by default highlight the extension portion?...but maybe that's not it, since you said...

Mr_and_Mrs_D wrote:
PS2 I don't want to rename...

...so even if you don't want to rename, per se, do you want to modify the rename behavior?...if this is what you want, do you want to handle only slow double click rename or F2 rename also (both)?...
Back to top
Mr_and_Mrs_D



Joined: 19 Dec 2006
Posts: 164

PostPosted: Thu Aug 28, 2008 3:34 pm    Post subject: Reply with quote

Anonymous wrote:
Mr_and_Mrs_D wrote:
DId I set up a poll for slow double click vs F2 ? I didn't.

...I hope that was a joke, because a slow double click is rename, so I & he suggested F2 as a better way to do what we thought you wanted...

Mr_and_Mrs_D wrote:
IMHO spell corrections are bad taste...
PS http://de.wikipedia.org/wiki/Hallo

...I simply made the e blue...this is an English forum, not the de forum, I wasn't mean about it, I just said Hello in my own language...

Mr_and_Mrs_D wrote:
...at least if you don't answer the question posted which was...

...I did answer it...


OK, OK, I was a bit too enthusiastic. I wanted the answer to the question - you did answer but I hadn't realized that there is no "slow double click", it 's just 2 single clicks on the "filename area". So your answer (based on the wrong assumption I want to write a script to rename files) confused me - and then a big discussion started, completely unrelated to my q.

Anonymous wrote:

Mr_and_Mrs_D wrote:
...I want to make XP behave like vista concerning file extensions.

...your orig post didn't mention that, I don't have Vista...so you'd have to explain what Vista does in this case that you are trying to mimic...is it something like renaming the file extension?...or is it when you rename it only highlights the filename & doesn't by default highlight the extension portion?...but maybe that's not it, since you said...

Mr_and_Mrs_D wrote:
PS2 I don't want to rename...

...so even if you don't want to rename, per se, do you want to modify the rename behavior?...if this is what you want, do you want to handle only slow double click rename or F2 rename also (both)?...


Yes it's the "when you rename it only highlights the filename & doesn't by default highlight the extension portion" thing - but I didn't want to discuss that - I just wanted to know the answer and then I 'd be able to write a script (I downloaded an F2 related script* but half of the time I rename using the 2 clicks method. Long habit.)

Now things are more complicated cause I have to check for two clicks on the same area and have to do some reading.

Smile peace

PS I don't have vista either, nor intend to lol.
*http://lifehacker.com/355580/mimic-vistas-file-rename-feature-in-xp


Last edited by Mr_and_Mrs_D on Thu Aug 28, 2008 7:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
Krogdor



Joined: 18 Apr 2008
Posts: 1390
Location: The Interwebs

PostPosted: Thu Aug 28, 2008 7:28 pm    Post subject: Reply with quote

I didn't even know about the double clicks renaming until I read this thread... Shocked I always went to rename from the context menu D:
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
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