Search found 5104 matches

by mikeyww
22 Feb 2021, 13:49
Forum: Gaming
Topic: How to choose key from DropDownList and use it for turn on autoclicker?
Replies: 14
Views: 174

Re: How to choose key from DropDownList and use it for turn on autoclicker?

Sorry about that. Update is below. Gui, Font, s12 Gui, Add, Text,, Choose a button. Gui, Add, DropDownList, vnew gChanged, None|XButton1|XButton2 Gui, Show Return Changed: If (key > "") Hotkey, %key%, Off Gui, Submit, NoHide If (new = "None") Return Hotkey, % key := new, Start, On SoundBeep, 1500, 3...
by mikeyww
22 Feb 2021, 13:19
Forum: Ask For Help
Topic: AHK not working with software
Replies: 20
Views: 353

Re: AHK not working with software

WinWait is an infinite wait. Instead, you can add a timeout, and then display the ErrorLevel.
by mikeyww
22 Feb 2021, 13:14
Forum: Gaming
Topic: How to choose key from DropDownList and use it for turn on autoclicker?
Replies: 14
Views: 174

Re: How to choose key from DropDownList and use it for turn on autoclicker?

You say that the key is duplicated. Does this mean that you are not showing the entire script here?
by mikeyww
22 Feb 2021, 13:01
Forum: Gaming
Topic: Code Follow up before(ImageSearch) Found the image Topic is solved
Replies: 9
Views: 114

Re: Code Follow up before(ImageSearch) Found the image Topic is solved

That looks right. The Return is never reached in either case, but here, the loops will continue until the images are found.
by mikeyww
22 Feb 2021, 12:58
Forum: Ask For Help
Topic: AHK not working with software
Replies: 20
Views: 353

Re: AHK not working with software

Are you able to post the script?
by mikeyww
22 Feb 2021, 12:55
Forum: Ask For Help
Topic: i need something like a:=b:=c (set A to the value of C.) Topic is solved
Replies: 5
Views: 85

Re: i need something like a:=b:=c (set A to the value of C.) Topic is solved

Code: Select all

fruit := {a1: "apple", a2: "orange"}
fruit_type = a1
MsgBox, % fruit[fruit_type]
fruit.a1 := "pear"
MsgBox, % fruit[fruit_type]
Also:

Code: Select all

a := b := ["apple"]
b.1 := "pear"
MsgBox, % a.1
by mikeyww
22 Feb 2021, 12:48
Forum: Gaming
Topic: Code Follow up before(ImageSearch) Found the image Topic is solved
Replies: 9
Views: 114

Re: Code Follow up before(ImageSearch) Found the image Topic is solved

It looks like you are running an infinite loop. You can debug it: simplify it until you get it working. Remove non-essential lines so that you can test. Add a MsgBox statement before your Return , to see if it is executed. Add more MsgBox commands to the inner loops, so that you know whether each im...
by mikeyww
22 Feb 2021, 12:35
Forum: Ask For Help
Topic: i need something like a:=b:=c (set A to the value of C.) Topic is solved
Replies: 5
Views: 85

Re: i need something like a:=b:=c (set A to the value of C.) Topic is solved

Code: Select all

fruit := {a1: "apple", a2: "orange"}
MsgBox, % fruit.a1
Or:

Code: Select all

fruit := {a1: "apple", a2: "orange"}
fruit_type = a1
MsgBox, % fruit[fruit_type]
Explained: Arrays
by mikeyww
22 Feb 2021, 12:00
Forum: Ask For Help
Topic: IP Protection
Replies: 9
Views: 133

Re: IP Protection

I have not used Discord enough to know. Others here surely have!
by mikeyww
22 Feb 2021, 11:58
Forum: Gaming
Topic: Code Follow up before(ImageSearch) Found the image Topic is solved
Replies: 9
Views: 114

Re: Code Follow up before(ImageSearch) Found the image Topic is solved

The If command applies to the subsequent block enclosed in braces. If no block is present, then If applies only to the single line that follows it.
by mikeyww
22 Feb 2021, 11:24
Forum: Gaming
Topic: WASD Swap
Replies: 1
Views: 38

Re: WASD Swap

Code: Select all

SetTimer, Close, 600000
SoundBeep, 1500, 30
w::s
s::w
a::d
d::a
Close:
SoundBeep, 1000, 30
ExitApp
by mikeyww
22 Feb 2021, 11:21
Forum: Ask For Help
Topic: AHK not working with software
Replies: 20
Views: 353

Re: AHK not working with software

Why not try admin? You can just insert the code at the top of your script.
by mikeyww
22 Feb 2021, 10:35
Forum: Ask For Help
Topic: IP Protection
Replies: 9
Views: 133

Re: IP Protection

I don't have that info, but the forum may have examples. Perhaps others will chime in with solutions. If you search the forum for "protect", you will find related posts.
by mikeyww
22 Feb 2021, 10:19
Forum: Ask For Help
Topic: IP Protection
Replies: 9
Views: 133

Re: IP Protection

The user would run a script that provides you with that number. You would then compare the number to your list of approved numbers. The script would continue if a match is found. There are various ways to save the information: a registry key, license key file, etc. Examples of protecting scripts are...
by mikeyww
22 Feb 2021, 10:17
Forum: Ask For Help
Topic: RegExMatch - generic method to find all matches?
Replies: 9
Views: 191

Re: RegExMatch - generic method to find all matches?

OK. I guess I don't entirely understand the scenario & problem at hand. Perhaps others will know more.
by mikeyww
22 Feb 2021, 09:59
Forum: Ask For Help
Topic: RegExMatch - generic method to find all matches?
Replies: 9
Views: 191

Re: RegExMatch - generic method to find all matches?

I don't see the problem, because once you find your trigger, you can then run your loop on the subsequent line.
by mikeyww
22 Feb 2021, 09:53
Forum: Ask For Help
Topic: how can i make at 1542,411 - 1557,1024 make it not possible to click with the mouse? Topic is solved
Replies: 2
Views: 48

Re: how can i make at 1542,411 - 1557,1024 make it not possible to click with the mouse? Topic is solved

Code: Select all

#If blockPos([1542, 411], [1557, 1024])
LButton::
RButton::
MButton::
XButton1::
XButton2::SoundBeep, 1500, 30
#If

blockPos(xy1, xy2) {
 MouseGetPos, xpos, ypos
 Return xpos >= xy1.1 && xpos <= xy2.1 && ypos >= xy1.2 && ypos <= xy2.2
}

Go to advanced search