Search found 560 matches

by Drugwash
20 May 2018, 07:22
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 81
Views: 2654

Re: GUI: piano keyboard

Thanks for taking this further. For the moment I took a break from coding, real life requires some attention as well as other tasks such as backup, home videos conversion and so on. That Sleep you mentioned was meant to avoid accidental "touch" of an adjacent key while hovering to a far ke...
by Drugwash
19 May 2018, 06:55
Forum: About This Community
Topic: autohotkey.net up for grabs
Replies: 37
Views: 3385

Re: autohotkey.net up for grabs

I don't see the right option in the poll. I'd vote for Shoot the thieves in the head and then take back what's ours. But pay the thieves? Hell no!
by Drugwash
12 May 2018, 02:44
Forum: Scripts and Functions
Topic: Lightweight shadow text function
Replies: 5
Views: 289

Re: Lightweight shadow text function

Hehe, I took pieces of code from various scripts of mine and glued them together. DrawShadowText() comes from CueBanner - maybe you remember it, it has its own thread here. ;) Practically, DrawShadowText() does exactly the same as your script: draws the same text at different positions in different ...
by Drugwash
11 May 2018, 15:02
Forum: Scripts and Functions
Topic: Lightweight shadow text function
Replies: 5
Views: 289

Re: Lightweight shadow text function

How about DrawShadowText() ? Too complicated? ;) Have fun! #NoEnv #SingleInstance force #WinActivateForce SetTitleMatchMode, 2 SetBatchLines, -1 SetWinDelay, -1 SetControlDelay, -1 SetKeyDelay, -1, -1 SetMouseDelay, -1 ListLines, Off SetFormat, Integer, D SetWorkingDir, %A_ScriptDir% DetectHiddenWin...
by Drugwash
11 May 2018, 03:54
Forum: Ask For Help
Topic: WinMove for window resize is "flickery"
Replies: 9
Views: 308

Re: WinMove for window resize is "flickery"

