Search found 2738 matches
- 15 Apr 2024, 21:20
- Forum: About This Community
- Topic: chrome blocking the main exe download
- Replies: 3
- Views: 197
Re: chrome blocking the main exe download
Chrome so dumb it tries to block ChromeDriver download lol.
- 10 Apr 2024, 02:02
- Forum: Ask for Help (v2)
- Topic: Problem converting one part of script to v2
- Replies: 8
- Views: 239
Re: Problem converting one part of script to v2
You can have it handle 1 or 2 digits by changing the regex needle:
Code: Select all
If !(dob_enter ~= "^(\d\d?\/\d\d?\/\d{4})$")
- 08 Apr 2024, 21:11
- Forum: Ask for Help (v2)
- Topic: Problem converting one part of script to v2
- Replies: 8
- Views: 239
Re: Problem converting one part of script to v2
Code: Select all
If !(dob_enter ~= "^(\d\d\/\d\d\/\d{4})$")
{
MsgBox("An invalid date of birth was entered. Please re-enter your date of birth.")
Reload()
}
HTH
- 08 Apr 2024, 01:14
- Forum: Ask for Help (v2)
- Topic: Problem converting one part of script to v2
- Replies: 8
- Views: 239
Re: Problem converting one part of script to v2
Code: Select all
if (dob_enter := "")
try: if (dob_enter = "")
Same goes for the next 2 comparisons.
HTH
- 07 Apr 2024, 20:10
- Forum: Ask for Help (v1)
- Topic: Get the monitor number that the mouse is in? Topic is solved
- Replies: 4
- Views: 205
- 07 Apr 2024, 12:42
- Forum: Gaming Help (v1)
- Topic: script for fishing in GTA 5
- Replies: 2
- Views: 132
Re: script for fishing in GTA 5
The variables used in the function CheckAndAct() are local and do not see the set variable values outside the function.
Put the word Global as the 1st line in the function and test it. If it still does not work then you need to debug the issue.
Put the word Global as the 1st line in the function and test it. If it still does not work then you need to debug the issue.
- 24 Feb 2024, 15:25
- Forum: Scripts and Functions (v1)
- Topic: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
- Replies: 668
- Views: 461280
Re: [Library] Chrome.ahk - Automate Google Chrome using native AutoHotkey. No IE!
Good afternoon I have several active windows users who have chrome running in developer mode. But I receive a link not from my active chrome, but from another user's active chrome. Is it possible to fix this somehow? Sounds like a conflict of using the same debugging port number. Example: If all us...
- 02 Feb 2024, 01:32
- Forum: Ask for Help (v1)
- Topic: need help renaming file - removing the last 21 characters of a file name Topic is solved
- Replies: 7
- Views: 488
Re: need help renaming file - removing the last 21 characters of a file name Topic is solved
Give this a try:
Code: Select all
Loop, Files, % A_ScriptDir . "\ORIG\*.pdf"
{
FileCopy, % A_LoopFileLongPath, % A_ScriptDir . "\FINAL\" . SubStr(A_LoopFileName, 1, -21)
if (ErrorLevel)
MsgBox, 4096, File Copy Error, % A_LoopFileName
}
- 19 Jan 2024, 00:28
- Forum: Ask for Help (v1)
- Topic: Multi-Line IF Statement ?
- Replies: 5
- Views: 252
Re: Multi-Line IF Statement ?
This may be more readable:
Code: Select all
if InStr("Mon|Tue|Wed", currentTime_day) and (currentTime > "14:00" and currentTime < "16:00")
{
; than do xxx
}
- 17 Jan 2024, 17:28
- Forum: Ask for Help (v1)
- Topic: need help renaming file - removing the last 21 characters of a file name Topic is solved
- Replies: 7
- Views: 488
Re: need help renaming file - removing the last 21 characters of a file name Topic is solved
Examples: Testing: FileName := "123456789_Design-Change_L-156.pdf_096c5e428bd8be79.pdf" NewFileName := SubStr(FileName, 1, StrLen(FileName) - 21) MsgBox % ">" . NewFileName . "<" Usage: Loop, Files, C:\My Folder Path\Goes Here\*.pdf { FileMove, % A_LoopFileLongPath, % SubStr(A_LoopFileLongPath, 1, S...
- 15 Jan 2024, 00:23
- Forum: Ask for Help (v1)
- Topic: Disabling tray icon double-click popups doesn't work
- Replies: 1
- Views: 195
Re: Disabling tray icon double-click popups doesn't work
A different approach:
Code: Select all
#NoEnv
#Persistent
Menu, Tray, NoStandard
Menu, Tray, Add, Exit
Menu, Tray, Default, Exit
return
Exit:
ExitApp
- 01 Jan 2024, 13:38
- Forum: Ask for Help (v1)
- Topic: MouseMove doesn't work in function() Topic is solved
- Replies: 6
- Views: 470
Re: MouseMove doesn't work in function() Topic is solved
How to pass string variables to function to make it work? Use function parameters: x1 := 640 y1 := 355 $F1::Function(x1,y1) Function(x1,y1) { BlockInput, MouseMove Send {RButton} Send {ESC} Sleep, 50 MouseMove, %x1%, %y1%, 0 Send {click} Sleep, 50 BlockInput, MouseMoveOff } or: $F1::Function(640,35...
- 30 Dec 2023, 13:44
- Forum: Gaming Help (v1)
- Topic: help Letters to Numbers
- Replies: 1
- Views: 290
Re: help Letters to Numbers
Example:
Code: Select all
#If GetKeyState("ScrollLock", "T")
q::Numpad1
w::Numpad2
e::Numpad3
a::Numpad4
s::Numpad5
d::Numpad6
z::Numpad7
x::Numpad8
c::Numpad9
#If
- 29 Dec 2023, 14:24
- Forum: Ask for Help (v1)
- Topic: AHK script not working in some application
- Replies: 2
- Views: 311
Re: AHK script not working in some application
Welcome,
If an application is running elevated and the script is not elevated sending keys to that app will not work.
You can do a quick test by running your script as admin (right click script > Run as Administrator) to elevate it and see if your script works.
If an application is running elevated and the script is not elevated sending keys to that app will not work.
You can do a quick test by running your script as admin (right click script > Run as Administrator) to elevate it and see if your script works.
- 28 Dec 2023, 21:04
- Forum: Ask for Help (v1)
- Topic: Pasting each line one by one
- Replies: 1
- Views: 144
Re: Pasting each line one by one
Example:
Code: Select all
/*
one
two
three
four
five
*/
~^c::arr := StrSplit(Clipboard, "`n", "`r")
#If (arr.Count() > 0)
^v::Send % arr.RemoveAt(1) . "`n"
#If
- 11 Dec 2023, 16:13
- Forum: Ask for Help (v1)
- Topic: Regular Expression Problem Topic is solved
- Replies: 6
- Views: 505
Re: Regular Expression Problem Topic is solved
Keep it simple: Wouldn't this cause multiple spaces where there are multiple LF? I'm not at my computer, so unable to test it. I scrolled to the far right and see them in the example now. Yes it would. You could StrReplace() the 2 spaces into one after but then might as well use RegexReplace(). It ...
- 11 Dec 2023, 13:45
- Forum: Ask for Help (v1)
- Topic: Regular Expression Problem Topic is solved
- Replies: 6
- Views: 505
Re: Regular Expression Problem Topic is solved
Keep it simple:
Click the word StrReplace in the code box to read more about it in the AHK Documentation.
Code: Select all
Log_Text := StrReplace(Text, "`n", " ")
- 07 Dec 2023, 11:52
- Forum: Ask for Help (v1)
- Topic: 0x80131700 error with Selinium on recent MMD pcs
- Replies: 1
- Views: 224
Re: 0x80131700 error with Selinium on recent MMD pcs
Check if .NET 3.5 is installed.
It is required for SeleniumBasic.
It is required for SeleniumBasic.
- 06 Dec 2023, 19:16
- Forum: Ask for Help (v1)
- Topic: ImageSearch errorLevel 2 question
- Replies: 6
- Views: 465
- 06 Dec 2023, 15:39
- Forum: Ask for Help (v1)
- Topic: ImageSearch errorLevel 2 question
- Replies: 6
- Views: 465
Re: ImageSearch errorLevel 2 question
Remove the quotes on the image filename. "