Search found 211 matches

by CyL0N
20 Dec 2018, 10:49
Forum: Ask For Help
Topic: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved
Replies: 17
Views: 2897

Re: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved

THAT, was precisely what was hoping for, and had given up on. Much, Much, Much Appreciated dude... :clap: :salute: :xmas: Test: (wow) Loop{ WinGet, hwndA, ID, A MouseGetPos, X, Y QPX(True) SplitRGBColor(DwmGetPixel(x, y, hwndA), Red, Green, Blue) ToolTip % QPX() "`n" Red "." Green "." Blue } ;this ...
by CyL0N
20 Dec 2018, 10:15
Forum: Ask For Help
Topic: AHKhttp.ahk Help with resource files Topic is solved
Replies: 3
Views: 833

Re: AHKhttp.ahk Help with resource files Topic is solved

Yea, I had this issue too,...surprisingly simple solution: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability....
by CyL0N
20 Dec 2018, 08:38
Forum: Ask For Help
Topic: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved
Replies: 17
Views: 2897

Re: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved

what again is ur goal here? if u seek to speed up a single pixel retrieval, ure better off just using PixelGetColor , it wont get any faster than that if u seek to speed up multiple consecutive pixel retrievals, ure better off just using PixelGetColor for small n . Once the multiple PixelGetColor c...
by CyL0N
20 Dec 2018, 07:34
Forum: Ask For Help
Topic: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved
Replies: 17
Views: 2897

Re: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved

how is this dll wrapped function any different to what PixelGetColor does natively already I've edited my post to signify it offer's no benefits apart from insignificant performance gains... Though @justme's solution has it's kinks it's a viable workaround for PixelGetColor to the extent of my inte...
by CyL0N
20 Dec 2018, 01:53
Forum: Ask For Help
Topic: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved
Replies: 17
Views: 2897

Re: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved

@just me, never mind the function... It seems the DllCall used screen coords & i failed to notice...hence why i thought it gave wrong values... Cheers. This Dll wrap,works but doesn't improve on the performance of built in PixelGetColor , So IGNORE THIS POST. My Bad. MsgBox % QPXF(5, "GetPixelColor...
by CyL0N
19 Dec 2018, 19:20
Forum: Ask For Help
Topic: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved
Replies: 17
Views: 2897

Re: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved

bench: #NoEnv #SingleInstance Force SetBatchLines -1 #Include Gdip_All.ahk pToken := Gdip_Startup() x := y := 0 for each, Res in [[640, 480] , [1024, 576] , [1152, 648] , [1280, 720] , [1366, 768] , [1600, 900] , [1920, 1080]] { w := Res[1] h := Res[2] results .= bench(Func("bitblit"), "bitblit", x...
by CyL0N
19 Dec 2018, 11:37
Forum: Ask For Help
Topic: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved
Replies: 17
Views: 2897

Re: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved

just me wrote:
19 Dec 2018, 05:56
:dance: Beautiful stuff. Thanks much dude. :salute: Merry Christmas :xmas:

Could you possibly wrap up a separate PixelGetColor dll function(with verbose commentary), my attempts seem to produce bad output,making a silly mistake somewhere...
by CyL0N
19 Dec 2018, 00:06
Forum: Ask For Help
Topic: Looking for mute/unmute computer script
Replies: 4
Views: 2889

Re: Looking for mute/unmute computer script

This Should Be In Ask For Help... But, F2::SoundSet, +1, , mute ; Toggle the master mute (set it to the opposite state) While someone is researching that I also have a sound question.....I am new to AHK but have managed to script SoundSet commands to raise and lower my computer volume.....what I can...
by CyL0N
18 Dec 2018, 23:52
Forum: Scripts and Functions
Topic: GetMouseGesture() - as simple as mouse gestures can get! [updated]
Replies: 14
Views: 5281

Re: GetMouseGesture() - as simple as mouse gestures can get! [updated]

This is really awesome. Very comfortable. I just didn't know how to use RButton. If you do not have a defined Gesture but the contex menu can be opened at that time. But the contex menu opens every time I try. I'm glad you like it... Here's how you would use RButton, when you CLICK RButton, it' wil...
by CyL0N
18 Dec 2018, 23:30
Forum: Ask For Help
Topic: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved
Replies: 17
Views: 2897

Re: Function Worked Fine(70ms per call), Every Call Now Requires Over 50 Seconds !?! Topic is solved

