AutoHotkey Community

It is currently May 26th, 2012, 8:03 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 157 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11  Next
Author Message
 Post subject:
PostPosted: July 12th, 2009, 11:30 pm 
Offline

Joined: March 10th, 2008, 12:55 am
Posts: 1907
Location: Minnesota, USA
tidbit wrote:
I've been using the CmnDlg_Color function and i love it, however it is not returning any false/errorlevel when i press Cancel or the X.

i am using The latest Autohotkey version

my script is here: http://www.autohotkey.com/forum/viewtopic.php?p=259474 and i included the function in my code. could that be the cause?

Hasn't been fixed in 5.0 either

_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault, Bigfoot is blurry. So there's a large, out-of-focus monster roaming the countryside."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 13th, 2009, 9:59 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
ur code is bad, it wont fix itself.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2009, 3:50 am 
Offline

Joined: January 8th, 2007, 1:14 pm
Posts: 83
Awesome as usual!

The current version seems to have typo in the following line.

Code:
Dlg_Open( hGui=0, Title="", Filter="", DefultFilter="", Root="", DefaultExt="", Flags="FILEMUSTEXIST HIDEREADONLY" ) {


This should probably be "DefaultFilter" and not "DefultFilter"?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2009, 11:10 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Thanks for tests and continuous feedback.

BTW, I have seen your message in Rebar thread and I will see whats wrong as soon as I find time for that.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 27th, 2009, 6:30 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Fixed.
Typo was a bug - you couldn't set default filter.
I also added remark and changed the code about Replace dialog and d flag as requested by Jballi.

Version isn't changed.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 29th, 2009, 11:31 pm 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 775
Location: Texas, USA
Found a problem with the Dlg_Find function. I would call it a bug but I looked at the code and it looks like it should work. Might be a "easy to duplicate" (I found it) but a "not so easy to fix" AutoHotkey bug. There is an easy work-around.

The problem: If you call the Dlg_Find function with only the "w" ("Match whole word only") flag, the Find dialog pops up but the "Match whole word only" option is not selected. All other combinations of flags appears to work.

Here's the code that's causing the problem:
Code:
f := 0
    ,InStr(flags, "d")  ? f |= FR_DOWN          :
    ,InStr(flags, "c")  ? f |= FR_MATCHCASE     :
    ,InStr(flags, "w")  ? f |= FR_WHOLEWORD     :
    ,InStr(flags, "-d") ? f |= FR_HIDEUPDOWN    :
    ,InStr(flags, "-w") ? f |= FR_HIDEWHOLEWORD :
    ,InStr(flags, "-c") ? f |= FR_HIDEMATCHCASE :

Like I said, it should work (f=2) but it don't (f=0).

The work-around: If you get rid of the leading "," (comma) character from the 2nd through the last line, it works like a champ. The Dlg_Replace function doesn't have this problem because it is written differently.

Let me know if you are unable to duplicate the problem or if you need any additional information.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 30th, 2009, 11:48 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Fixed (v5.01) . I added "" after the :

Thank you jballi :)

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2009, 9:46 pm 
jballi wrote:
The ChooseFont is much impoved. Thanks. I'm only making a fuss about this function because I'm hoping to use it in the future. :)

One additional idiosyncrasy. The color value returned is sometimes correct but usually it's not.

Thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 30th, 2009, 7:59 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
*** version 5.02 ***
! Fixed S bug in Font dialog.
* Licence changed from GPL to BSD.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 31st, 2009, 2:31 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Jballi wrote:
One additional idiosyncrasy. The color value returned is sometimes correct but usually it's not.

Hm? I can't reproduce this. 2nd sample at the end of the documentation works for me for each color.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 31st, 2009, 5:16 pm 
Offline

Joined: October 1st, 2005, 9:55 pm
Posts: 775
Location: Texas, USA
majkinetor wrote:
Jballi wrote:
One additional idiosyncrasy. The color value returned is sometimes correct but usually it's not.

Hm? I can't reproduce this. 2nd sample at the end of the documentation works for me for each color.

I originally wrote this bug report on Apr 21, 2007 and the problem was fixed on Apr 23, 2007. On, Sep 11, 2009, a Guest poster just copied what I wrote. I did not re-report the problem. To be fair, I don't have any scripts that use the Color function but I assume the fixed function is still fixed.

Thanks for your help.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 31st, 2009, 6:19 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Ok, thx for clarification. I thought the bug is somehow hunging there for a long time but I didn't notice it somehow.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2010, 8:08 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Hi maj,

How do I use Dlg_Open() to select a folder? Is it feasible or should I use FileSelectFolder?

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2010, 9:21 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Its not feasible. BrowseForFolder system dialog can opet both files and folders ((BIF_BROWSEINCLUDEFILES flag) while Dlg_Open could so only if you select file inside the folder

Wrapper for system function isn't hard to make if you need better customization.


See this for more details:
http://msdn.microsoft.com/en-us/library/bb762115

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 22nd, 2010, 5:32 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
majkinetor wrote:
Wrapper for system function isn't hard to make if you need better customization.
Maybe for you. For me it is always hard to get started, specially since it requires structs.

What I read on that web page is that it requires COM to be started. I didn't read any further. Too much for me. For the time being I use FileSelectFolder. If you ever implement this SHBrowseForFolder I'll be happy to use it, though. :)

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 157 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: infogulch, notsoobvious, Uberi and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group