Search found 43 matches

by Off Topic
26 Apr 2018, 21:42
Forum: Ask For Help
Topic: I want to scan a given region for the 6 most common colors
Replies: 9
Views: 401

Re: I want to scan a given region for the 6 most common colors

Hey guys, thank you for all the replies and examples! I didn't expect this much and feel I'm going to need a few days to digest all of it, but I appreciate all the code given and have already tinkered with each. I'm going to try to get each to work and come at you individually for questions. For a b...
by Off Topic
25 Apr 2018, 01:49
Forum: Ask For Help
Topic: I want to scan a given region for the 6 most common colors
Replies: 9
Views: 401

I want to scan a given region for the 6 most common colors

And a given region from a mouse click and drag, but I'm not sure how the scanning part and comparing colors would be best done. I figure that I would need to loop through a grid whose dimensions are based on the width and height of the clickdrag and PixelGetColor each, then add distinct colors to a ...
by Off Topic
23 Apr 2018, 21:44
Forum: Ask For Help
Topic: Storing distinct colors during a click and drag
Replies: 1
Views: 56

Re: Storing distinct colors during a click and drag

Whoops, I realized I was comparing the wrong variables: WhileHolding: dragXstart := (vCurX - originX) dragYstart := (vCurY - originY) PixelGetColor, newColor, vCurX, vCurY, RGB If (newColor != originColor) { If (colorScan = "Done") Return ++errCount If (errCount > 5) { errCount = 0 If ((ne...
by Off Topic
23 Apr 2018, 21:27
Forum: Ask For Help
Topic: Storing distinct colors during a click and drag
Replies: 1
Views: 56

Storing distinct colors during a click and drag

Hey guys, I'd like to be able to easily pick up colors from vector palettes like this one by dragging over them while holding a mouse button: ScanTest.png I thought this would be easy but I'm having trouble with it, and keep getting the same color spammed despite a few different ways of trying. My c...
by Off Topic
22 Apr 2018, 14:16
Forum: Ask For Help
Topic: How do I switch between sets of hotkeys using Hotkey, If according to a variable's contents? Topic is solved
Replies: 2
Views: 72

Re: How do I switch between sets of hotkeys using Hotkey, If according to a variable's contents? Topic is solved

Code works perfectly, thanks so much! I had a bit more done on my end but your method was far better. if the extension is shown somewhere in the title, you could SetTitleMatchMode, RegEx , whip up a regex to match and replace the Hotkey, If 's with that That's exactly what I was trying to do! Earlie...
by Off Topic
22 Apr 2018, 10:45
Forum: Ask For Help
Topic: How do I switch between sets of hotkeys using Hotkey, If according to a variable's contents? Topic is solved
Replies: 2
Views: 72

How do I switch between sets of hotkeys using Hotkey, If according to a variable's contents? Topic is solved

Hi guys, I have different sets of Hotkeys that I'd like to use for Atom. Problem is that I have three viewport panels inside Atom (for separate HTML, CSS, and JS) at any given time, and I know that I can easily use InStr() to determine which one of those I'm working with, but I'm having a lot of tro...
by Off Topic
19 Feb 2018, 00:41
Forum: Ask For Help
Topic: Problem where Edit controls in a program are jumping around and trying to RegExMatch the correct ones
Replies: 3
Views: 127

Re: Problem where Edit controls in a program are jumping around and trying to RegExMatch the correct ones

- The key facts are: how many Edit controls are there, and are their physical positions (relative to the top-left corner) constant, or do they move about. Hey jeeswg, thanks for the help yet another time, I got AccViewer running and it's very helpful, I'll use it. The total number of Edit controls ...
by Off Topic
18 Feb 2018, 14:50
Forum: Ask For Help
Topic: Problem where Edit controls in a program are jumping around and trying to RegExMatch the correct ones
Replies: 3
Views: 127

Problem where Edit controls in a program are jumping around and trying to RegExMatch the correct ones

Hi guys. I have this problem in Adobe Illustrator where certain edit controls that I want the information of (like x and y coordinates, width and height parameters) will jump around depending on what tool is active or what's currently selected (if a rectangle, if text, if multiple objects, etc). So ...
by Off Topic
07 Feb 2018, 19:39
Forum: Ask For Help
Topic: Getting a script to stay off. On a toggle.
Replies: 3
Views: 130

Re: Getting a script to stay off. On a toggle.

Another handy trick -- you can also use PostMessage to directly interact with scripts: PostMessage, 0x111, 65307,,, NewAutoHotkeyScript.ahk - AutoHotkey It doesn't require the script directory, just replace "NewAutoHotkeyScript.ahk" with the name (and .ahk suffix) of the script needed. Any...
by Off Topic
06 Feb 2018, 02:26
Forum: Ask For Help
Topic: Image Following mouse
Replies: 9
Views: 248

Re: Image Following mouse

I've been wanting to try something like this, my DPI scaling (144) is throwing things off somewhere though: https://i.imgur.com/adkOOsz.gif More pictures in here There are inherent graphical problems because I use transparency for the fading foreground, it has a camouflaged background that can show ...
by Off Topic
05 Feb 2018, 16:20
Forum: Tips and Tricks
Topic: [GUI] Use HTML and CSS for your GUIs!
Replies: 107
Views: 45242

Re: [GUI] Use HTML and CSS for your GUIs!

Hey Joe, this thread is great -- I'm new to coding and have been eagerly learning my way towards this direction. Is it possible to also implement GSAP with this method? The ability to easily tween and ease would make a world of difference for the kind of GUI animation I'm after.
by Off Topic
05 Feb 2018, 14:46
Forum: Ask For Help
Topic: Image Following mouse
Replies: 9
Views: 248

Re: Image Following mouse

Hi Matt, I'm at work right now but I love creating graphical scripts and will definitely help you by the end of the night if no one else has yet. Are you sure you want the image to follow your cursor? It might obscure the view (unless it fades in and out per click, possible to do).
by Off Topic
31 Jan 2018, 20:16
Forum: Ask For Help
Topic: Having trouble with this graphical mouse gesture flyout GUI
Replies: 9
Views: 376

Re: Having trouble with this graphical mouse gesture flyout GUI

- Some code to remove listview borders: ;handy code ;; This is very handy indeed, thanks! ControlGetFocus, vCtlClassNN, A MouseGetPos, vCurX, vCurY, hWnd, vCtlClassNN [/code] - Btw if you did manage to fix the massive script, do post it, so that I can use WinMerge on it, to see what you changed. - ...
by Off Topic
25 Jan 2018, 10:27
Forum: Ask For Help
Topic: Any Ideas Anyone?
Replies: 3
Views: 153

Re: Any Ideas Anyone?

Hi pootler, you could change CoordMode from Window (relative) to Screen (absolute) so the origin of the coordinates will not shift or change according to the active window. You could also take screenshots of the buttons themselves and use ImageSearch so no coordinates would be needed, but I'd also r...
by Off Topic
23 Jan 2018, 16:16
Forum: About This Community
Topic: Got AHK and Pulover's MC promoted on an Adobe channel
Replies: 2
Views: 253

Got AHK and Pulover's MC promoted on an Adobe channel

Happened about a month and a half ago, from 2:40 to 3:40: https://www.youtube.com/watch?v=Qx9X0i61hgs I didn't say anything at the time because I'd only been using AHK for about a week and was embarrassed by that, and I didn't expect him to use that demo video or think ahead about giving him pointer...
by Off Topic
23 Jan 2018, 13:45
Forum: Ask For Help
Topic: Having trouble with this graphical mouse gesture flyout GUI
Replies: 9
Views: 376

Re: Having trouble with this graphical mouse gesture flyout GUI

Wow jeeswg, I love this script -- I'd been wanting to do something very similar to this and it's really impressive to see how it's being written here. Thank you very much! Admittedly I don't understand everything (though I do understand more than I expected to, I have trouble visualizing for loops w...
by Off Topic
21 Jan 2018, 18:19
Forum: Ask For Help
Topic: Having trouble with this graphical mouse gesture flyout GUI
Replies: 9
Views: 376

Re: Having trouble with this graphical mouse gesture flyout GUI

- I had a look at it, but it was very complicated, and thus difficult to follow. - The code looks like it could probably be greatly simplified, e.g. wherever code repeats, try to make that into a function. - I would recommend writing a really simple example script, and trying to get that working. -...
by Off Topic
21 Jan 2018, 14:56
Forum: Ask For Help
Topic: Having trouble with this graphical mouse gesture flyout GUI
Replies: 9
Views: 376

Re: Having trouble with this graphical mouse gesture flyout GUI

Bump again. :offtopic: I'm still stuck with this same issue, I posted it on reddit as well and had u/radiantcabbage comment the following: the logic in your highlight function is a problem, this needlessly evaluates alot of conditions that aren't likely to be relevant every time your script calls it...
by Off Topic
19 Jan 2018, 00:47
Forum: Ask For Help
Topic: Having trouble with this graphical mouse gesture flyout GUI
Replies: 9
Views: 376

Re: Having trouble with this graphical mouse gesture flyout GUI

https://i.imgur.com/6usEZCl.gif Bump. I think part of this might be a redrawing error inside my code somewhere, so I've now taken out a lot of the manual refreshing, rearranged and added things, have looked it over and didn't change the North1on situation but it now works for the adjacent controls....
by Off Topic
18 Jan 2018, 13:22
Forum: Ask For Help
Topic: Having trouble with this graphical mouse gesture flyout GUI
Replies: 9
Views: 376

Having trouble with this graphical mouse gesture flyout GUI

Hi all. So I've been wanting to create a graphical mouse gesture menu in the vein of SolidWorks' radial flyout menu and certain HUDs in video games: https://i.imgur.com/HS4u4VK.png In this initial build, I got everything to work pretty well. It's responsive and quick, the gui reads the mouse hovers ...

Go to advanced search