Search found 2738 matches

by Xtra
Today, 21:20
Forum: About This Community
Topic: chrome blocking the main exe download
Replies: 2
Views: 20

Re: chrome blocking the main exe download

Chrome so dumb it tries to block ChromeDriver download lol.
by Xtra
10 Apr 2024, 02:02
Forum: Ask for Help (v2)
Topic: Problem converting one part of script to v2
Replies: 8
Views: 137

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})$")
by Xtra
08 Apr 2024, 21:11
Forum: Ask for Help (v2)
Topic: Problem converting one part of script to v2
Replies: 8
Views: 137

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()
	}
You can probably replace all the others checks with just this one.

HTH
by Xtra
08 Apr 2024, 01:14
Forum: Ask for Help (v2)
Topic: Problem converting one part of script to v2
Replies: 8
Views: 137

Re: Problem converting one part of script to v2

Code: Select all

if (dob_enter := "")
Is assigning the variable dob_enter to be blank.

try: if (dob_enter = "")

Same goes for the next 2 comparisons.

HTH
by Xtra
07 Apr 2024, 12:42
Forum: Gaming Help (v1)
Topic: script for fishing in GTA 5
Replies: 2
Views: 63

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.
by Xtra
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: 454649

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...
by Xtra
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: 437

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
}
by Xtra
19 Jan 2024, 00:28
Forum: Ask for Help (v1)
Topic: Multi-Line IF Statement ?
Replies: 5
Views: 213

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
}
by Xtra
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: 437

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...
by Xtra
15 Jan 2024, 00:23
Forum: Ask for Help (v1)
Topic: Disabling tray icon double-click popups doesn't work
Replies: 1
Views: 160

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
by Xtra
01 Jan 2024, 13:38
Forum: Ask for Help (v1)
Topic: MouseMove doesn't work in function() Topic is solved
Replies: 6
Views: 433

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...
by Xtra
30 Dec 2023, 13:44
Forum: Gaming Help (v1)
Topic: help Letters to Numbers
Replies: 1
Views: 272

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
by Xtra
29 Dec 2023, 14:24
Forum: Ask for Help (v1)
Topic: AHK script not working in some application
Replies: 2
Views: 256

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.
by Xtra
28 Dec 2023, 21:04
Forum: Ask for Help (v1)
Topic: Pasting each line one by one
Replies: 1
Views: 122

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
by Xtra
11 Dec 2023, 16:13
Forum: Ask for Help (v1)
Topic: Regular Expression Problem Topic is solved
Replies: 6
Views: 462

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 ...
by Xtra
11 Dec 2023, 13:45
Forum: Ask for Help (v1)
Topic: Regular Expression Problem Topic is solved
Replies: 6
Views: 462

Re: Regular Expression Problem Topic is solved

Keep it simple:

Code: Select all

Log_Text := StrReplace(Text, "`n", " ")
Click the word StrReplace in the code box to read more about it in the AHK Documentation.
by Xtra
07 Dec 2023, 11:52
Forum: Ask for Help (v1)
Topic: 0x80131700 error with Selinium on recent MMD pcs
Replies: 1
Views: 195

Re: 0x80131700 error with Selinium on recent MMD pcs

Check if .NET 3.5 is installed.
It is required for SeleniumBasic.
by Xtra
06 Dec 2023, 19:16
Forum: Ask for Help (v1)
Topic: ImageSearch errorLevel 2 question
Replies: 6
Views: 393

Re: ImageSearch errorLevel 2 question

andymbody wrote:
06 Dec 2023, 16:08
Fix X1,Y1,X2,Y2. The coordinates you have here create a straight line from bottom towards the top of screen on far left side of screen.
That would cause :arrow: ErrorLevel = 2 for sure.
by Xtra
06 Dec 2023, 15:39
Forum: Ask for Help (v1)
Topic: ImageSearch errorLevel 2 question
Replies: 6
Views: 393

Re: ImageSearch errorLevel 2 question

Remove the quotes on the image filename. "

Go to advanced search