Search found 268 matches

by rommmcek
Today, 06:38
Forum: Scripts and Functions
Topic: one-loop sorting of strings by their length
Replies: 23
Views: 610

Re: one-loop sorting of strings by their length

@Hegef: As the present should be! P.s.: I postponed sorting tests because of music. (The most pleasant first!) @Jeeswg: Should be good for any music (even if it still needs some (a lot of) work)! Note, that I'm no musician, so I depend on others work. P.s.: I've been thinking about new thread, but t...
by rommmcek
Today, 06:24
Forum: Scripts and Functions
Topic: Bottles of beer on the wall... [4 lines or less challenge]
Replies: 4
Views: 170

Re: Bottles of beer on the wall... [4 lines or less challenge]

Due to this post.

Edit: For 99 Bottles... I find this should be the first line which calls Object:

Code: [Select all]GeSHi © Codebox Plus

n.ProgramChange(2, 3)
n.ControlChange(2, 7, 127)
...
I think it's more appropriate for drinkers!
Edit2: I changed my mind both songs should use the same sound!(New upload1)
by rommmcek
21 Nov 2017, 21:17
Forum: Scripts and Functions
Topic: Handling single, double, triple, quadruple... infinite key presses.
Replies: 5
Views: 192

Re: Handling single, double, triple, quadruple... infinite key presses.

Exorbitant! Specially I like this behavior: $F1:: HandleMultiplePresses("F1", "SayFight", "SayWin", "", "", "", "", "SayGo") F1(){ Send, {F1} } preserving native key response and not throwing an error for empty function ...
by rommmcek
21 Nov 2017, 20:12
Forum: Scripts and Functions
Topic: one-loop sorting of strings by their length
Replies: 23
Views: 610

Re: one-loop sorting of strings by their length

New version of test. Better display of results. Added new binary function by Hegef. Hope no new bugs! Wordlist & description in posts above. #NoEnv SetWorkingDir, %A_ScriptDir% SetBatchLines, -1 ; ################################################ FileRead, text_arr, wordslist.txt ; <==== attentio...
by rommmcek
20 Nov 2017, 17:25
Forum: Scripts and Functions
Topic: one-loop sorting of strings by their length
Replies: 23
Views: 610

Re: one-loop sorting of strings by their length

@Helgef: I was planning to supplement the tests with numbers input to show how different the results can be! And you came with such a whopper with lightning speed in the record time! (I certainly did not fathom the hole dimension of it yet!) And the prize? I'll play for you one of your favorite song...
by rommmcek
20 Nov 2017, 05:11
Forum: Scripts and Functions
Topic: [Script] KeypressOSD - Display key press on screen
Replies: 189
Views: 26917

Re: [Script] KeypressOSD - Display key press on screen

KeyPress OSD v3.50
Ahk2Exe for AutoHotkey v1.1.25.01 -- Script to EXE Converter

P.s.: You made quite a progress lately!
P.p.s.: v1.0 refers to AutoHotkey 1.0.48.05
by rommmcek
20 Nov 2017, 01:42
Forum: Scripts and Functions
Topic: [Script] KeypressOSD - Display key press on screen
Replies: 189
Views: 26917

Re: [Script] KeypressOSD - Display key press on screen

Win 10: Pretty good.
WIn XP: Sorry, v1.0 installed, but compiled version seems to work fine, except:
Exe won't download the language file on neither of the Os's.
by rommmcek
19 Nov 2017, 02:34
Forum: Scripts and Functions
Topic: one-loop sorting of strings by their length
Replies: 23
Views: 610

Re: one-loop sorting of strings by their length

