Search found 20 matches

by TravisQ
04 Feb 2020, 19:05
Forum: Ask For Help
Topic: Remove part of URL from Chrome with macro/script
Replies: 4
Views: 138

Re: Remove part of URL from Chrome with macro/script

This is what I came up with, tested on this page. Was having problems with it working every time but seems to be stable now. Might need tweeking. Something here could be useful to add in. Good Luck ^!a:: save:=clipboardall sendinput,^l ; chrome shortcut for selecting address bar clipboard:="" sleep,...
by TravisQ
23 Jan 2020, 13:58
Forum: Ask For Help
Topic: Combining loopreadline with filecopy into subfolders Topic is solved
Replies: 2
Views: 173

Re: Combining loopreadline with filecopy into subfolders Topic is solved

This might do what your looking for or be close. sourcepath := a_mydocuments "\reports PDFs" destpath := a_mydocuments "\cases" Loop, Read,% sourcepath "\id.txt" { regexmatch(A_LoopReadLine,"(\d+)",num) Loop,Files,% destpath "\*",d { if ( regexmatch(A_LoopFileName,"" SubStr(num,1,2) "\d\d") ) { ; ed...
by TravisQ
21 Jan 2020, 21:55
Forum: Ask For Help
Topic: Draw multiple rectangles - This is driving me nuts!
Replies: 2
Views: 135

Re: Draw multiple rectangles - This is driving me nuts!

Not sure, but this might be what you need or at least a start

Code: Select all

			ah := y1Array[j] - y2Array[j]
		Gui, %j%: new
		Gui, %j%:-Caption +ToolWindow +LastFound +AlwaysOnTop
		Gui, %j%:Color, %BC%
		Gui, %j%: Show, NoActivate x%ax% y%ay% w%aw% h%ah%
by TravisQ
05 Jan 2020, 15:42
Forum: Ask For Help
Topic: Temporary suspend of script during input dialog? Topic is solved
Replies: 10
Views: 483

Re: Temporary suspend of script during input dialog? Topic is solved

If you are suspending your hotkeys so you can interact with the dialog perhaps you need the visible "v" option enabled.

Code: Select all

~b::
	Suspend, On
	input,_,v,{esc}{enter}
	Suspend, Off
Return
by TravisQ
07 Dec 2019, 17:00
Forum: Ask For Help
Topic: Where do I find the doc for appending to this? Topic is solved
Replies: 2
Views: 1712

Re: Where do I find the doc for appending to this? Topic is solved

Maybe something here can help #Persistent DetectHiddenWindows, on Menu, Tray, Tip , Some text in a tooltip Menu, Tray, NoStandard Menu, Tray, Add , Open, Open Menu, Tray, Add , Help, Help Menu, Tray, Add Menu, Tray, Add , SusPause, SusPause Menu, Tray, Add Menu, Tray, Add ,exit,exit Return Open: Pos...
by TravisQ
24 Mar 2019, 14:38
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 802
Views: 397258

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

Code: Select all

buffers.zorder.switching=1

# This setting chooses the ordering of buffer switching when Ctrl+Tab pressed.
# Set to 1, the buffers are selected in the order of their previous selection
# otherwise they are chosen based on the buffer number.
by TravisQ
06 Feb 2019, 18:32
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 802
Views: 397258

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

Options > Open User properties
add these lines

Code: Select all

file.patterns.ahk=$(ahk.file.extension);$(ahkscriptlet.file.extension);*.lib
lexer.$(file.patterns.ahk)=ahk1
by TravisQ
22 Apr 2017, 15:02
Forum: Ask For Help
Topic: copy file to correct folder
Replies: 2
Views: 506

Re: copy file to correct folder

If your naming convention doesnt change maybe something like this could work for you, FilePattern := A_Desktop "\future shows\*" Loop, Files, %FilePattern% , f { file := A_LoopFileName , filePath := A_LoopFileLongPath RegExMatch( file,"(.+?) (.+?) ", fileData ) Loop, Files, %FilePattern% , d { folde...
by TravisQ
24 Mar 2017, 15:49
Forum: Ask For Help
Topic: XML File input
Replies: 1
Views: 359

Re: XML File input

xml= ( <Machines> <Computer Name="computer1" OS="Windows 7 32-bit" MAC="xxxxxxxxxxxx" Notes="VSCODE" /> <Computer Name="computer2" OS="Windows 7 32-bit" MAC="yyyyyyyyyyyyyy" Notes="NOTEPAD++" /> </Machines> ) name:="computer1" xmlDoc := ComObjCreate("MSXML2.DOMDocument.6.0") xmldoc.loadXML(xml) ;xm...
by TravisQ
22 Mar 2017, 20:21
Forum: Ask For Help
Topic: Dequeue a class via an enumeration loop
Replies: 16
Views: 3599

Re: Dequeue a class via an enumeration loop

have you tried clone() ?

Code: Select all

clone:=uHis.clone()
For k, v in clone {
; ...
	uHis.RemoveAt(k) 
}
by TravisQ
09 Mar 2017, 23:49
Forum: Ask For Help
Topic: Using IE.Document.GetElementsByClassname
Replies: 10
Views: 4708

Re: Using IE.Document.GetElementsByClassname

Added newKey AutoHotKey.exe REG_DWORD 11001 to

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION

and both scripts by FG are recognized
by TravisQ
01 Mar 2017, 21:02
Forum: Ask For Help
Topic: Search a CSV File for a Certain String? Topic is solved
Replies: 2
Views: 950

Re: Search a CSV File for a Certain String? Topic is solved

Maybe something like this could work for you

Code: Select all

FileRead,File,%A_Desktop%\test.txt
Results:=[],p:=1
while p := RegExMatch(File, "\d-\d+-\d+-\d", Match, p + StrLen(Match)) {
    Results.push(Match)
}
for k,v in Results
append.=v "`n"
FileAppend,%append%,%A_Desktop%\test2.txt
by TravisQ
23 Feb 2017, 12:25
Forum: Ask For Help
Topic: Loop through info in a file
Replies: 5
Views: 888

Re: Loop through info in a file

Maybe some of these ideas could be usefull SetWorkingDir,%A_ScriptDir% Content= ( acc1 char1 char2 char3 acc2 char21 char22 char23 ) Loop,Parse,Content,`n,`r { RegExMatch(A_LoopField,"([^\s]+)",fword) RegExMatch(A_LoopField,"(?<=\s)(.*)",match) MsgBox,3,,Line %A_Index% is :`n%fword% `n`n`trun or ski...
by TravisQ
22 Feb 2017, 01:12
Forum: Ask For Help
Topic: MsgBox to display pixel color in Hex & RBG
Replies: 3
Views: 1368

Re: MsgBox to display pixel color in Hex & RBG

F1:: ; GetMousePosition and pixel color_Screen CoordMode,Mouse,Screen MouseGetPos,xpos,ypos CoordMode,Pixel,Screen PixelGetColor,bgr,%xpos%,%ypos% PixelGetColor,rgb,%xpos%,%ypos%,rgb rgbDec:=hex2dec(rgb) coords:=xpos "," ypos Msgbox, The cursor is located at x = %xpos% & y = %ypos%. (Join, `nThe co...
by TravisQ
21 Feb 2017, 10:34
Forum: Ask For Help
Topic: Computer info gui (Like BGINFO / RAINMETER) issue
Replies: 3
Views: 860

Re: Computer info gui (Like BGINFO / RAINMETER) issue

Code: Select all

~#D::
SetTimer, DesktopIntegration,-50
return
DesktopIntegration:
WinGetClass, ahk_class, A
If (ahk_class == "WorkerW") and (LastClass != "WorkerW")
	WinActivate, % "ahk_id " . hGadgetGui
LastClass := ahk_class
return
Dont know about show desktop button, but this seemed to do something for winD
by TravisQ
20 Feb 2017, 15:36
Forum: Ask For Help
Topic: Computer info gui (Like BGINFO / RAINMETER) issue
Replies: 3
Views: 860

Re: Computer info gui (Like BGINFO / RAINMETER) issue

Code: Select all

...
Gui, 1: Color, %CustomColor%
Gui, 1: +LastFound +AlwaysOnTop       ;<-------
Gui, 1: font, s11.5 cFFFFFF, Segoe UI
...
by TravisQ
19 Feb 2017, 18:24
Forum: Ask For Help
Topic: how test the radio value from another script ?
Replies: 2
Views: 539

Re: how test the radio value from another script ?

Code: Select all

ControlGet,MaVar,Checked,,button1,MyGui.ahk
MsgBox %MaVar%
by TravisQ
19 Feb 2017, 14:10
Forum: Ask For Help
Topic: merging loopfield variables Topic is solved
Replies: 4
Views: 896

Re: merging loopfield variables Topic is solved

Code: Select all

List=
(
a
b
c
)
Loop, parse, List, `n 
{
    dropdownlist .= A_Loopfield "|" ; Expression Operator
}
StringTrimRight,dropdownlist,dropdownlist,1
MsgBox,% dropdownlist
return
by TravisQ
14 Feb 2017, 21:05
Forum: Ask For Help
Topic: Newbie question
Replies: 2
Views: 609

Re: Newbie question

need another keywait to catch the up

Code: Select all

Down::
	keywait, down, t0.5
	if errorlevel {
		Send,a
		keywait, down
	} else
		Send,{down}
return

Go to advanced search