Search found 5237 matches

by mikeyww
Yesterday, 21:55
Forum: Ask For Help
Topic: Replace Characters in Group of Words
Replies: 1
Views: 33

Re: Replace Characters in Group of Words

Code: Select all

str =
(
Tim Bob John "Sam" Bill Tom Joe
Tim Bob "John" Sam Bill Tom Joe Art
Tim Bob Sam Tom Art "Bill"
)
MsgBox, 64, Result, % new := RegExReplace(str, """(.*?)""", "($1)")
by mikeyww
Yesterday, 21:50
Forum: Gaming
Topic: Problems quitting a script
Replies: 6
Views: 128

Re: Problems quitting a script

What are the values of all of the variables, which are global, how was the function executed, what happened when you ran the script, and where is the code that calls the function?
by mikeyww
Yesterday, 21:42
Forum: Gaming
Topic: Click Q Three Times
Replies: 1
Views: 21

Re: Click Q Three Times

Code: Select all

~q::SendInput qq
by mikeyww
Yesterday, 19:24
Forum: Ask For Help
Topic: Send Control Keys to an App Even if it is not Active
Replies: 3
Views: 76

Re: Send Control Keys to an App Even if it is not Active

You deleted the spaces in your modifiers-- could be a problem.
by mikeyww
Yesterday, 18:09
Forum: Ask For Help
Topic: how to pass a variable to batch
Replies: 3
Views: 69

Re: how to pass a variable to batch

I'm glad it worked.

Below is an example in case you need it in the future.

AHK:

Code: Select all

vComputer = Samantha
Run, %A_ScriptDir%\test.cmd "%vComputer%"
CMD:

Code: Select all

@echo off
echo:
echo %~1
echo:
Pause
by mikeyww
Yesterday, 17:14
Forum: Ask For Help
Topic: countdown reset Topic is solved
Replies: 6
Views: 141

Re: countdown reset Topic is solved

Yes. That is not one of the hotkeys in the script. The script was designed to do the following: "I want to press num lock, and if i press again between 15 seconds, it'll press ctrl+numlock".

If you want to add all modifiers, you can use $*NumLock as the hotkey.

Explained: Hotkey modifier symbols
by mikeyww
Yesterday, 15:15
Forum: Ask For Help
Topic: Align text in archive Topic is solved
Replies: 8
Views: 131

Re: Align text in archive Topic is solved

Code: Select all

file := A_ScriptDir "\test.txt", x := ["onmessage","DllCall","ShellMessage"], list := ""
For k, v in x
 list .= v "`n"
Sort, list
FileAppend, %list%, %file%
Run, %file%
Explained: Sort
by mikeyww
Yesterday, 14:21
Forum: Ask For Help
Topic: Align text in archive Topic is solved
Replies: 8
Views: 131

Re: Align text in archive Topic is solved

MsgBox does not use monospaced font. Have you tried this in Notepad?
by mikeyww
Yesterday, 14:14
Forum: Ask For Help
Topic: Align text in archive Topic is solved
Replies: 8
Views: 131

Re: Align text in archive Topic is solved

Code: Select all

tabStop := 35, ttext := ""
str =
(
onmessage	  		[function]
DllCall			[function]
ShellMessage			[function]
)
For k, v in StrSplit(str, "`n")
 part := StrSplit(RegExReplace(v, "\h+", "`t"), "`t"), ttext .= Format("`n{:" -1 * tabStop "}{}", part.1, part.2)
ttext := SubStr(ttext, 2)
SendInput %ttext%
by mikeyww
Yesterday, 13:47
Forum: Ask For Help
Topic: Accent problems
Replies: 5
Views: 121

Re: Accent problems

If you test in Notepad, does the problem occur while you are typing only into Notepad?
by mikeyww
Yesterday, 13:27
Forum: Ask For Help
Topic: Auto select a specific radio button
Replies: 2
Views: 65

Re: Auto select a specific radio button

Specify the word Checked in Options to have the button start off in the "on" state.
Explained: Radio buttons
by mikeyww
Yesterday, 12:05
Forum: Ask For Help
Topic: how can i stop searching the image when found? Topic is solved
Replies: 2
Views: 68

Re: how can i stop searching the image when found? Topic is solved

Code: Select all

CoordMode, Pixel
Loop, 10 {
 ImageSearch,,, 0, 0, A_ScreenWidth, A_ScreenHeight, D:\IMAGES\MINE\23 IMPORT DA\1 IMPORT DA SCHWARZ.png
 If !ErrorLevel {
  InstantExplorer("D:\\1990 Mausprogramm")
  Break
 } Else Sleep, 50
}
Return
Explained: Break
by mikeyww
Yesterday, 11:57
Forum: Ask For Help
Topic: Copying Texts With ~LButton & RButton
Replies: 11
Views: 220

Re: Copying Texts With ~LButton & RButton

Very nice!
by mikeyww
Yesterday, 10:59
Forum: Ask For Help
Topic: how to pass a variable to batch
Replies: 3
Views: 69

Re: how to pass a variable to batch

Code: Select all

RunWait, %ComSpec% /k "test1.cmd %vComputer%", %A_WorkingDir%
A batch file argument would be like %1 in the batch file.

If this is a variable from a GUI, then the initial "v" in the options is not part of the variable name.
by mikeyww
Yesterday, 10:55
Forum: Ask For Help
Topic: Copying Texts With ~LButton & RButton
Replies: 11
Views: 220

Re: Copying Texts With ~LButton & RButton

Would try changing the other button specifications in the script, too.
by mikeyww
Yesterday, 10:51
Forum: Ask For Help
Topic: Excel. I don't get copy A1, then A2, A3, A4....A800 Topic is solved
Replies: 2
Views: 66

Re: Excel. I don't get copy A1, then A2, A3, A4....A800 Topic is solved

Code: Select all

wb := ComObjGet(A_Desktop "\PlanilhaSuporte.xlsx"), n := 0
F1::
Clipboard =
Clipboard := wb.Sheets("Plan1").Cells(++n, 1).Value
ClipWait, 0
If ErrorLevel
 MsgBox, 64, Done, Done!
Else MsgBox, %Clipboard%
Return
by mikeyww
Yesterday, 10:24
Forum: Ask For Help
Topic: Cut linebreak when copying from Exel? Topic is solved
Replies: 5
Views: 107

Re: Cut linebreak when copying from Exel? Topic is solved

Clipboard = rrrr123xyz4567890123456abc123456defg Sleep, 80 ; ----------------------------------------------- str := Clipboard, Clipboard := "", Clipboard := RegExReplace(RegExReplace(str, "\D"), ".{11}\K.*") ClipWait, 0 If ErrorLevel MsgBox, 48, Error, An error occurred while waiting for the clipbo...
by mikeyww
Yesterday, 09:21
Forum: Ask For Help
Topic: Ctrl+V key spam when Ctrl is side mouse button
Replies: 7
Views: 149

Re: Ctrl+V key spam when Ctrl is side mouse button

OK. I am unable to reproduce your issue. Perhaps others can help.
by mikeyww
Yesterday, 09:20
Forum: Gaming
Topic: Mouse Clicking Script Help
Replies: 12
Views: 167

Re: Mouse Clicking Script Help

It is the following one, which includes the click.

Code: Select all

#MaxThreadsPerHotkey 2
cps := 3, nClicks := 5, wait := 500

^F8::
SetMouseDelay, 0
on := !on
While on {
 SoundBeep, 1800, 30
 Loop, %nClicks% {
  Click
  Sleep, on * 1000 / cps
 } Until !on
 Sleep, on * wait
}
SoundBeep, 1000, 30
Return

Go to advanced search