Search found 27147 matches
- Today, 06:06
- Forum: Ask for Help (v2)
- Topic: Why color is not displayed correctly?
- Replies: 2
- Views: 78
Re: Why color is not displayed correctly?
Hello, Although you can omit an optional parameter in your function call, you cannot omit the comma that marks its place. This is explained in the documentation as follows. It is not possible to have optional parameters isolated in the middle of the parameter list. In other words, all parameters tha...
- Yesterday, 22:29
- Forum: Ask for Help (v2)
- Topic: Script to draw a tiny circle
- Replies: 3
- Views: 224
Re: Script to draw a tiny circle
I would look at the AddProgress line where the x and y values are specified.
- Yesterday, 20:35
- Forum: Ask for Help (v2)
- Topic: Script to draw a tiny circle
- Replies: 3
- Views: 224
Re: Script to draw a tiny circle
#Requires AutoHotkey v2.0 g := [] r:: { g.Push f := Gui('+AlwaysOnTop -DPIScale +LastFound -Caption') f.AddPic 'AltSubmit', 'circle.gif' WinSetTransColor f.BackColor := 'White' CoordMode('Mouse'), MouseGetPos(&x, &y), f.Show('x' x - 13 ' y' y - 6) } d:: { For f in g f.Destroy Global g := [] }
- Yesterday, 20:08
- Forum: Ask for Help (v2)
- Topic: Can I determine if the Always property has been used in SetCapsLockState? Topic is solved
- Replies: 2
- Views: 207
Re: Can I determine if the Always property has been used in SetCapsLockState? Topic is solved
I would actually recommend using the script as in your last comment, because the script "knows". That approach is direct, straightforward, and reliable.
- Yesterday, 07:11
- Forum: Gaming Help (v1)
- Topic: Script for Minecraft :)
- Replies: 7
- Views: 393
Re: Script for Minecraft :)
I have already mentioned that keys might not be sent as you expect them to be sent while a mouse button is down or held. You can test this in Notepad to see what happens. That would be a fast way to troubleshoot your script initially. How you disable the script will depend on exactly what you want t...
- Yesterday, 06:29
- Forum: Gaming Help (v1)
- Topic: Script for Minecraft :)
- Replies: 7
- Views: 393
Re: Script for Minecraft :)
You can test these things to see what happens. Add a timer, add a Send command, etc.
- Yesterday, 05:20
- Forum: Gaming Help (v1)
- Topic: Script for Minecraft :)
- Replies: 7
- Views: 393
Re: Script for Minecraft :)
While the LButton is held, I think that the X is unlikely to be triggered or to be visible (I'm not sure which). Adjust to get what you want. #Requires AutoHotkey v1.1.33.11 #MaxThreadsPerHotkey 2 SLOW := 0 ; Speed of moving mouse cursor (0=fastest, 100=slowest) p:: If !on := !on { ; Toggle off SetT...
- 14 May 2024, 20:37
- Forum: Gaming Help (v1)
- Topic: Script for Minecraft :)
- Replies: 7
- Views: 393
Re: Script for Minecraft :)
Welcome to this AutoHotkey forum! Ideas are below; adjust as needed. #Requires AutoHotkey v1.1.33.11 #MaxThreadsPerHotkey 2 SoundBeep 2500 SetKeyDelay 25, 25 SLOW := 0 p:: If on := !on { SetTimer X, 12000 Loop { SendEvent az MouseMove 15, 0, SLOW, R } } Else Reload Return X: SendEvent x Return If yo...
- 14 May 2024, 20:10
- Forum: Ask for Help (v2)
- Topic: Progress bar and (not) Sleep
- Replies: 7
- Views: 329
Re: Progress bar and (not) Sleep
Yes, the process might run before any icon appears, so you can add sleep if needed.
- 14 May 2024, 18:55
- Forum: Ask for Help (v2)
- Topic: Progress bar and (not) Sleep
- Replies: 7
- Views: 329
Re: Progress bar and (not) Sleep
You can use the MsgBox timeout option or use a GUI.
My script used ProcessWait.
My script used ProcessWait.
- 14 May 2024, 06:53
- Forum: Ask for Help (v2)
- Topic: Can the text color of a radio button be changed? Topic is solved
- Replies: 8
- Views: 367
Re: Can the text color of a radio button be changed? Topic is solved
This works and seems to demonstrate an AutoHotkey bug whereby the font must first be set to a non-default color. #Requires AutoHotkey v2.0 buttons := ['abc', 'def', 'ghi'] g := Gui(, 'Buttons') rad := [] defaultColor := 'Black' fontSize := 10 g.SetFont 's' fontSize ' c' defaultColor For radio in but...
- 13 May 2024, 22:26
- Forum: Ask for Help (v2)
- Topic: Can the text color of a radio button be changed? Topic is solved
- Replies: 8
- Views: 367
Re: Can the text color of a radio button be changed? Topic is solved
Code: Select all
#Requires AutoHotkey v2.0
g := Gui()
g.SetFont 'cRed'
g.AddRadio , 'abc'
g.SetFont 'cBlue'
g.AddRadio , 'def'
g.Show
- 13 May 2024, 18:28
- Forum: Ask for Help (v2)
- Topic: Progress bar and (not) Sleep
- Replies: 7
- Views: 329
Re: Progress bar and (not) Sleep
#Requires AutoHotkey v2.0 proc := 'Notepad.exe' SoundBeep 1500 If 'Yes' != MsgBox('Copy files?', 'Confirm', 'YNC Default2 Icon?') Return ProcessWait proc copyFiles('E:\films\*.mp4', 'D:\films') Run A_Desktop '\Run media.lnk' copyFiles(source, dest) { Static g := Gui(, 'Progress') , prog := g.AddPro...
- 13 May 2024, 17:00
- Forum: Ask for Help (v2)
- Topic: Progress bar and (not) Sleep
- Replies: 7
- Views: 329
Re: Progress bar and (not) Sleep
Welcome to this AutoHotkey forum! Perhaps: ProcessExist You could use Loop Files to copy each file. You could then adjust the progress bar to reflect the percentage of files copied. If you use Loop Files twice, you can count the files in the first loop, and copy the files in the second loop. #Requir...
- 13 May 2024, 09:04
- Forum: Ask for Help (v1)
- Topic: [ahk v1] about '::' hotkey with 'send key' Topic is solved
- Replies: 16
- Views: 1159
Re: [ahk v1] about '::' hotkey with 'send key' Topic is solved
If both work, then there is no better option. You can take your pick.
- 13 May 2024, 08:11
- Forum: Ask for Help (v1)
- Topic: FormatTime inside of Loop not working
- Replies: 2
- Views: 416
Re: FormatTime inside of Loop not working
Hello, AHK commands use literal strings unless noted otherwise. Thus, you are using localtime as a string instead of a variable. This is quickly understood by examining an :arrow: example . #Requires AutoHotkey v1.1.33.11 localTime := "20200101101010" FormatTime t1, localTime , h tt FormatTime t2, a...
- 13 May 2024, 07:49
- Forum: Ask for Help (v2)
- Topic: Make ListView selection toggle individual selection Topic is solved
- Replies: 2
- Views: 145
Re: Make ListView selection toggle individual selection Topic is solved
Hello,
Have you looked at the Checked ListView option?
Have you looked at the Checked ListView option?
- 12 May 2024, 19:29
- Forum: Ask for Help (v2)
- Topic: How to hold one key to change behavior of another key
- Replies: 2
- Views: 149
Re: How to hold one key to change behavior of another key
Welcome to this AutoHotkey forum!
Code: Select all
#Requires AutoHotkey v2.0
XButton2::XButton2
XButton2 & RButton::Click('M'), SoundBeep(1500)
- 12 May 2024, 17:14
- Forum: Ask for Help (v1)
- Topic: Need to use RegExMatch to get info. Please help.
- Replies: 2
- Views: 366
Re: Need to use RegExMatch to get info. Please help.
Hello, I am seeing 822 lines between those tags. What is the correct output that you seek? "Doesn't work" indicates nothing in particular. What does your script do? #Requires AutoHotkey v1.1.33.11 url := "https://q.stock.sohu.com/cn/002403/cwzb.shtml" haystack := URLDownloadToVar(url) needleRegEx :=...
- 12 May 2024, 13:30
- Forum: Ask for Help (v2)
- Topic: How to Send text as one string?
- Replies: 6
- Views: 432
Re: How to Send text as one string?
That is what I thought for a while, but I had an instance where I thought that the ClipWait made a difference. I might have been mistaken and defer to lexikos's expertise. If I encounter the problem again, I will post.