Search found 54 matches

by Barney
13 Feb 2016, 18:10
Forum: Ask For Help
Topic: Auto-replace unusable characters in Explorer save-as?
Replies: 4
Views: 1177

Re: Auto-replace unusable characters in Explorer save-as?

This script will replace all characters that are not a letter or number and paste it when you press Win+V #v:: pasteCleanedText() return pasteCleanedText() { regEx := "S)\P{Xan}+" ;alle zeichen die nicht Buchstabe oder Zahl sind cleanedString := RegExReplace(Clipboard, regEx, " ") Clipboard = %clean...
by Barney
13 Feb 2016, 17:58
Forum: Ask For Help
Topic: Noob requesting help - Two Timers, One HK
Replies: 5
Views: 1255

Re: Noob requesting help - Two Timers, One HK

when you keep a key pressed the hotkey event will be generated repeatedly. Look at the key history. But you need to catch only the first time that the down event arrives at your script.
by Barney
12 Feb 2016, 18:45
Forum: Ask For Help
Topic: Help for Grandma!
Replies: 5
Views: 1514

Re: Help for Grandma!

yes, that is possible.
by Barney
09 Oct 2015, 00:05
Forum: Ask For Help
Topic: Can't insert string into object
Replies: 1
Views: 1354

Can't insert string into object

I can't insert the the value of a variable into an object when it was used in a certain expression:

Code: Select all

testobj := Object()
test:="008"
(5 != test)
testobj.Insert(test)
msgbox,% testobj[1]
Result is 8. But I expect it to be 008. Why is it this way?
by Barney
02 Jul 2015, 01:13
Forum: Ask For Help
Topic: FileMove fails to rename long names
Replies: 4
Views: 1701

FileMove fails to rename long names

[Moderator's note: Topic moved from Bug Reports.] It doesn't work with AHK. It works fine with another program (Total Commander) so maybe it is an AHK bug. Example: FileMove, e:\testtttttttttttttttttttttttttttttttttttttttttttttttttttt\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
by Barney
18 Jan 2015, 14:14
Forum: Ask For Help
Topic: Run resp. RunWait without Focus
Replies: 10
Views: 3279

Re: Run resp. RunWait without Focus

No need to use RunWait. You can use run and later WinWaitClose
by Barney
11 Jan 2015, 06:51
Forum: Ich brauche Hilfe
Topic: Frage zu "SoundBeep"
Replies: 7
Views: 2443

Re: Frage zu "SoundBeep"

mach es doch mit einem 2. Prozess und kill ihn, wenn das beep stoppen soll.
by Barney
11 Jan 2015, 02:46
Forum: Forum Issues
Topic: Increase login timeout
Replies: 51
Views: 13784

Re: Increase login timeout

I have to login nearly every day, too
by Barney
11 Jan 2015, 02:39
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 820
Views: 496400

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

I'm getting this on first startup: --------------------------- Toolbar.ahk --------------------------- Error: "2" is not a valid key name. Line# 263: Menu,ToolMenu,Add,Check for updates...,check4updates 266: GroupAdd,SciTE4AutoHotkey,ahk_id %scitehwnd% 267: GroupAdd,SciTE4AutoHotkey,ahk_id %hwndgui%...
by Barney
08 Jan 2015, 00:39
Forum: Ask For Help
Topic: #IfWinActive with individual TitleMatchMode possible?
Replies: 8
Views: 2586

Re: #IfWinActive with individual TitleMatchMode possible?

Thank you! Use #If WinActive2("Inoreader ...") where WinActive2() is a function of your own invention which calls SetTitleMatchMode and WinActive(). My next big question is: Is there something like anonymous functions in ahk so that I would not have to declare a normal function somewhere else in my ...
by Barney
08 Jan 2015, 00:19
Forum: Ask For Help
Topic: is it possible to click in Edit control and trigger g-Label?
Replies: 5
Views: 1916

Re: is it possible to click in Edit control and trigger g-La

you could monitor all mouse clicks and each time check if your edit is under the mouse cursor. Then call any label you wish.
by Barney
08 Jan 2015, 00:05
Forum: Ask For Help
Topic: #IfWinActive with individual TitleMatchMode possible?
Replies: 8
Views: 2586

Re: #IfWinActive with individual TitleMatchMode possible?

I think, I didn't make myself clear. Here is a better example: Can I make the first #IfWinActive use TitleMatchMode 2 and the second #IfWinActive use TitleMatchMode 1? #IfWinActive , Inoreader ahk_class MozillaWindowClass ahk_exe firefox.exe Numpad5:: Click Middle return #IfWinActive #IfWinActive , ...
by Barney
07 Jan 2015, 22:34
Forum: Ask For Help
Topic: #IfWinActive with individual TitleMatchMode possible?
Replies: 8
Views: 2586

#IfWinActive with individual TitleMatchMode possible?

Is it possible to have #IfWinActive section that uses another TitleMatchMode than the rest of the script? Consider this: SetTitleMatchMode, 1 return #IfWinActive , Inoreader ahk_class MozillaWindowClass ahk_exe firefox.exe Numpad5:: Click Middle return #IfWinActive I would like #IfWinActive to use T...
by Barney
28 May 2014, 20:07
Forum: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 228668

Re: Suggestions on documentation improvements

The section The WinTitle Parameter & the Last Found Window > The "Last Found" Window
misses to mention #IfWinActive / #IfWinExist

Go to advanced search