AutoHotkey Community

It is currently May 27th, 2012, 1:18 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Pre-1.0.15 Changes
PostPosted: June 18th, 2004, 2:47 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Fixed the Progress command so that a window will be created even if no options are specified.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2004, 10:46 am 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
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. :)

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

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2004, 12:48 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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).


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2004, 12:58 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I forgot to mention that bars make good volume indicators too. I'm using one for mine.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2004, 6:42 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
Quote:
I forgot to mention that bars make good volume indicators too. I'm using one for mine.


nice idea!

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2004, 7:41 pm 
Offline

Joined: May 24th, 2004, 7:45 pm
Posts: 23
Location: Bellevue, WA USA
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2004, 7:53 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
there are these commands too
SoundGet, SoundSet, SoundGetWaveVolume, SoundSetWaveVolume

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2004, 11:44 pm 
Offline

Joined: May 24th, 2004, 7:45 pm
Posts: 23
Location: Bellevue, WA USA
Well, what do you know. I had no idea that AHK had that built in. Thanks for pointing it out.

_________________
Tommy


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2004, 2:14 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2004, 3:00 am 
Offline

Joined: March 2nd, 2004, 10:10 pm
Posts: 443
Location: SLC, Utah
Progress bars are sweet. Very nice font features. Great job as always.

thanks,
beardboy


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2004, 11:24 am 
Offline

Joined: April 15th, 2004, 5:33 pm
Posts: 181
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]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 24th, 2004, 8:07 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 24th, 2004, 11:29 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
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.

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 25th, 2004, 3:16 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 25th, 2004, 3:30 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
thanx a WHOLE LOT!!

:D

_________________
Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot 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