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 

Pre-1.0.15 Changes

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements
View previous topic :: View next topic  
Author Message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Fri Jun 18, 2004 2:47 am    Post subject: Pre-1.0.15 Changes Reply with quote

Fixed the Progress command so that a window will be created even if no options are specified.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Fri Jun 18, 2004 10:46 am    Post subject: Reply with quote

Is it possible to make progress bar remove the spacing between the title bar & progress bar if the main text is not provided?

by the way any specific reason for the format requiring subtext before main text?

here's a script that shows a progress bar showing progress when the script is reading a text file. Smile

Code:

file = E:\stuff\clock.htm

Progress, w250h55,, %file%, Reading...


FileGetSize, size, %File%
loop, read, %file%
{
        StringLen, len, A_LoopReadLine
        ifequal, len, 0, setenv, len, 1
        len += 1.0
        len /= %size%
        len *= 100
        total += %len%
        Progress, %total%
}
Progress, 100

Sleep, 100

_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Fri Jun 18, 2004 12:48 pm    Post subject: Reply with quote

Quote:
Is it possible to make progress bar remove the spacing between the title bar & progress bar if the main text is not provided?

That's a good idea, thanks.

Quote:
by the way any specific reason for the format requiring subtext before main text?

The text elements are in reverse order because the bottom ones are more frequently used than the top ones, i.e. the subtext in a typical operation would change more often than the main text (which might even stay constant the whole time).
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Fri Jun 18, 2004 12:58 pm    Post subject: Reply with quote

I forgot to mention that bars make good volume indicators too. I'm using one for mine.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Fri Jun 18, 2004 6:42 pm    Post subject: Reply with quote

Quote:
I forgot to mention that bars make good volume indicators too. I'm using one for mine.


nice idea!
_________________
Back to top
View user's profile Send private message
twwilliams



Joined: 24 May 2004
Posts: 23
Location: Bellevue, WA USA

PostPosted: Sat Jun 19, 2004 7:41 pm    Post subject: Reply with quote

cmallett wrote:
I forgot to mention that bars make good volume indicators too. I'm using one for mine.


How are you controlling the volume in AutoHotKey? I'm curious to see how you might be doing that because that's something I was thinking of putting together. Right now, to toggle muting, I run control mmsys.cpl,,0, wait for the window to appear, then Alt-M to toggle mute and Enter to accept the change and close the window. This is something I wrote in AutoIt2 and have had around for a while.

But I would love to be able to control the volume and/or muting without popping up the control panel.
_________________
Tommy
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Sat Jun 19, 2004 7:53 pm    Post subject: Reply with quote

there are these commands too
SoundGet, SoundSet, SoundGetWaveVolume, SoundSetWaveVolume
_________________
Back to top
View user's profile Send private message
twwilliams



Joined: 24 May 2004
Posts: 23
Location: Bellevue, WA USA

PostPosted: Sat Jun 19, 2004 11:44 pm    Post subject: Reply with quote

Well, what do you know. I had no idea that AHK had that built in. Thanks for pointing it out.
_________________
Tommy
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Sun Jun 20, 2004 2:14 am    Post subject: Reply with quote

More changes have been applied to the Installer at http://www.autohotkey.com/download (I couldn't help working more on the Progress command, it's addicting):

Improved the Progress command with new options:
- Automatic window height (if unspecified).
- Specify font name and size.
- Specify bar thickness and color.
- Better control over margins and layout. [thanks Rajat]
- Have just a naked progress bar with no window visible around it.
- Omit the bar entirely to use the window to present text in a chosen font/size (makes a good replacement for SplashText).

Improved SplashTextOn and Progress so that their windows are not hidden when the main window is minimized.

Improved FileGetTime and FileGetSize so that they work on files that are in use, and so that they don't change the file's last access time.
Back to top
View user's profile Send private message Send e-mail
beardboy



Joined: 02 Mar 2004
Posts: 444
Location: SLC, Utah

PostPosted: Sun Jun 20, 2004 3:00 am    Post subject: Reply with quote

Progress bars are sweet. Very nice font features. Great job as always.

thanks,
beardboy
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Beastmaster



Joined: 15 Apr 2004
Posts: 182

PostPosted: Sun Jun 20, 2004 11:24 am    Post subject: Reply with quote

twwilliams wrote:
But I would love to be able to control the volume and/or muting without popping up the control panel.


Just to provide some commandline parameters:

sndvol32.exe /s ; small
sndvol32.exe /r ; recorder
sndvol32.exe /t ; tray

... and maybe of some interest the [Mixer Browser Utility]
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Thu Jun 24, 2004 8:07 pm    Post subject: Reply with quote

More changes have been applied to the Installer at http://www.autohotkey.com/download

Fixed "Menu, MyMenu, Show" so that the menu can always be canceled by clicking outside of it. [thanks Rajat]

Relaxed the restrictions on the following commands so that they can run in their simplified parameter mode even when used in a subroutine called from their parent loop's body: RegRead/Write/Delete, FileAppend, FileGet/SetAttrib, FileGet/SetTime, FileGetSize/Version.

A compiled script can now be decompiled (if you know the password) via Exe2Ahk. [thanks Jon Bennett]

Improved and changed the Progress command:
- The ZC (bar color) option has been renamed to CB. Please change your scripts accordingly.
- Colors for font and window background can now be specified. [thanks Rajat & beardboy]
- The 16 primary HTML color names can now be optionally used in place of hexadecimal colors.
- Slightly changed the window's vertical margins: when there is no bar, its top margin is now ZYn rather than 2 times Zyn. In addition, when automatic window height is in effect, the ZYn margin is reserved at the bottom of the window, which makes the SubText look a little nicer.

Added text-to-HTML conversion via "Transform, OutputVar, HTML, Text". It translates characters whose ASCII values are above 127 to their HTML names (e.g. £ becomes &pound;). In addition, the four characters "&<> are translated to &quot;&amp;&lt;&gt;. Finally, each linefeed (`n) is translated to <br>`n
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Thu Jun 24, 2004 11:29 pm    Post subject: Reply with quote

Quote:
Added text-to-HTML conversion via "Transform


I'm working on a script for automating webpage updation check. this might be usable there. unimportant changes like visitor counters or advts won't be taken as page update in that script.
_________________
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10463

PostPosted: Fri Jun 25, 2004 3:16 pm    Post subject: Reply with quote

A small change has been applied to the Installer at http://www.autohotkey.com/download

Improved ToolTip so that more than one tooltip window can be created. [thanks Rajat]
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Fri Jun 25, 2004 3:30 pm    Post subject: Reply with quote

thanx a WHOLE LOT!!

Very Happy
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group