Search found 50 matches

by RaptorX
Yesterday, 16:36
Forum: Ask For Help
Topic: Minimized Window
Replies: 5
Views: 155

Re: Minimized Window

It is possible, and it is done often using GDI+. There is an AHK library of these functions: tic's GDI+ standard library . You capture a bmp of the window in question even if it's behind another window and use Gdip_GetPixel to find the color at a particular location. Correct, I should've clarified ...
by RaptorX
Yesterday, 14:22
Forum: Ask For Help
Topic: Minimized Window
Replies: 5
Views: 155

Re: Minimized Window

No. That's not possible. This is found in the documentation. Remarks The pixel must be visible; in other words, it is not possible to retrieve the pixel color of a window hidden behind another window. All functions that search for images behave similarly. My suggestion is to place the window where y...
by RaptorX
30 Mar 2020, 15:13
Forum: Ask For Help
Topic: W10 Gui MonthCal Width?
Replies: 2
Views: 133

Re: W10 Gui MonthCal Width?

you should try with WinMove to change the size.

also take a look at SetTitleMatchMode for certain cases.
by RaptorX
30 Mar 2020, 15:00
Forum: Ask For Help
Topic: Peculiar behavior from WinExist and WinTitle - help me understand.
Replies: 3
Views: 114

Re: Peculiar behavior from WinExist and WinTitle - help me understand.

remember that in mode 1 the title must start with your text. you should use mode 2 in this case. 1: A window's title must start with the specified WinTitle to be a match. 2: A window's title can contain WinTitle anywhere inside it to be a match. so you MUST use SetTitleMatchMode for your script to w...
by RaptorX
30 Mar 2020, 14:55
Forum: Ask For Help
Topic: add a minus as first character in the line of text if it is not a minus already Topic is solved
Replies: 13
Views: 243

Re: add a minus as first character in the line of text if it is not a minus already Topic is solved

if you dont use parentheses the quotes are going to cause issues. Again, I suggest you use the parentheses whenever possible.
by RaptorX
30 Mar 2020, 14:42
Forum: Ask For Help
Topic: add a minus as first character in the line of text if it is not a minus already Topic is solved
Replies: 13
Views: 243

Re: add a minus as first character in the line of text if it is not a minus already Topic is solved

boiler wrote:
30 Mar 2020, 14:28
RaptorX wrote:
30 Mar 2020, 14:12
great minds think alike! :P
:thumbup:
I mean you even thought about using a hotkey and you used the same as me! :lol:
by RaptorX
30 Mar 2020, 14:34
Forum: Ask For Help
Topic: Minimized Window
Replies: 5
Views: 155

Re: Minimized Window

you should change how ahk detects certain windows.

take a look at DetectHiddenWindows
by RaptorX
30 Mar 2020, 14:24
Forum: Ask For Help
Topic: add a minus as first character in the line of text if it is not a minus already Topic is solved
Replies: 13
Views: 243

Re: add a minus as first character in the line of text if it is not a minus already Topic is solved

the parentheses force an expression. notice how you had to use %% in your variable naes, while he didnt. Also notice that he had to use " " and you didnt.

it helps for readability of the code, specially when using many variables. Is a good habit.
by RaptorX
30 Mar 2020, 14:20
Forum: Ask For Help
Topic: Play sound through Mic instead of default device
Replies: 2
Views: 78

Re: Play sound through Mic instead of default device

I think thats imposible, since michrophones cant play sounds.

please give us more details as to what you want to achieve.
by RaptorX
30 Mar 2020, 14:12
Forum: Ask For Help
Topic: add a minus as first character in the line of text if it is not a minus already Topic is solved
Replies: 13
Views: 243

Re: add a minus as first character in the line of text if it is not a minus already Topic is solved

There are some syntax issues and it seems the logic is backwards for what you want to achieve (changed to != ). You also didn't have a trigger, which I added with a F1 hotkey and changed it to use an #If directive. SetTitleMatchMode, 2 #If WinActive("ahk_exe PSPad.exe") F1:: clipboard := "" Send {H...
by RaptorX
30 Mar 2020, 14:09
Forum: Ask For Help
Topic: add a minus as first character in the line of text if it is not a minus already Topic is solved
Replies: 13
Views: 243