@jeeswg: Consistent & systematic as ever! @Helgef: Precise as ever! Whisperingly, why I sometimes think, you are somebody else, a doppelganger? (In the most possible good meaning! Who else could be so committed & proficient? If I'm wrong this is the greatest compliment!) P.s.: I modified tes...
by rommmcek
18 Nov 2017, 11:53
Forum: Scripts and Functions
Topic: one-loop sorting of strings by their length
Replies: 23
Views: 610

Re: one-loop sorting of strings by their length

Thanks again to both, really enlightening!

P.s.: I'm still hesitating to use v2, since for me there is still a lot to learn about v1.1.
P.p.s.: I edited my ternaries in the tests & made note about last function.
by rommmcek
18 Nov 2017, 11:22
Forum: Scripts and Functions
Topic: one-loop sorting of strings by their length
Replies: 23
Views: 610

Re: one-loop sorting of strings by their length

Hi jeeswg! After posting I noticed something could be wrong with return strlen(a)-strlen(b) , but was not sure (I could have a bug in the other script). Now with your demo I think that the function shifts the same value one position down in 8 (eight) loop cycle each time the same val...
by rommmcek
18 Nov 2017, 03:49
Forum: Scripts and Functions
Topic: one-loop sorting of strings by their length
Replies: 23
Views: 610

Re: one-loop sorting of strings by their length

This is fine tuning par excellence! You are unstoppable! All three work fine: - first still a bit faster (as expected) - second using sort ca. 1/3 faster as before - last one using sort ca. 4/5 faster as before, making sort acceptable even for large instances Unbelievable! I first encountered ternar...
by rommmcek
16 Nov 2017, 23:45
Forum: Scripts and Functions
Topic: one-loop sorting of strings by their length
Replies: 23
Views: 610

Re: one-loop sorting of strings by their length

Ho, ho, very brisk and crisp respond! Not ugly at all! Essentially the same idea, but cleaner more condensed, still faster... Thanks! Especially I like witty array name "lens"! Nevertheless it inherently does double work, so your first code is still the fastest for my numbers thing! I'm no...
by rommmcek
16 Nov 2017, 16:04
Forum: Scripts and Functions
Topic: one-loop sorting of strings by their length
Replies: 23
Views: 610

Re: one-loop sorting of strings by their length

Thanks to all three of you for the great idea, finding inconsistency and fix. Interested for speed, I added four more versions: - two derived from this thread - one I used till now for large data - a beauty from another genius for short instances For testing I've used large wordlist. The fastest in ...
by rommmcek
07 Oct 2017, 21:45
Forum: Scripts and Functions
Topic: Corrupted / 0 byte file finder
Replies: 7
Views: 318

Re: Corrupted / 0 byte file finder

I just appended it to the end of your code. (AppsKey did not show menu for me in Gui2 when some lines were selected)
Besides, I find useful:

Code: [Select all]GeSHi © Codebox Plus

	~Esc::
2GuiClose:
GuiControl 1:,ProgressBar,0
GuiControl 1:,ScanningText,
...
Bye!
by rommmcek
07 Oct 2017, 12:01
Forum: Scripts and Functions
Topic: Corrupted / 0 byte file finder
Replies: 7
Views: 318

Re: Corrupted / 0 byte file finder

As a persistent keyboard user I added:

Code: [Select all]GeSHi © Codebox Plus

	AppsKey::
Gui,2: default ;Needed to delete items from list with LV_Delete
if (LV_GetCount("S") > 0) {
Click, 100, 100, 0
Menu,Menu1,Show
}
return
But I'm sure, you will find more elegant solution!
by rommmcek
07 Oct 2017, 00:07
Forum: Scripts and Functions
Topic: Corrupted / 0 byte file finder
Replies: 7
Views: 318

Re: Corrupted / 0 byte file finder

There may be a better way, but this one works for me: ifMsgBox yes { Gui,2:default ;Needed to delete items from list with LV_Delete loop, % LV_GetCount("S") { LV_GetText(LvText, LV_GetNext(-1)) LV_Delete(LV_GetNext(-1)) FileDelete, % LvText } } Of course -multi option should be removed!
by rommmcek
04 Oct 2017, 16:10
Forum: Gaming
Topic: Is something wrong with my script?
Replies: 4
Views: 124

Re: Is something wrong with my script?

This might help you: Mousemove, 5, 5,, R
P.s.: This is wrong forum!
by rommmcek
04 Oct 2017, 15:49
Forum: Ask For Help
Topic: Need a script Topic is solved
Replies: 1
Views: 55

Re: Need a script Topic is solved

Maybe something like this:

Code: [Select all]GeSHi © Codebox Plus

#NoEnv
~LButton::
Send, q
KeyWait, LButton
Send, {Click}
return
Esc::ExitApp
or you might want remove tilde.
by rommmcek
04 Oct 2017, 14:34
Forum: Ask For Help
Topic: simple script request
Replies: 1
Views: 45

Re: simple script request

This might be what you looking for:

Code: [Select all]GeSHi © Codebox Plus

#NoEnv
q::
loop,
{
Send, a
if !GetKeyState, q, "P"
break
}
return
Esc::ExitApp
by rommmcek
01 Oct 2017, 00:45
Forum: Ask For Help
Topic: Can Win + M + O + N + 1 be a shortcut?
Replies: 16
Views: 387

Re: Can Win + M + O + N + 1 be a shortcut?

In other words this one works too: new LongHotkey("# & M & 1", "mon1function") return ;;;;;;;;;;; This bit is for the Bluetooth remote control ; #InstallKeybdHook ; SC12E::Send {Down} ; SC130::Send {up} ; SC110::Send {Left} ; SC119::Send {Left} ; SC122::Send {Right} ; Thi...

Go to advanced search