Search found 370 matches

by rommmcek
17 Sep 2018, 11:21
Forum: Ask For Help
Topic: How to replace a value in a array? Topic is solved
Replies: 4
Views: 73

Re: How to replace a value in a array? Topic is solved

I think you are doing right. Just add return to close autoexecute section. Var:="111,222,333" SplitArray := StrSplit(Var, ",") msgbox % splitArray[2] return NumpadAdd:: SplitArray[2] := "777" MsgBox % SplitArray[2] var:="" for k, l in SplitArray var.=(k=SplitA...
by rommmcek
09 Sep 2018, 14:04
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 88
Views: 3595

Re: GUI: piano keyboard

No need to be sorry! I'm happy with unconventional "bug fix" I made and even if memory leakage is real (have no knowledge to confirm that), I think for normal usage its neglectable.
Thanks for your valuable contribution!

bye!
by rommmcek
07 Sep 2018, 19:43
Forum: Ask For Help
Topic: Help: Adding 2 separate keys
Replies: 1
Views: 100

Re: Help: Adding 2 separate keys

Seems to me the simplest solution: #NoEnv #singleInstance, Force #MaxThreadsPerHotkey, 2 SetBatchLines, -1 DetectHiddenWindows, On CoordMode, Mouse, Screen CoordMode, Pixel, Screen CoordMode, Tooltip, Screen SetTitleMatchMode, 2 SetKeyDelay, 30,50 SetMouseDelay 10 SendMode Event key2send = a ;<-- ch...
by rommmcek
06 Sep 2018, 18:27
Forum: Scripts and Functions
Topic: Drag&Drop example PDF2TXT
Replies: 4
Views: 248

Re: PDF2TXT

@SOTE: Try this file.
If Pdf contains pure image as a text, it cannot be converted to .txt with Sumatra. You would need OCR!
by rommmcek
06 Sep 2018, 00:04
Forum: Ask For Help
Topic: Loop all files and remove bracketed text
Replies: 5
Views: 82

Re: Loop all files and remove bracketed text

Commas (quotations) are legal for the sake of white spaces in file name, I believe. But it turns out, that for some characters e.g. ampersand (probably brackets too), don't work.
Edit: Legal for passing a variable/parameter to CMD!!!
by rommmcek
05 Sep 2018, 23:15
Forum: Ask For Help
Topic: Loop all files and remove bracketed text
Replies: 5
Views: 82

Re: Loop all files and remove bracketed text

Your code works too, with a little bug fix:

Code: [Select all]GeSHi © Codebox Plus

Loop, Files, *.srt
{
SplitPath, A_LoopFileName,,,,finalname
FileRead, var, % A_LoopFileName
new_var := RegExReplace(var, "\[(.*?)\]")
FileAppend, %new_var%, %A_WorkingDir%\%finalname%.txt
}
by rommmcek
05 Sep 2018, 22:51
Forum: Ask For Help
Topic: Loop all files and remove bracketed text
Replies: 5
Views: 82

Re: Loop all files and remove bracketed text

Try this:

Code: [Select all]GeSHi © Codebox Plus

FileList:=""
Loop, Files, *.srt
FileList = %FileList%%A_LoopFileName%`n
Loop, parse, FileList, `n
{
FileRead, var, % A_LoopField
new_var := RegExReplace(var, "\[(.*?)\]")
FileAppend, %new_var%, %A_WorkingDir%\%A_LoopField%.txt
}
by rommmcek
04 Sep 2018, 05:21
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 88
Views: 3595

Re: GUI: piano keyboard

- The only problem I have with Hero is the old one: It corrupts my OS when using "Show hints on keys" & "Show preview when switching layouts". - Disabling the DllCall for LoadKeyboardLayout seemingly cured the problem. (later I noticed it only mitigates it) - Logical next ste...
by rommmcek
04 Sep 2018, 02:42
Forum: Ask For Help
Topic: pixel range problem
Replies: 3
Views: 80

Re: pixel range problem

How much black/dark items do you want? Just uncomment "limit the allowed brightness" and you'll get black and only one (the darkest) shade of gray: 0x010101 - providing you correct my typo to: (colorA<=0x010101). This is the limit you set in your code above. If you want to allow more shade...
by rommmcek
03 Sep 2018, 18:27
Forum: Ask For Help
Topic: pixel range problem
Replies: 3
Views: 80

Re: pixel range problem

Color is pure Black, Gray or White if its components (RGB) are equal.
So try:

Code: [Select all]GeSHi © Codebox Plus

if ((colorA>>16)=(colorA>>8&0xff))&&((colorA>>16)=(colorA&0xff)) ;&&(colorA<0x010101) ; limit the allowed brightness
msgbox, a shade of black
by rommmcek
01 Sep 2018, 08:15
Forum: Scripts and Functions
Topic: [Game] Bulldozer
Replies: 46
Views: 2872

Re: [Game] Bulldozer

Great work continues! Don't have much time to play (currently at level 29 - btw.: I love "Automatically load last played level"), cause it's addictive. I did some tests though, here are my suggestions: In my opinion you don't need to set midi volume every time you play the sound. Once afte...
by rommmcek
25 Aug 2018, 18:00
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 88
Views: 3595

Re: GUI: piano keyboard

That UIntP was rubbish!, it just disables DllCall.
Now I'm running the Hero w/o If statement.
by rommmcek
24 Aug 2018, 20:24
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 88
Views: 3595

Re: GUI: piano keyboard

Hi! if !HKL := DllCall("user32\LoadKeyboardLayout" AW ; This DllCall() seems to be the culprit , "Str", KLID , "UIntP", 0x80 ; KLF_NOTELLSHELL ; Type UInt seems to be wrong, UIntP or UInt* look better , "Ptr") HKL := currHKL P.s.: This might look like I became...
by rommmcek
11 Aug 2018, 06:39
Forum: Scripts and Functions
Topic: [Game] AHK Klondike Solitaire
Replies: 18
Views: 821

Re: [Game] AHK Klondike Solitaire

Awesome work! It seems you implanted a bug in 2.0. I had a lot of problems with that jack (didn't fit nowhere, looks like it is a king). Solved it any way with new feature of yours (any card). P.s.: When picking up a stack, I think, you should disable a mouse until the stuck is "loaded" to...
by rommmcek
26 Jul 2018, 18:52
Forum: Scripts and Functions
Topic: Old scripts: Alarm Timer. Stopper. Quick Notes. Snipping Tool.
Replies: 33
Views: 1641

Re: Old scripts: Alarm Timer. Stopper. Quick Notes. Snipping Tool.

Hi!
There is a bug! (Run Quick Notes, Click Settings icon, Close Settings window by clicking red X on right top, Click Settings icon again)
bye!
by rommmcek
09 Jul 2018, 07:56
Forum: Ask For Help
Topic: How to paste value to this box?
Replies: 5
Views: 142

Re: How to paste value to this box?

What's the version of your IE? Should be 11! The line 4 is actually redundant, should be working without it too! In line 5 remove the word "try" and see if you get error! You can try to change PWB_Get function: Static msg := DllCall("RegisterWindowMessage", "str", "...
by rommmcek
09 Jul 2018, 00:48
Forum: Ask For Help
Topic: How to paste value to this box?
Replies: 5
Views: 142

Re: How to paste value to this box?

Open Box.html in IE, then run PasteValue.ahk.
by rommmcek
08 Jul 2018, 12:16
Forum: Ask For Help
Topic: How to paste value to this box?
Replies: 5
Views: 142

Re: How to paste value to this box?

For IE try: #NoEnv WinActivate, ahk_class IEFrame WinWaitActive, ahk_class IEFrame WinGetTitle, WinTitle, ahk_class IEFrame try wb:=pwb_Get(WinTitle, 1) wb.document.querySelector("input").value:="10" return PWB_Get(WinTitle="A", Svr#=1) ; Jethrow - http://www.autohotkey...
by rommmcek
07 Jul 2018, 17:56
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 88
Views: 3595

Re: GUI: piano keyboard

Found out (I hope), why Klavier Player 2010_U_Grease_Glissando_sequence.ahk didn't work on x32 Ahk (Thanks jeeswg for hint) R2 - was found completely unusable and I think it was not very elegant! Now is a bit better. R3 - was not difficult to improve. (Bi-glissando is integrated - when pressing Ctrl...
by rommmcek
30 Jun 2018, 06:10
Forum: Ask For Help
Topic: How to find value in associative array Topic is solved
Replies: 12
Views: 241

Re: How to find value in associative array Topic is solved

I might be wrong but:

Code: [Select all]GeSHi © Codebox Plus

if IsObject(Tree_Array)
MsgBox Assignement is O.K.
else MsgBox Assignement seems to be false
doesn't give good result for your assignement.

Go to advanced search