Search found 17009 matches

by boiler
Today, 11:39
Forum: Ask for Help (v1)
Topic: Shifting Only Start Position Each Loop
Replies: 3
Views: 186

Re: Shifting Only Start Position Each Loop

In case it's not clear why this line would cause an error, a space is needed before the semicolon for it to be seen as a comment: MouseClick, L, 1464, (604 + ((A_Index - 1) * 50); Select task line (I want to shift this command down 50 pixels after each loop) Like this: MouseClick, L, 1464, (604 + ((...
by boiler
Today, 10:51
Forum: Ask for Help (v2)
Topic: A problem of using calling V1's libs in V2
Replies: 7
Views: 300

Re: A problem of using calling V1's libs in V2

In my view, if the reason for using DP's code instead of viv's is because DP said it's a better approach, but DP's code doesn't work anymore, it's not better. I would just continue to use viv's code.
by boiler
Today, 09:36
Forum: Ask for Help (v2)
Topic: WinGetTitle Looping Error
Replies: 3
Views: 128

Re: WinGetTitle Looping Error

Getting the title and then using that is an extra step that only adds ambiguity because then it opens it up to other windows that may also match (or partially match) the title. Just specify the active window directly as the WinTitle parameter without getting its title: if InStr(WinGetText("A"), "Shi...
by boiler
Today, 08:12
Forum: Ask for Help (v2)
Topic: WinGetTitle Looping Error
Replies: 3
Views: 128

Re: WinGetTitle Looping Error

if WinExist("ahk_exe PharmAssist.exe") ;check if window is active (or does this just check if its running though not necessarily active?) It only checks to see if the window exists, hence the name. You want to use WinActive instead of WinExist to determine whether it's active. By the way, you're in...
by boiler
Today, 08:02
Forum: Ask for Help (v1)
Topic: GetKeyState("CapsLock", "P") stopped working
Replies: 3
Views: 261

Re: GetKeyState("CapsLock", "P") stopped working

Because you're not specifying what you are looking for. CapsLock is one of the keys that has a toggle state. If you want to know its physical state instead of its toggle state, then you need to specify that. The following returns 1:

Code: Select all

CapsLock::MsgBox, % GetKeyState("CapsLock", "P")
by boiler
Today, 05:01
Forum: Ask for Help (v2)
Topic: A problem of using calling V1's libs in V2
Replies: 7
Views: 300

Re: A problem of using calling V1's libs in V2

Do you have a copy of the AutoHotkey.dll file in your script directory?
by boiler
Today, 03:10
Forum: Ask for Help (v1)
Topic: Profiles Within Applications
Replies: 2
Views: 263

Re: Profiles Within Applications

I don’t understand how these two lines would make sense: ProfileName := "Second" ToolTip, % ProfileName[Profile] The first line assigns a string to ProfileName, and the second line treats ProfileName as if it were an array object. It would make sense if you assigned a string to Profile, and somewher...
by boiler
Today, 03:06
Forum: Ask for Help (v2)
Topic: A problem of using calling V1's libs in V2
Replies: 7
Views: 300

Re: A problem of using calling V1's libs in V2

What is the reason for removing this.?
by boiler
Today, 02:55
Forum: Ask for Help (v1)
Topic: Dock.ahk No Longer Working?
Replies: 2
Views: 214

Re: Dock.ahk No Longer Working?

I have never used it, but it seems you are using the syntax for calling the function that is based on an older, different version than the one you show in your post, which clearly has a different syntax in its examples. It says your call should be structured like this: Dock(WinExist(), "x(0,0,0) y(0...
by boiler
Today, 02:20
Forum: Ask for Help (v2)
Topic: A problem of using calling V1's libs in V2
Replies: 7
Views: 300

Re: A problem of using calling V1's libs in V2

To address that error, replace (type_of == "Array" ? "n") with (type_of == "Array" ? "n" : "") on line 60.
by boiler
Yesterday, 06:29
Forum: Ask for Help (v1)
Topic: Pixelsearch to MIN
Replies: 3
Views: 312

Re: Pixelsearch to MIN

You can’t use Min if not all the colors were found. If any of the parameters are non-numeric (blank, in this case), it returns an empty string, per the documentation. You need to only include the numeric values, which can done by adding them to an array if they are not blank, like this: Colx := [] C...
by boiler
Yesterday, 04:02
Forum: Ask for Help (v1)
Topic: GetKeyState("CapsLock", "P") stopped working
Replies: 3
Views: 261

Re: GetKeyState("CapsLock", "P") stopped working

@krl — We keep having to disapprove duplicate posts of yours. Posts by new members (in terms of number of posts) must be approved before they appear. Please be patient and don’t post the same content again. Thank you.
by boiler
Yesterday, 03:18
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 19
Views: 1945

Re: thqby's AutoHotkey_H v2.0 & v2.1

changxiaotiao wrote: Sorry, I don't know how to reply to your private message.
While still in the “new member” status, you will not be able to send private messages.
by boiler
14 May 2024, 20:51
Forum: Ask for Help (v1)
Topic: The window doesnt fit in the screen
Replies: 1
Views: 211

Re: The window doesnt fit in the screen

@DRS -- Please put [code][/code] tags around your code when posting a script on the forum. And please ask questions in "Ask for Help" (where this thread was moved to), not in "Scripts and Functions" which is for sharing working scripts, not for getting help with scripts.
by boiler
14 May 2024, 15:26
Forum: Ask for Help (v2)
Topic: Hotkeys to switch betwen labels v2 Topic is solved
Replies: 7
Views: 360

Re: Hotkeys to switch betwen labels v2 Topic is solved

Becuase i am runing a long script and what i need is that, based in some events, go directly to a label in particular. As Seven0528 mentioned, you can do this without labels, and you should. You could what you described by having the code in a series of functions, and you just call the function tha...
by boiler
14 May 2024, 12:37
Forum: Ask for Help (v2)
Topic: Send menu item to other function?
Replies: 5
Views: 201

Re: Send menu item to other function?

#SingleInstance #Requires AutoHotkey v2+ PrinterToolMenu() PrinterToolMenu(*) { Switches := " ( /e display printing preferences /ge enum per machine printer connections /k print test page to specified printer /o display printer queue view /p display printer properties /s display server properties /...
by boiler
14 May 2024, 12:18
Forum: Ask for Help (v2)
Topic: Script wanted
Replies: 7
Views: 327

Re: Script wanted

yes i mean others cant close it . hide it from sys tray. and can i set a shortcut key to start or stop this script? thank you for your response I agree that this isn't a subject we will be discussing here. This is what could be used to create malware (no matter what your intentions are for it) -- h...
by boiler
14 May 2024, 08:48
Forum: Ask for Help (v2)
Topic: Need help with script to send keys :(
Replies: 5
Views: 260

Re: Need help with script to send keys :(

Some applications just don't respond to virtual keypresses. You could try running the script as administrator or otherwise address UAC . I'm not a gamer, but since you brought it up... I don't see the distinction between playing against the computer and other humans. If you artificially are able gai...
by boiler
14 May 2024, 08:41
Forum: Ask for Help (v2)
Topic: Script wanted
Replies: 7
Views: 327

Re: Script wanted

Can i hide or prevent this scrips from closing or can i protect is closing with password I don't know what this means. You mean so others can't close it? For what purpose? its exe is not working You probably tried to compile it with the wrong AHK binary -- v1 instead of v2. AHK file works only when...
by boiler
14 May 2024, 07:24
Forum: Ask for Help (v2)
Topic: Cant figure out how to make coordmode work at all Topic is solved
Replies: 3
Views: 172

Re: Cant figure out how to make coordmode work at all Topic is solved

In v2, expressions are used throughout. In expressions, literal strings must be quoted. If you don't use quotes, it thinks you are trying to use variables named Mouse and Screen.

Go to advanced search