Re: add a minus as first character in the line of text if it is not a minus already Topic is solved

Hi! I am trying to see if the first character in the line of text in a text editor is a minus "-". If it is, I want to proceed. If it isn't I want to insert minus "-" as the first character in the text line. The problem is, my code (see below) works if I check for any letter or digit instead of a m...
by RaptorX
30 Mar 2020, 13:53
Forum: Ask For Help
Topic: Newbie If/Then question
Replies: 9
Views: 203

Re: Newbie If/Then question

Im not OP.

Im not sure how his variables are named. Im trying to warn him that his variables should be named in a specific way for your example to work.
by RaptorX
30 Mar 2020, 13:47
Forum: Ask For Help
Topic: manipulating gui coordinate system
Replies: 1
Views: 50

Re: manipulating gui coordinate system

You cant modify how the GUI command works but you can definitely create a function that does exactly what you are proposing.
by RaptorX
30 Mar 2020, 13:31
Forum: Ask For Help
Topic: Newbie If/Then question
Replies: 9
Views: 203

Re: Newbie If/Then question

The only problem now would be the variable names. For our examples to work the var names must be the same with a secuence number. e.g. var1, var2, var3, var4...
by RaptorX
28 Mar 2020, 16:49
Forum: Ask For Help
Topic: Is it possible to make image search and match to press a key but with 15ish different keys
Replies: 21
Views: 491

Re: Is it possible to make image search and match to press a key but with 15ish different keys

now what can i do to have two images trigger the same key this is exciting :D Simply add the key to the variable list... For example: keys := "1|1|1|2|3|4|5|6|7|8|9|0" If you do this, the key 1 would be pressed for the first 3 images on the set. Just add the key to the position you want it to be pr...
by RaptorX
26 Mar 2020, 17:17
Forum: Ask For Help
Topic: Looking for work-around for Windows 10 context menu bug
Replies: 22
Views: 494

Re: Looking for work-around for Windows 10 context menu bug

Yes sorry... Thats what I meant. The dividers, not empty spaces.
by RaptorX
26 Mar 2020, 07:11
Forum: Ask For Help
Topic: Is it possible to make image search and match to press a key but with 15ish different keys
Replies: 21
Views: 491

Re: Is it possible to make image search and match to press a key but with 15ish different keys

Do you have any control as to how to name the image files?

Regarding the region, you might want to use a script to get the x,y points of the places you want to search...

I will give you more info later on, as right now I'm on mobile.
by RaptorX
26 Mar 2020, 02:54
Forum: Ask For Help
Topic: Is it possible to make image search and match to press a key but with 15ish different keys
Replies: 21
Views: 491

Re: Is it possible to make image search and match to press a key but with 15ish different keys

yes, it's completely possible. if you know how to use imagesearch you could do something like this: keys = a|c|e|b|k loop parse, keys, | { ImageSearch, OutX, OutY, X1, Y1, X2, Y2, Image%a_index% ;save the images you're looking for, all with the same name but a sequence number at the end for this exa...
by RaptorX
26 Mar 2020, 02:35
Forum: Ask For Help
Topic: Looking for work-around for Windows 10 context menu bug
Replies: 22
Views: 494

Re: Looking for work-around for Windows 10 context menu bug

W10 1903 here. Can reproduce. I've noticed that your taskbar is not the default size. Maybe that's the reason why, in your case, it covers so much of your menus. Also clicking, on an empty space on the program's context menu, and then clicking outside will dismiss the menu. Now, regarding your main ...
by RaptorX
26 Mar 2020, 02:08
Forum: Ask For Help
Topic: Newbie If/Then question
Replies: 9
Views: 203

Re: Newbie If/Then question

quick question, do you have a specific number of variables to check? or its not a fixed number?

Go to advanced search