Search found 4093 matches

by mikeyww
less than a minute ago
Forum: Ask For Help
Topic: hold right click for a certain time
Replies: 3
Views: 232

Re: hold right click for a certain time

Replace wait inside the While loop. You can put the number of milliseconds there.
by mikeyww
32 minutes ago
Forum: Ask For Help
Topic: PLZ HELP. Left click at coordinates then Esc
Replies: 1
Views: 267

Re: PLZ HELP. Left click at coordinates then Esc

Code: Select all

#MaxThreadsPerHotkey 2

F3::
SetTimer, Cycle, % (go := !go) ? 3600000 : "Off"
SoundBeep, go  ? 1500 : 1000, 30
If go
 Gosub, Cycle
Return

Cycle:
Click, 713, 393
Sleep, 5000
Send % go ? "{Esc}" :
Return
by mikeyww
43 minutes ago
Forum: Ask For Help
Topic: hold right click for a certain time
Replies: 3
Views: 232

Re: hold right click for a certain time

Code: Select all

#MaxThreadsPerHotkey 2
wait := 5000
F3::
go := !go
While go {
 SoundBeep, 1500, 30
 Click, right, down
 Sleep, go ? wait : 0
 SoundBeep, 1000, 30
 Click, right, up
 Sleep, go ? wait : 0
}
Return
by mikeyww
Today, 12:49
Forum: Ask For Help
Topic: Need to Automatce Scripting Process
Replies: 2
Views: 232

Re: Need to Automatce Scripting Process

Code: Select all

file = %TEMP%\test.ahk
new  = %TEMP%\test-new.ahk
app  = SciTE.exe
FileRead, ttext, %file%
ttext := StrReplace(ttext, "A3", "A4")
ttext := StrReplace(ttext, "INPUT2", "INPUT3")
FileRecycle, %new%
FileAppend, %ttext%, %new%
Run, %app% "%new%"
by mikeyww
Today, 10:53
Forum: Ask For Help
Topic: Commands in MsgBox not working Topic is solved
Replies: 2
Views: 61

Re: Commands in MsgBox not working Topic is solved

Code: Select all

#!l::
WinGetActiveTitle, this
MsgBox, 262148, %this%, Would you like to set window to AlwaysOnTop?
IfMsgBox, Yes
 WinSet, AlwaysOnTop, On, A
Else WinSet, AlwaysOnTop, Off, A
Return
by mikeyww
Today, 09:15
Forum: Ask For Help
Topic: MousClick location not as expected Topic is solved
Replies: 5
Views: 82

Re: MousClick location not as expected Topic is solved

Change wWidth to Width.

Code: Select all

If !WinExist("ahk_exe FrameMaker.exe") {
 MsgBox, 48, Error, FrameMaker window was not found. Exiting.
 ExitApp
} Else WinActivate
WinGetPos,,, width
MouseClick,, width - 350, 10,, 30
SendInput {Esc}%id%Where are we?
ExitApp
by mikeyww
Today, 08:21
Forum: Ask For Help
Topic: AutoHotkey or Phyton, Selenium?
Replies: 3
Views: 87

Re: AutoHotkey or Phyton, Selenium?

It depends what you need to do. I'm not a Chrome-AHK expert, but there is a Chrome.ahk library that helps many users manipulate Chrome in various ways. Yes, I believe that some of that requires the debug mode. You can also execute JavaScript, from what I understand. If you search this forum for Chro...
by mikeyww
Today, 07:55
Forum: Ask For Help
Topic: AutoHotkey or Phyton, Selenium?
Replies: 3
Views: 87

Re: AutoHotkey or Phyton, Selenium?

Yes, AHK is a great automation tool and can work with Chrome and other programs. Looking at some of the documentation may help. This forum is also a rich source of information, troubleshooting, and examples. You would need to spend time learning the language and syntax, but doing simple things is, w...
by mikeyww
Today, 06:57
Forum: Ask For Help
Topic: Help with running the script only in one application, and with gui appearance. Topic is solved
Replies: 1
Views: 89

Re: Help with running the script only in one application, and with gui appearance. Topic is solved

