AutoHotkey Community

It is currently May 27th, 2012, 7:35 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: May 27th, 2006, 2:03 pm 
Hi All:

AHK is a fantastic tool. I have just started off on it and wrote this script.

Purpose: Closes the Evaluation version Nagbox if you include it in your start-up script.


Notes:
Press Win-i to show the tray icon and close the script if the infinite loop works in an unpredicted manner.
You could also adjust the sleep value in the commented out line if the Winzip window is not the active one.

Comments/Improvements/Suggestions welcome.

Thanks,
Levin

Code:
#SingleInstance force
#NoTrayIcon

ContinuousLoop:
Winwait ahk_class #32770
WinGetTitle, activeTitle
WinGetText, activeText, %activeTitle%

Loop parse, activeText, `n`&`:%A_space%
{
   If A_Index = 10
      var_10=%A_LoopField%
}
IfInString, var_10, Archives
{
   Winactivate activeTitle
   ;sleep 500
   Send !v{Enter}!e{Enter}!v
}
Gosub, ContinuousLoop

#i::
Menu, Tray, Icon
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2006, 2:35 pm 
Offline

Joined: May 27th, 2006, 2:33 pm
Posts: 1
A slightly more robust version:

[code]
#SingleInstance force
#NoTrayIcon

ContinuousLoop:
WinWait ahk_class #32770
WinGetTitle, activeTitle
WinGetText, activeText, %activeTitle%

Loop parse, activeText, `n
{
If A_Index = 4
var_4=%A_LoopField%
}
IfInString, var_4, Total Archives Opened
{
Winactivate activeTitle
;sleep 500
Send !v{Enter}!e{Enter}!v
}
Gosub, ContinuousLoop

#i::
Menu, Tray, Icon
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2006, 8:11 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Instead of using a shareware that you don't want to pay, why not use a freeware which is as powerful as WinZip, but really free?
For example, 7-Zip or IZArc - the latest having an interface close of WinZip.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2006, 9:41 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
I recommend ExtractNow. It handles almost every compression format including zip, rar and iso. It's very small (<1mb), works super fast and has a clean minimalistic interface.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 28th, 2006, 12:20 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2545
Titan wrote:
I recommend ExtractNow. It handles almost every compression format including zip, rar and iso. It's very small (<1mb), works super fast and has a clean minimalistic interface.

Really :shock: ? Tools other than WinRAR still exist :?: :!: ... Why? ... :P :P


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 28th, 2006, 1:18 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
corrupt wrote:
Really :shock: ? Tools other than WinRAR still exist :?: :!: ... Why? ... :P :P

Eeew I hate WinRAR, it's hideous. I prefer zips to rars anyway.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 28th, 2006, 10:15 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
corrupt wrote:
Really :shock: ? Tools other than WinRAR still exist :?: :!: ... Why? ... :P :P
Because people don't know there is a better, cheaper (free!) alternative? (I saw sharewares to rename files!) Because they prefer brand products to cheaper alternatives? Matter of habit?
Hey, maybe even they are better in some fields! :-) But for my needs, the free tools are more than enough, and their use is fully legal. ;-)

@Titan: I took a look, seems interesting, but judging from the page (so partial info), it won't fit my needs. It seems it doesn't support bz2, it doesn't allow to just view a content or extract just one file, nor it allows to compress data. Well, if you just need to quickly extract compressed data, it seems good.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 6th, 2006, 4:06 am 
Offline

Joined: January 3rd, 2006, 2:36 am
Posts: 19
Hi everybody
I'm just recomending a archive manager called TUGZip. It's free, small, and can read more file types than WinZip :D

_________________
http://lekremyelsew.googlepages.com/


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 6th, 2006, 11:32 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2545
Titan wrote:
corrupt wrote:
Really :shock: ? Tools other than WinRAR still exist :?: :!: ... Why? ... :P :P

Eeew I hate WinRAR, it's hideous. I prefer zips to rars anyway.
In case you weren't aware, WinRAR can read and write .zip format. I rarely use .rar format actually unless I need to split the output into smaller pieces.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 6th, 2006, 11:35 pm 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2545
lekremyelsew wrote:
Hi everybody
I'm just recomending a archive manager called TUGZip. It's free, small, and can read more file types than WinZip :D

Thanks. I'll have a look :) . TUGZip


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 7th, 2006, 12:50 am 
Offline

Joined: June 8th, 2006, 2:41 am
Posts: 285
alzip & zipgenius r both free n really better than winzip


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: nothing, Yahoo [Bot] and 10 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