Search found 61 matches

by awcrt9316
24 Apr 2020, 21:56
Forum: Ask For Help
Topic: 2d arrays Topic is solved
Replies: 1
Views: 237

2d arrays Topic is solved

I was reading the ahk documentation and it said that you could make an array of rows, and each array of rows holds in array of colums which mexes sence to me, but I didn't see any examples on how to do this. Can someone give me an example of a 2d array which stores values and are retrievable in a 4 ...
by awcrt9316
22 Apr 2020, 02:04
Forum: Ask For Help
Topic: move multiple gui's simultaneously Topic is solved
Replies: 4
Views: 360

Re: move multiple gui's simultaneously Topic is solved

update: i figured it out using id
by awcrt9316
22 Apr 2020, 00:49
Forum: Ask For Help
Topic: move multiple gui's simultaneously Topic is solved
Replies: 4
Views: 360

move multiple gui's simultaneously Topic is solved

I am trying to move 2 or more gui's at the same time. When I run the script, the first gui (gui 1) follows my mouse while the second gui stands still. When I click on the second gui, it moves along with my mouse and the first gui. How can I make it so that I do not have to click the second gui (and ...
by awcrt9316
21 Apr 2020, 23:34
Forum: Ask For Help
Topic: backgroundtrans not working Topic is solved
Replies: 1
Views: 174

Re: backgroundtrans not working Topic is solved

lol found my problem. needed to add picture before showing gui

#singleinstance, force
gui, -caption
Gui +LastFound +AlwaysOnTop +ToolWindow

gui, add, picture,BackgroundTrans,cursor.png
Gui, Color, 32A852


gui, show, w50 h50,gui
WinSet, transcolor, 32A852,gui










return

esc::
exitapp
by awcrt9316
21 Apr 2020, 23:29
Forum: Ask For Help
Topic: backgroundtrans not working Topic is solved
Replies: 1
Views: 174

backgroundtrans not working Topic is solved

A similar script of mine that used background trans to make sure the image in my gui did not have a white background but remaied transparent was able to remove the background, but for some reason, this one does not have a transparent background, but has a grey background on the outside of the image....
by awcrt9316
20 Apr 2020, 01:34
Forum: Ask For Help
Topic: autohotkey associative arrays
Replies: 3
Views: 242

autohotkey associative arrays

i have about 30 associative arrays like this banana:= {1:"green", 2:"red", 3:"blue", 4:"purple", 5:"pink", 6:"orangish"} apple:= {1:"yummy", 2:"delicious", 3:"green", 4:"blue", 5:"purple", 6:"orangish"} is it possible to make a script that will read a text file in the format of this below or somethi...
by awcrt9316
18 Apr 2020, 22:12
Forum: Tutorials
Topic: Learn Autohotkey
Replies: 20
Views: 18143

Re: Learn Autohotkey

check out this youtube channel if you want to learn about autohotkey https://www.youtube.com/channel/UC1whm96lNHjKTu1lAiZMQAg/videos?disable_polymer=1

it is by bilis coder
by awcrt9316
12 Apr 2020, 00:49
Forum: Ask For Help
Topic: Regexmatch Topic is solved
Replies: 3
Views: 260

Regexmatch Topic is solved

I don't know much about regular expressions and i was wondering if anyone could help me store the letter/number i want to be found in a variable. var := "c7" msgbox, % RegExMatch(var, O)[a-h]) , OutputVar, StartingPosition := 1 ; i want to recieve the value "c" stored in a variable somewhere msgbox,...
by awcrt9316
09 Apr 2020, 15:30
Forum: Ask For Help
Topic: if not between help Topic is solved
Replies: 1
Views: 213

if not between help Topic is solved

