Search found 518 matches

by sinkfaze
08 Mar 2019, 15:52
Forum: Ask For Help
Topic: Copy from Excel and Paste Tab Delimited Until Clipboard is Empty? Topic is solved
Replies: 9
Views: 985

Re: Copy from Excel and Paste Tab Delimited Until Clipboard is Empty? Topic is solved

Decrementing the contents of the Clipboard is going to be considerably more trouble than it's worth, better to push the contents to an array and send each field when needed. Clipboard := RegExReplace(Clipboard,"s)\s+$") , data := [] , i := 1 Loop, Parse, Clipboard, `n, `r Loop, Parse, A_LoopField, `...
by sinkfaze
08 Mar 2019, 15:03
Forum: Ask For Help
Topic: A bit lost regarding toggling Loops
Replies: 4
Views: 358

Re: A bit lost regarding toggling Loops

A loop like that, generally, is not a good way to run a toggle.

Might I suggest using SetTimer instead?

Code: Select all

F5::
Toggle := !Toggle
SetTimer, SendQ, %	Toggle ? 10 : "Off"
return

SendQ:
Send q
return
by sinkfaze
08 Mar 2019, 14:33
Forum: Forum Issues
Topic: Limited to 3 images?
Replies: 3
Views: 763

Re: Limited to 3 images?

We're having trouble with a malicious spammer who is uploading tens of obscene images in a post, we have taken measures to counteract his ability to spam here, I'm certain that your issue stems from this.
by sinkfaze
07 Mar 2019, 13:06
Forum: Ask For Help
Topic: Windows 7 to Windows 10: Having to Reload Script
Replies: 15
Views: 1735

Re: Windows 7 to Windows 10: Having to Reload Script

That's hard for us to determine if we can't see your script, can you share it?
by sinkfaze
07 Mar 2019, 13:04
Forum: General Discussion
Topic: Is AHK dead? (not developed any more)
Replies: 62
Views: 11119

Re: Is AHK dead? (not developed any more)

I have moved this to Offtopic.
by sinkfaze
04 Mar 2019, 16:39
Forum: Ask For Help
Topic: Excel-COM: Cycle through sheets of closed file? Topic is solved
Replies: 2
Views: 347

Re: Excel-COM: Cycle through sheets of closed file? Topic is solved

You shouldn't need to use an extra line to go to the next sheet, the for -loop (and the sheet instance) will do it for you. F5:: xl := ComObjGet("C:\Users\USER\Documents\Logitech Gaming Software\Screenshots meiner Profile.xlsx") for sheet in xl.sheets { name := sheet.range("V1").value ; using 'sheet...
by sinkfaze
04 Mar 2019, 15:04
Forum: Ask For Help
Topic: send keys from spreadsheet
Replies: 9
Views: 1009

Re: send keys from spreadsheet

If you copy the data from Excel and place the cursor in the right starting point in your entry program, you can just parse through the Clipboard:

Code: Select all

Clipboard :=	RegExReplace(Clipboard,"`as)\v+$")	; remove trailing newline
Loop, parse, Clipboard, `n, `r
{
	Send %A_LoopField%
	Sleep, 500
}
return
by sinkfaze
04 Mar 2019, 12:24
Forum: Forum Issues
Topic: Yellow user names
Replies: 20
Views: 2912

Re: Yellow user names

It should be known: this is extremely annoying. We understand it's extremely annoying, and we're sorry about that, but you have to understand that we have to weigh your extreme annoyance (and maybe one or two other new users) against the extreme annoyance of a sizable swath of the user base who has...
by sinkfaze
04 Mar 2019, 11:16
Forum: Ask For Help
Topic: Ein Zeichen innerhalb einer Zeichenkette einfügen
Replies: 6
Views: 606

Re: Ein Zeichen innerhalb einer Zeichenkette einfügen

So you're trying to add a period after the track number if it doesn't already exist?

Code: Select all