Maybe something minor? did you check playback speed? I've tracked the changes to Desktop Composition as being the culprit. I'm now looking for workarounds... It seems every PixelGetColor function in the forums I've tested runs absurdly slower with Desktop Composition enabled.... I have no idea why...
by CyL0N
18 Dec 2018, 23:04
Forum: Ask For Help
Topic: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved
Replies: 17
Views: 2897

Re: Function Worked Fine(70ms per call), Every Call Now Requires Over 50 Seconds !?! Topic is solved

what has changed between "when it used to work just fine" and now? repeated PixelGetColor() calls have always been slow for me on win10 Used to work seamlessly in realtime, ~700ms per call WITHOUT SetBatchLines -1 , now it averages 60seconds per call. I either made an idiotic mistake,which is unlik...
by CyL0N
18 Dec 2018, 01:27
Forum: Ask For Help
Topic: Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved
Replies: 17
Views: 2897

Desktop Composition Slowing PixelGetColor Function From 70ms To 50sec. Any Workaround? Topic is solved

So i tracked the source of catastrophic decline in the original topic, DESKTOP COMPOSITION, which i normally disable. With Desktop Composition Disabled,My Usual Choice. 0.000057 0.066316 With Desktop Composition Enabled 0.023350 50.509178 I' would very much line to know if there is a work around? As...
by CyL0N
18 Dec 2018, 01:03
Forum: Scripts and Functions
Topic: RunDependent()
Replies: 2
Views: 1013

Re: RunDependent()

iseahound wrote:
17 Dec 2018, 22:05
Thanks Dude, updated my OP Accordingly.
by CyL0N
17 Dec 2018, 15:04
Forum: Scripts and Functions
Topic: [AHK v2 64-bit] Compile C to memory using TCC
Replies: 8
Views: 5568

Re: [AHK v2 64-bit] Compile C to memory using TCC

Dope stuff, a good enough reason to finally get on with v2. I've been putting it off for too long. Thanks dude.
by CyL0N
17 Dec 2018, 13:27
Forum: Scripts and Functions
Topic: RunDependent()
Replies: 2
Views: 1013

RunDependent()

A wrapper for the Run command,when script exits, all child processes, that were run by script are terminated as well,regardless of how the script is terminated.... Intended as a garbage collector for script child processes. Compatible with compiled scripts. I welcome any suggestions for improvements...
by CyL0N
17 Dec 2018, 07:42
Forum: Ask For Help
Topic: Notepad++ COM?
Replies: 4
Views: 894

Re: Notepad++ COM?

I don't know if it's got COM,but i know it's got extensive support for Messages.

http://docs.notepad-plus-plus.org/index ... ifications
by CyL0N
17 Dec 2018, 07:34
Forum: Scripts and Functions
Topic: [Function] Image_TextBox
Replies: 1
Views: 879

Re: [Function] Image_TextBox

That's just a dope example dude. Thanks, I never knew i needed this until now.... :salute: :cookie:
by CyL0N
17 Dec 2018, 02:31
Forum: Ask For Help
Topic: Lex' Mouse Gestures ... link download and help with wheeldown/up
Replies: 3
Views: 622

Re: Lex' Mouse Gestures ... link download and help with wheeldown/up

It does work, you just have to press your gesture key, move the mouse to activate gestures(make sure you see the blue gesture lines) and then wheel up/down should work...
by CyL0N
17 Dec 2018, 01:46
Forum: Scripts and Functions
Topic: Text Handling - Split a sentence into several small ones [WordWrapper]
Replies: 11
Views: 2173

Re: Text Handling - Split a sentence into several small ones.

Wordwrap then... I use this one, it's rather simple & works perfectly... https://www.rosettacode.org/wiki/Word_wrap#AutoHotkey Although,i don't quiet understand the need to split a sentence to a specific number of lines instead of a maximum character width ,given you're dealing with a sentence... Re...
by CyL0N
16 Dec 2018, 04:51
Forum: Ask For Help
Topic: Open NEWEST file in a directory
Replies: 8
Views: 1714

Re: Open NEWEST file in a directory

I know this topic is fairly solved.... I just thought i'd add a simpler function for anyone who comes looking. MsgBox % GetNewestFile("C:") ;most recently created file MsgBox % GetNewestFile("C:", "M") ;most recently modified file GetNewestFile(path, CreatedOrModified:="c"){ Loop, %path%\* { FileGet...

Go to advanced search