I am wondering if there is a way to say if a or b is not between something, then... I know how to do this by using an or statement but i am wondering if there is a simpler way a := 0 b := 5 if (a or b) not between 1 and 8 msgbox, not between i know this works though a := 0 b := 5 if (a not between 1...
by awcrt9316
08 Apr 2020, 14:01
Forum: Ask For Help
Topic: looping through arrays Topic is solved
Replies: 2
Views: 227

Re: looping through arrays Topic is solved

@swagfag thx for your help!
by awcrt9316
08 Apr 2020, 13:36
Forum: Ask For Help
Topic: looping through arrays Topic is solved
Replies: 2
Views: 227

looping through arrays Topic is solved

I would like to be able to be able to retrive an array through array.red.1 or array.red.3. I can do this right now, but i am not sure if this is the most "profesisonal" way to do it. I basically just found out this works by trying out random stuff. I would also be able to loop through it and have a ...
by awcrt9316
07 Apr 2020, 19:54
Forum: Ask For Help
Topic: arrays help Topic is solved
Replies: 1
Views: 170

arrays help Topic is solved

Code: Select all

array := []
		
Array.InsertAt(1, 50, 5000, 20)
Array.InsertAt(2, 10, 50, 500)
		
		
		
msgbox, % array.2 ; prints 10

how to i loop through to also print the values 50 and 500?
by awcrt9316
07 Apr 2020, 16:03
Forum: Ask For Help
Topic: array help Topic is solved
Replies: 4
Views: 253

Re: array help Topic is solved

that helps a lot, thanks!
by awcrt9316
07 Apr 2020, 15:58
Forum: Ask For Help
Topic: array help Topic is solved
Replies: 4
Views: 253

Re: array help Topic is solved

@teadrinker What does the v and k do in the script?
by awcrt9316
07 Apr 2020, 15:36
Forum: Ask For Help
Topic: array help Topic is solved
Replies: 4
Views: 253

array help Topic is solved

i am trying to make an array that holds 64 items. The items represent an 8 by 8 chart, numbered a-h in the x direction, and 1-8 in the y direction. ex: a1, a2, a3, a4... b1, b2, b3, b4 up to b8 and so on. How do i use multi dimentional arrays to accomplish this? my codewithout multidimentional array...
by awcrt9316
04 Apr 2020, 17:20
Forum: Ask For Help
Topic: regexmatch help Topic is solved
Replies: 3
Views: 306

Re: regexmatch help Topic is solved

thx for your help!
by awcrt9316
04 Apr 2020, 16:24
Forum: Ask For Help
Topic: regexmatch help Topic is solved
Replies: 3
Views: 306

regexmatch help Topic is solved

I am trying to figure out how to recognize if there is a number at the end of a word :headwall: I've used regex before but never quite understood it fully (i am new to ahk) if regexmatch(apple + [1-9]) ; if detect a specific word plus a number 1-9 var:= apple ; make var equal to the word without the...
by awcrt9316
04 Apr 2020, 13:31
Forum: Ask For Help
Topic: passing an array into a function? Topic is solved
Replies: 2
Views: 384

passing an array into a function? Topic is solved

I need some way to pass an array to a function. Does anyone know how to do that? c := a7 array := {} array["red"] := "a7" array["orange"] := "a6" array["blue"] := "a5" green:= 1 purple:=0 movementdetector(green, purple, c) movementdetector(a, b, c) { if (a = 1)&&(b = 0) { for index, element in array...
by awcrt9316
31 Mar 2020, 22:40
Forum: Ask For Help
Topic: how to loop through an associative array Topic is solved
Replies: 2
Views: 459

Re: Topic is solved

@boiler
thank you! that helps a lot. I didn't know you could do that with associative arrays before.
by awcrt9316
31 Mar 2020, 21:20
Forum: Ask For Help
Topic: how to loop through an associative array Topic is solved
Replies: 2
Views: 459

how to loop through an associative array Topic is solved

I am trying to make a script that holds x and y values of 16 objects. It would help a lot to do this with assiciative arrays, and be able to loop through them. Does anyone know how to loop through an associative array, and check if the x value of one object equals another variable. Also if the code ...

Go to advanced search