track=12 Testvideo.mp4
MsgBox %	RegExReplace(track,"\b\d+\b(?!\.)","$0.")
:?:
by sinkfaze
28 Feb 2019, 08:52
Forum: Ask For Help
Topic: one key for open and close
Replies: 3
Views: 460

Re: one key for open and close

Which part of the code isn't doing what you expect?
by sinkfaze
27 Feb 2019, 16:23
Forum: Ask For Help
Topic: Move operation to clipboard
Replies: 6
Views: 860

Re: Move operation to clipboard

Can you post samples of text where the code fails? Redact any sensitive information if necessary.
by sinkfaze
27 Feb 2019, 15:28
Forum: Ask For Help
Topic: Move operation to clipboard
Replies: 6
Views: 860

Re: Move operation to clipboard

Code: Select all

^!+p::
var :=	Clipboard
Loop, parse, var, `n, `r
{
	Clipboard :=		"<p>" A_LoopField "</p>`r"
	ClipWait
	SendRaw, ^v
}
return
:?:
by sinkfaze
27 Feb 2019, 10:20
Forum: Ask For Help
Topic: Search in all .txt files in a directory
Replies: 4
Views: 563

Re: Search in all .txt files in a directory

So is your above code an attempt to do what you suggested? Also, I'm not seeing where the data2 var comes into play.
by sinkfaze
25 Feb 2019, 08:57
Forum: Ask For Help
Topic: Help keeping a script running
Replies: 8
Views: 947

Re: Help keeping a script running

Probably the easiest way will be to run two separate timers, one for your reliable task and one that waits to close the window: #Persistent SetTimer, MainProcess, 1000 SetTimer, CloseWindow, 1000 return MainProcess: if WinActive("ahk_exe SDLTradosStudio.exe") && WinExist("Information") { WinGetText,...
by sinkfaze
22 Feb 2019, 15:17
Forum: Ask For Help
Topic: Help keeping a script running
Replies: 8
Views: 947

Re: Help keeping a script running

What it's telling you is that WinWait is not detecting the requested window, and since you did not set anything in the Seconds parameter, it will wait infinitely to find the window. Probably the easiest thing to do is create a test hotkey with WinWait and some variation of the information needed to ...
by sinkfaze
22 Feb 2019, 14:09
Forum: Ask For Help
Topic: Help keeping a script running
Replies: 8
Views: 947

Re: Help keeping a script running

Are you sure it runs only once? Did you check ListLines? I have a sneaking suspicion that you're getting stuck here:

WinWait, Add Supported Language Pairs
by sinkfaze
22 Feb 2019, 11:14
Forum: Ask For Help
Topic: Help keeping a script running
Replies: 8
Views: 947

Re: Help keeping a script running

Try running it as a timer instead: #Persistent SetTimer, AddLanguagePairs, 1000 return AddLanguagePairs: if WinActive("ahk_exe SDLTradosStudio.exe") && WinExist("Information") { WinGetText, text Send {Esc} RegExMatch(text,"'\K[^']+",TMname) Sleep 100 Send !u Sleep 100 Send {Down 6}{Enter} Sleep 100 ...
by sinkfaze
22 Feb 2019, 10:49
Forum: Ask For Help
Topic: Search in all .txt files in a directory
Replies: 4
Views: 563

Re: Search in all .txt files in a directory

You could use a file loop for that.
by sinkfaze
22 Feb 2019, 09:26
Forum: Ask For Help
Topic: need help loop reading to clipboard
Replies: 8
Views: 998

Re: need help loop reading to clipboard

Code: Select all

Loop, %	StrLen(inputvar)
	SearchArray[A_Index] :=	SubStr(inputvar, A_Index, 1)
StrSplit() will take care of this automatically:

Code: Select all

SearchArray :=	StrSplit(inputvar)
by sinkfaze
21 Feb 2019, 13:13
Forum: Ask For Help
Topic: Accessing ComObj of an Application
Replies: 4
Views: 581

Re: Accessing ComObj of an Application

What application is this? Is the object reference online?

Go to advanced search