Search found 13 matches

by hopit
02 Jun 2018, 13:40
Forum: Ask for Help (v1)
Topic: How best to read in text file and store in array
Replies: 6
Views: 10658

Re: How best to read in text file and store in array

yea... I already figured that out and forgot to delete my post... For some reason I was thinking that deleting the % oText.MaxIndex() would loop it forever. Then after I had asked that question I realized that im an idiot and just enclosed that loop field inside another loop field...
by hopit
31 May 2018, 22:21
Forum: Ask for Help (v1)
Topic: How best to read in text file and store in array
Replies: 6
Views: 10658

Re: How best to read in text file and store in array

FileRead, Text, MyFile.txt oText := StrSplit(Text, "#") Loop, % oText.MaxIndex() MsgBox, % oText[A_Index] Actually, that will split anywhere it finds a #, but that gives you a start. ok I know this is from 2016 and I shouldn't revive dead posts... but how would you get it to loop indefinitely (goin...
by hopit
29 May 2018, 15:08
Forum: Ask for Help (v1)
Topic: Hotstring random capitalization or every other letter?
Replies: 1
Views: 1135

Hotstring random capitalization or every other letter?

https://autohotkey.com/board/topic/3931 ... ck-toggle/

This is fun and all but the blinking caps lock button is a tad bit anoying :D

Would it be possible to use hotstrings to random caps stuff as it is typed?
by hopit
26 May 2018, 15:22
Forum: Ask for Help (v1)
Topic: :*:]a::, :*:]b::, :*:c]::, ect. , without it counting as a hotkey. (Duplicate Hotkey Issue)
Replies: 6
Views: 1386

Re: :*:]a::, :*:]b::, :*:c]::, ect. , without it counting as a hotkey. (Duplicate Hotkey Issue)

Perhaps you mean something like this: Gui, new, +alwaysontop Gui, Add, Button, gSub1, Button 1 Gui, Add, Button, gSub2, Button 2 Gui, Show, x200 y200 w200 h200 Return sub1: sub2: toggle := A_thisLabel ; depending on the button that was pressed, the variable toggle gets a different value ;msgbox % t...
by hopit
26 May 2018, 14:34
Forum: Ask for Help (v1)
Topic: :*:]a::, :*:]b::, :*:c]::, ect. , without it counting as a hotkey. (Duplicate Hotkey Issue)
Replies: 6
Views: 1386

Re: :*:]a::, :*:]b::, :*:c]::, ect. , without it counting as a hotkey. (Duplicate Hotkey Issue)

I am afraid that this snippet doesn't clear much up. I still see no GUI buttons anywhere. I guess that there might be more problems in the rest of the code. But there seem to be structural problems in your script - trying to define hotstrings in a loop or in a subroutine doesn't make sense and will...
by hopit
26 May 2018, 13:54
Forum: Ask for Help (v1)
Topic: :*:]a::, :*:]b::, :*:c]::, ect. , without it counting as a hotkey. (Duplicate Hotkey Issue)
Replies: 6
Views: 1386

Re: :*:]a::, :*:]b::, :*:c]::, ect. , without it counting as a hotkey. (Duplicate Hotkey Issue)

Please show your current code to illustrate the problem and describe the outcome you want to achieve referring to your actual code. This will usually speed up the problem solving process. It is not clear to me which "gui button actions" you refer to in this context. Btw, what you are showing in the...
by hopit
26 May 2018, 13:29
Forum: Ask for Help (v1)
Topic: :*:]a::, :*:]b::, :*:c]::, ect. , without it counting as a hotkey. (Duplicate Hotkey Issue)
Replies: 6
Views: 1386

:*:]a::, :*:]b::, :*:c]::, ect. , without it counting as a hotkey. (Duplicate Hotkey Issue)

I am making a script to type messages to my team faster in a particular game so that I can just push a letter and have it auto type the message. [Note I would prefer to use ControlSend if possible or some other option that locks it to the game window]. However i need some keys to have multiple optio...
by hopit
20 May 2018, 13:19
Forum: General Discussion
Topic: Discussions about Autohotkey Livechat / Autohotkey IRC
Replies: 18
Views: 15016

Re: Discussions about Autohotkey Livechat / Autohotkey IRC

Is the discord invite link valid? I could just be banned tbh I cant rember :D
by hopit
20 May 2018, 12:58
Forum: Ask for Help (v1)
Topic: Locking an ahk script to a discord window.
Replies: 1
Views: 3597

Locking an ahk script to a discord window.

[note for people about to start typeing a thing about how selfbots are evil and make jesus cry: #1 its not for a spam bot its actually a fast delete bot, #2 This may be against the discord TOS but I don't see how it hurts anyone and anyway.] Sorry for the first part I tried asking on the discord red...
by hopit
20 May 2018, 12:36
Forum: Ask for Help (v1)
Topic: How could you select an area on the screen then save the starting and ending corner coordinates as variables
Replies: 2
Views: 1086

Re: How could you select an area on the screen then save the starting and ending corner coordinates as variables

This thread may be relevant: selection rectangle: use mouse to select screen region - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=5&t=42810&p=194400#p194400 And further references to the same script: WinMove for window resize is "flickery" - AutoHotkey Community https://autoh...
by hopit
19 May 2018, 20:43
Forum: Ask for Help (v1)
Topic: How could you select an area on the screen then save the starting and ending corner coordinates as variables
Replies: 2
Views: 1086

How could you select an area on the screen then save the starting and ending corner coordinates as variables

I need to be able to select a region of screen preferably just like selecting a group of folders on a windows desktop (nice blue selection window) and then save the x1,y1|x2,y2 coordinates it gets as a variable.
by hopit
18 May 2018, 16:08
Forum: Ask for Help (v1)
Topic: PixelSearch with variables issues. Topic is solved
Replies: 3
Views: 1487

Re: PixelSearch with variables issues. Topic is solved

Nope still not working not sure why I am using https://www.humanbenchmark.com/tests/reactiontime/ to test the speed and it wont click at all. No msgbox comes up either. Not sure what the issue is ive tried almost everything.
by hopit
18 May 2018, 15:00
Forum: Ask for Help (v1)
Topic: PixelSearch with variables issues. Topic is solved
Replies: 3
Views: 1487

PixelSearch with variables issues. Topic is solved

Tolerance = 10 ColorID = *~$q:: while (GetKeyState("q")) { sleep 1 MouseGetPos, MouseX, MouseY PixelSearch, OutputVarX, OutputVarY, (MouseX-2), (MouseY-2), (MouseX+2), (MouseY+2), 0x6ADB4B , %Tolerance%, Fast RGB if ErrorLevel = 0 { send {LButton} } } Already asked on the reddit AHK forum https://w...

Go to advanced search