menuText := "Change valid process name", keyToChange := "F2", color1 := "Yellow", color2 := "White" Menu, Tray, NoStandard Menu, Tray, Add, %menuText%, Change Menu, Tray, Add Menu, Tray, Standard Menu, Tray, Default, %menuText% Menu, Tray, Click, 1 Gui, Font, s12 Gui, Color, % color := color1 Gui, ...
by mikeyww
Today, 06:35
Forum: Ask For Help
Topic: Copy part of text between ""
Replies: 9
Views: 148

Re: Copy part of text between ""

Here's an update for four values if you like. numberOfColumns := 4 str = ( "1one";"Two";"Three";"Four";"Five";"Six";"Seven";"Eight";"Nine";"Ten";"Eleven" "2one";"Two";"Three";"Four";"Five";"Six";"Seven";"Eight";"Nine";"Ten";"Eleven" ) item := [] Loop, Parse, str, `n For k, v in StrSplit(RegExReplace...
by mikeyww
Today, 06:32
Forum: Ask For Help
Topic: Mute teams meeting with media key
Replies: 3
Views: 58

Re: Mute teams meeting with media key

I can't be of much help.

If you search the forum for "Bluetooth headset", you'll find related posts. One example is below.

https://www.autohotkey.com/boards/viewtopic.php?f=76&t=74226
by mikeyww
Yesterday, 21:33
Forum: Ask For Help
Topic: How do I configure hotkeys to be used in only one program
Replies: 12
Views: 149

Re: How do I configure hotkeys to be used in only one program

I do not have a way to test, but you now know that you can use #IfWinActive to limit where the hotkey is active. If you want the hotkey to be active in your game, then you could change that directive to refer to the game's process name, instead of Snap Camera. Perhaps you get the idea. If you need A...
by mikeyww
Yesterday, 20:44
Forum: Ask For Help
Topic: XML to a flat TXT File ?
Replies: 5
Views: 145

Re: XML to a flat TXT File ?

Code: Select all

file = %TEMP%\test.txt
FileRead, str, %file%
xmlObj := new xml(str)
For k1, v1 in xmlObj.getChildren("//MPL", "element")
 For k2, v2 in xmlObj.getChildren(v1, "element")
  MsgBox, % v2.getAttribute("Name") ": " v2.text
#Include xml.ahk ; https://github.com/denolfe/AutoHotkey/blob/master/lib/xml.ahk
by mikeyww
Yesterday, 17:46
Forum: Ask For Help
Topic: How do I configure hotkeys to be used in only one program
Replies: 12
Views: 149

Re: How do I configure hotkeys to be used in only one program

Try the following as a "proof of concept" test. #IfWinActive ahk_exe Snap Camera.exe F3::MsgBox, Test #IfWinActive Note: you must first run this script, and must also activate Snap Camera before pressing F3 to trigger the hotkey. See if that works. I am not aware of a way that you will be able to wo...
by mikeyww
Yesterday, 16:59
Forum: Ask For Help
Topic: Can't delete text between "([[ ]])" Topic is solved
Replies: 7
Views: 98

Re: Can't delete text between "([[ ]])" Topic is solved

I'm glad it works! Hello, HiSoKa , you might have looked in the wrong section. Reference is below. https://www.autohotkey.com/docs/misc/RegEx-QuickRef.htm We are deleting not only the brackets but their contents, so that is where RegEx can be useful, as the contents may be unknown in advance. RegEx ...
by mikeyww
Yesterday, 16:04
Forum: Ask For Help
Topic: How do I configure hotkeys to be used in only one program
Replies: 12
Views: 149

Re: How do I configure hotkeys to be used in only one program

See WinTitle. You can use ahk_exe followed by the process name.
by mikeyww
Yesterday, 16:00
Forum: Ask For Help
Topic: Can't delete text between "([[ ]])" Topic is solved
Replies: 7
Views: 98

Re: Can't delete text between "([[ ]])" Topic is solved

Another one:

Code: Select all

new := RegExReplace(str, " *(\[.*?\]|\(.*?\))")
by mikeyww
Yesterday, 15:50
Forum: Ask For Help
Topic: Can't delete text between "([[ ]])" Topic is solved
Replies: 7
Views: 98

Re: Can't delete text between "([[ ]])" Topic is solved

Code: Select all

str := "Roam [alias]([[Page]]) is useful for note taking."
new := RegExReplace(str, " *\[.+?\)")
MsgBox, 64, Result, %new%

Go to advanced search