Try using SetWindowPos() with different combination of flags, instead of WinMove: ; 0x4000 = SWP_ASYNCWINDOWPOS ; 0x2000 = SWP_DEFERERASE ; 0x400 = SWP_NOSENDCHANGING ; 0x200 = SWP_NOOWNERZORDER ; 0x100 = SWP_NOCOPYBITS ; 0x10 = SWP_NOACTIVATE ; 0x8 = SWP_NOREDRAW ; 0x4 = SWP_NOZORDER DllCall("...
by Drugwash
10 May 2018, 12:54
Forum: Ask For Help
Topic: GIF LZW encoder/decoder
Replies: 5
Views: 190

Re: GIF LZW encoder/decoder

Gdiplus is not suitable for (large) GIF animation, it's too slow. Granted it may work on recent, powerful machines, but on two older machines I've tested such script on it had significant lag, in one case the total lag being much higher than the frame delay (250ms lag vs 200ms delay for a 600x610 im...
by Drugwash
10 May 2018, 11:16
Forum: Offtopic
Topic: What happened to GIF?
Replies: 15
Views: 586

Re: What happened to GIF?

Thanks for the link, I found new things there. I had no idea GIF could render text until these days while searching for information. So far I don't think I have any image that contains text blocks so can't check the viewers, but either way I don't have anything else besides Imagine and FS Image View...
by Drugwash
08 May 2018, 04:25
Forum: Offtopic
Topic: What happened to GIF?
Replies: 15
Views: 586

Re: What happened to GIF?

Thank you, Sam_ , the disassembly should prove useful for analyzing whatever could possibly be wrong (or different) that makes Imagine behave erroneously. I'd be interested too in the specific tool you used for the disassembly, if it's freeware or open-source. Of course, an AHK script could do that ...
by Drugwash
07 May 2018, 10:22
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 81
Views: 2654

Re: GUI: piano keyboard

MouseGetPos must be triggered by something in order to get current position and verify against window handle. What could that something be, apart from what I mentioned in previous post? That If block should've fixed only the growing time in UpdateLayout, nothing else. But maybe that's not the issue ...
by Drugwash
07 May 2018, 01:37
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 81
Views: 2654

Re: GUI: piano keyboard

Thank you. There is a small change in 1.3.3.1 regarding glissando, I took out a Sleep in MouseMove() which restored the normal behavior. It was there in an attempt to mitigate certain unwanted notes that may get triggered when clicking and moving cursor too fast. You may have noticed that. However, ...
by Drugwash
05 May 2018, 10:57
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 81
Views: 2654

Re: GUI: piano keyboard

Thank you. Did you check if you still have all your layouts installed (in Control Panel) as usual or if new ones got installed? Apparently LayoutList() takes more and more time on each startup, just like I thought. I'm afraid this is an OS issue. What I'm doing in the script is load each layout, get...
by Drugwash
05 May 2018, 01:21
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 81
Views: 2654

Re: GUI: piano keyboard

Thank you for testing and feedback. I have no idea what triggers such huge startup time under Win10. I put those debug commands specially for catching load time for each important subroutine. Total time is useless, your guess is as good as mine. Please do perform the test with the following Debug ve...
by Drugwash
04 May 2018, 14:48
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 81
Views: 2654

Re: GUI: piano keyboard

Maybe the OS caches certain libraries (at least for a period of time) to load them faster. Not sure about the Prefetcher, it may kick in too. Don't rule out possible bugs in Win10, in my opinion that's not an OS to rely on. Additional software like antivirus may impact on performance too. Please let...
by Drugwash
04 May 2018, 09:28
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 81
Views: 2654

Re: GUI: piano keyboard

I just tested R_test_2 from the attachment above for ~15 times, and load time actually decreased from ~3600 at first launch to ~2900-3000 on subsequent launches. Only once it raised to ~4000, but after a pause and relaunch it dropped to ~2300, then back to ~2900. Memory usage (RAM and page file) aft...
by Drugwash
04 May 2018, 03:58
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 81
Views: 2654

Re: GUI: piano keyboard

If I did what you're asking the script would leak resources until the system choked. The OnExit call should've been included before the message box so that on exit all changes would be reset and all libraries would be unloaded. This system where I'm developing and testing the script has an uptime of...
by Drugwash
03 May 2018, 09:12
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 81
Views: 2654

Re: GUI: piano keyboard

This should be enough for today. If everything works correctly, next I'll try to focus on actual MIDI features. Klavier hero MOD 1.3.2.7z v1.3.2: - minor code cleanup - added small button for toggling preview window - character hints on keys are now optional And a bonus: my five tiny "nephews&q...
by Drugwash
03 May 2018, 06:12
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 81
Views: 2654

Re: GUI: piano keyboard

And thank you for testing and feedback.
That checkbox is a generic toogle. When checkbox is on and preview is hidden, on layout change it will be shown. When checkbox is off, preview will never be shown. It's by design. ;)
I could add a small button to show preview on demand.

Have a nice day! :)
by Drugwash
03 May 2018, 05:22
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 81
Views: 2654

Re: GUI: piano keyboard

KeyWait inside a WM_* function? Nah… ;) Try this version, please: Klavier hero MOD 1.3.1.7z v1.3.1: - fixed context-menu activation on hiding virtual keyboard window - virtual keyboard redraws faster now when switching layouts - preview window is now optional - preview window position and visibility...
by Drugwash
03 May 2018, 03:59
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 81
Views: 2654

Re: GUI: piano keyboard

I've just tested and indeed the destroying of the VK window is the cause. I've partly fixed it as explained above but this creates problems with changing layouts so it'll take a little more work. After that the delays will no longer be required.
by Drugwash
03 May 2018, 03:37
Forum: Ask For Help
Topic: GUI: piano keyboard
Replies: 81
Views: 2654

Re: GUI: piano keyboard

OK, I'll leave that wheel fix in until a better solution is found. Please try the following, see if the context menu issue gets improved: HideKeys(wP, lP, msg, hwnd) { Global SetFormat, Integer, H hwnd+=0 SetFormat, Integer, D If hwnd not in %hWnd2%,%hPreview% Return SendMessage, 0xA5, %wP%, %lP%,, ...

Go to advanced search