Search found 5 matches

by SB1992
21 Sep 2019, 19:36
Forum: Ask For Help
Topic: Swap Key elements of Object Topic is solved
Replies: 6
Views: 515

Re: Swap Key elements of Object Topic is solved

If anyone else reads this and is interested, the code I just used to obtain index works. Additionally, it is needed to make the Swap function suggested by Dman work. This is because "t" and "u" need to be the indexes of the colours to swap. test := ["Red","Blue","Green"] Swap(test,1,3) ;<==test will...
by SB1992
21 Sep 2019, 19:06
Forum: Ask For Help
Topic: ImageSearch Persistent ErrorCode=2 Topic is solved
Replies: 2
Views: 391

Re: ImageSearch Persistent ErrorCode=2 Topic is solved

Thank you for making clear this issue! As Height (the max pixel) is at the bottom of my screen I need to subtract from Height to look higher.
by SB1992
21 Sep 2019, 18:55
Forum: Ask For Help
Topic: Swap Key elements of Object Topic is solved
Replies: 6
Views: 515

Re: Swap Key elements of Object Topic is solved

Thank you Dman for the solution and Lexi for the information that I am missing on what everything is. This is exactly what I intended so I am glad it can be made so much simpler. However, I would also like to obtain an index, 1, 2, or 3 for "Red", "Blue" or "Green". Previously I had used GetIndex(co...
by SB1992
21 Sep 2019, 14:06
Forum: Ask For Help
Topic: Swap Key elements of Object Topic is solved
Replies: 6
Views: 515

Swap Key elements of Object Topic is solved

Hello! I am trying to define a function that swaps two elements of a list. The list is defined globally (I think) at the start of the script. From ToolTip it does not seem that it is working at all; although I also can't figure out how to examine the list elements. I think that I could do this more ...
by SB1992
19 Sep 2019, 21:46
Forum: Ask For Help
Topic: ImageSearch Persistent ErrorCode=2 Topic is solved
Replies: 2
Views: 391

ImageSearch Persistent ErrorCode=2 Topic is solved

Hello everyone! New to AutoHotkey and I cannot figure out what I am doing wrong here. From the ToolTip it is clear that I have 4 numbers that should work for Image Search, but the ErrorLevel is always 2. MouseX:=non MouseY:=non TopLeftX:=non TopLeftY:=non BottomRightX:=non BottomRightY:=non #Persist...

Go to advanced search