Search found 2732 matches

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: 452154

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: 435

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: 207

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: 435

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: 154

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: 424

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: 271

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: 238

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: 120

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: 460

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: 460

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: 185

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: 388

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: 388

Re: ImageSearch errorLevel 2 question

Remove the quotes on the image filename. "
by Xtra
04 Dec 2023, 14:02
Forum: Ask for Help (v1)
Topic: Macros don't work in VM Window in a work environment
Replies: 1
Views: 161

Re: Macros don't work in VM Window in a work environment

Have you tried?:
Send, {text}text
by Xtra
04 Dec 2023, 13:56
Forum: Ask for Help (v2)
Topic: I come from Autoit
Replies: 3
Views: 322

Re: I come from Autoit

Rufaydium is another option:
viewtopic.php?t=102616

Edit: this would be for V1 not sure if V2 version is available.
by Xtra
21 Nov 2023, 12:52
Forum: Ask for Help (v1)
Topic: YouTube Ad blocker ban
Replies: 13
Views: 1127

Re: YouTube Ad blocker ban

You will want to use a non chromium based browser. (IMO) FireFox + UBlock Origin has been working for me. I would suggest not logging in with your google account. (it may or may not work) After a week of using youtube it has figured out what I want to watch based on what it's showing for suggestions...
by Xtra
20 Nov 2023, 12:26
Forum: Ask for Help (v1)
Topic: move mouse cursor without point movement?
Replies: 2
Views: 308

Re: move mouse cursor without point movement?

Try:

Code: Select all

$1::SetCursorPos(1500,1000)

SetCursorPos(xPos,yPos) {
    DllCall("SetCursorPos", int, xPos, int, yPos)
}
by Xtra
20 Nov 2023, 12:11
Forum: Gaming Help (v1)
Topic: SendInput not working in game app
Replies: 1
Views: 293

Re: SendInput not working in game app

Read: SetKeyDelay Remarks Remarks If SetKeyDelay is not used, the default delay is 10 for the traditional SendEvent mode and -1 for SendPlay mode. The default press duration is -1 for both modes. SetKeyDelay is not obeyed by SendInput; there is no delay between keystrokes in that mode. This same is ...
by Xtra
14 Nov 2023, 12:06
Forum: Scripts and Functions (v1)
Topic: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Replies: 610
Views: 123607

Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)

If you can get a reference to the element you are trying to click and then Rufaydium clicks do not work, there is nothing you can do. Just try to click without using any javascript. I dont have an example that you would have access to. Your options: https://developer.mozilla.org/en-US/docs/Web/Secur...

Go to advanced search