AutoHotkey Community

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 417 posts ]  Go to page Previous  1 ... 24, 25, 26, 27, 28
Author Message
 Post subject:
PostPosted: December 15th, 2011, 9:47 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
Bump. Just passed 50 AHK submissions


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 18th, 2011, 1:43 pm 
Does http://rosettacode.org/wiki/Rosetta_Cod ... AutoHotkey still work, I get an empty Gui?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2011, 3:08 am 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
Anonymous wrote:
Does http://rosettacode.org/wiki/Rosetta_Cod ... AutoHotkey still work, I get an empty Gui?
So do I... probably needs a regEx tweak...
Unfortunately, that solution was posted by a user named Wolf, who last used RosettaCode on June 2, 2010. You might as well recreate the solution from scratch :?

Edit: further digging found that the person is Wolf_II on AHK forums... he was last active June 20, 2010. Probably out of luck in contacting him, but you can try.

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2011, 1:22 pm 
Offline

Joined: February 5th, 2007, 12:19 pm
Posts: 192
Location: Osnabrück, Germany
Maybe someone want to use this short version without GUI:
Code:
UrlDownloadToFile, *0 http://www.rosettacode.org/mw/index.php?title=Special:Categories&limit=5000, LanguageList_Html.txt
FileRead, txt, LanguageList_Html.txt
Loop, Parse, txt, `n, `r
{
    If InStr(A_LoopField,"title=""Category:") {
        LookFor = title=\"Category:(.+?)"
        RegExMatch(A_LoopField, LookFor, Name)
        RegExMatch(A_LoopField, "(\d*)\smember", Count)
        LanguageList .= Count1 " - " Name1 "`r`n"
    }
}
LanguageList:=RegExReplace(LanguageList,"<[^>]+>","")
Sort, LanguageList, RN
msgbox, % LanguageList

Works with Basic, AHK_L and V2(until now).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2011, 3:16 am 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
Doesn't work for me at all :(
I get a blank msgbox.

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 24th, 2011, 11:38 am 
Offline

Joined: February 5th, 2007, 12:19 pm
Posts: 192
Location: Osnabrück, Germany
http://www.rosettacode.org isn't accessible at the moment.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 24th, 2011, 11:50 am 
Offline

Joined: February 5th, 2007, 12:19 pm
Posts: 192
Location: Osnabrück, Germany
Here is the downloaded website: LanguageList_Html.txt
You only need to save it in the scriptdirectory and comment the first line of the script.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 24th, 2011, 5:44 pm 
Offline
User avatar

Joined: November 2nd, 2008, 4:23 pm
Posts: 2906
Location: 127.0.0.1
haichen wrote:
http://www.rosettacode.org isn't accessible at the moment.
No, they just messed up their redirects. Try without the 'www'.


http://www.rosettacode.org - bad
http://rosettacode.org/ - good

_________________
aboutscriptappsscripts
Any code ⇈ above ⇈ requires AutoHotkey_L to run


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 25th, 2011, 12:17 am 
Offline

Joined: November 17th, 2011, 6:04 pm
Posts: 392
Huh that's surprising for me, why is C++ on place 16? Thought it's a programmer language which is used for everything... :O?
Quote:

1. 520 - Tcl
3. 479 - Python
4. 460 - J
5. 426 - Ruby
7. 401 - PureBasic
11. 366 - Java
13. 357 - Perl
14. 327 - AutoHotkey
16. 321 - C++


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 25th, 2011, 4:47 am 
Offline
User avatar

Joined: September 5th, 2009, 2:06 pm
Posts: 1718
Location: Somewhere near you
Hmm maybe that's just a score to reflect users submission for each language

_________________
Image
The quick onyx goblin jumps over the lazy dwarf


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2011, 11:35 pm 
Offline

Joined: December 26th, 2010, 7:40 pm
Posts: 4172
Location: Awesometown, USA
http://rosettacode.org/wiki/Array_conca ... AutoHotkey needs to be updated for AutoHotkey_L.

_________________
Autofire, AutoClick, Toggle, SpamWindow Control Tools
Recommended: AutoHotkey_L


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 11th, 2012, 6:07 pm 
Offline

Joined: December 18th, 2010, 3:26 pm
Posts: 35
Personal take on the Caesar cipher, even though it's been done.
This one has decryption, so it may be useful for those who want it.

Code:
Caesar(Encdec, Text, Num) ; Encdec = 1 to encode, -1 to decode.
{
   Loop Parse, Text
   {
      If (Asc(A_LoopField) >= Asc("A") and Asc(A_LoopField) <= Asc("Z"))
         Out .= Chr((Mod(Asc(A_LoopField) + Num * Encdec + 26 - Asc("A"), 26)) + Asc("A"))
      Else If (Asc(A_LoopField) >= Asc("a") and Asc(A_LoopField) <= Asc("z"))
         Out .= Chr((Mod(Asc(A_LoopField) + Num * Encdec + 26 - Asc("a"), 26)) + Asc("a"))
      Else  Out .= A_LoopField
   }
   Return Out
}

Msgbox, % Caesar(1, "a", 1) ; b
Msgbox, % Caesar(-1, "b", 1) ; a


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 417 posts ]  Go to page Previous  1 ... 24, 25, 26, 27, 28

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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:
cron
Powered by phpBB® Forum Software © phpBB Group