Search found 95 matches

by partof
31 Dec 2018, 11:11
Forum: Ask For Help
Topic: Current Hour & Current Minute
Replies: 6
Views: 932

Re: Current Hour & Current Minute

Code: Select all

:*:hhh:: ; >> 17h10
SendInput %A_Hour%h%A_Min%
return


:*:hhs:: ; >> 17:10:53
SendInput %A_Hour%:%A_Min%:%A_Sec%
return
by partof
28 Dec 2018, 14:37
Forum: Ask For Help
Topic: Get path of selected file/folder or of current folder Topic is solved
Replies: 6
Views: 619

Re: Get path of selected file/folder or of current folder Topic is solved

Super, thanks so much! I didn't notice it didn't work on desktop! That super nice of you to point this out!
This little piece of code, will save me hours!
by partof
28 Dec 2018, 07:32
Forum: Ask For Help
Topic: Get path of selected file/folder or of current folder Topic is solved
Replies: 6
Views: 619

Get path of selected file/folder or of current folder Topic is solved

When I am on a file explorer windows, I would like to get the path of the selected files/folders or of the current folder with a single keystroke. Here is my script, it's working except that I get backslash when I selected a file/folder and I get forward slash for the current folder. How can I get e...
by partof
28 Dec 2018, 01:02
Forum: Ask For Help
Topic: #If WinActive doesn't recognise the active windows Topic is solved
Replies: 8
Views: 912

Re: #If WinActive doesn't recognise the active windows Topic is solved

ok, I finally found the solution thanks this https://www.autohotkey.com/boards/viewt ... =76&t=0370 thread.

in brief, "SetTitleMatchMode, Regex" must be added on the top of the script to work (before the first "hotkey" (xx::) "return" or "exit").
by partof
28 Dec 2018, 00:48
Forum: Ask For Help
Topic: #If WinActive not working when using #Include Topic is solved
Replies: 6
Views: 594

Re: #If WinActive not working when using #Include Topic is solved

Wow, this is working. You were right, I didn't understand how SetTitleMatchMode, Regex works. Thanks so much for your time and your patience! Something that I still don't understand though is that the #If WinActive() get registered with the hotkeys even if #If WinActive() is below the first hotkey ....
by partof
27 Dec 2018, 15:16
Forum: Ask For Help
Topic: #If WinActive not working when using #Include Topic is solved
Replies: 6
Views: 594

Re: #If WinActive not working when using #Include Topic is solved

Thanks a lot gregster for your time. I think I understand the part about auto-execute section and hotkey that will break the auto-execute. I tried many combination but still without being able to use my google docs keybindings and the brightness. Here is a small portion of my main.ahk (but I think t...
by partof
27 Dec 2018, 09:52
Forum: Ask For Help
Topic: #If WinActive not working when using #Include Topic is solved
Replies: 6
Views: 594

#If WinActive not working when using #Include Topic is solved

I have a main.ahk script in which I have all my key bindings. Yesterday I have added a keybindings for changing the brightness. I am using this https://www.autohotkey.com/boards/viewtopic.php?t=26921&p=126135 So I saved this https://gist.githubusercontent.com/qwerty12/4b3f41eb61724cd9e8f2bb5cc15c33c...
by partof
23 Dec 2018, 14:20
Forum: Ask For Help
Topic: #If WinActive doesn't recognise the active windows Topic is solved
Replies: 8
Views: 912

Re: #If WinActive doesn't recognise the active windows Topic is solved

@rommcek thanks but it needs to works on all google sheets (and "Google Sheets|Google Chrome" isn't working either)

@swagfag, thanks but what is it suppose to do? (It just an opens an empty text file at the end)
by partof
22 Dec 2018, 14:26
Forum: Ask For Help
Topic: #If WinActive doesn't recognise the active windows Topic is solved
Replies: 8
Views: 912

Re: #If WinActive doesn't recognise the active windows Topic is solved

Thanks but the code I'm looking for needs to work only on google sheet (not on all chrome pages)
by partof
21 Dec 2018, 07:23
Forum: Ask For Help
Topic: #If WinActive doesn't recognise the active windows Topic is solved
Replies: 8
Views: 912

#If WinActive doesn't recognise the active windows Topic is solved

"WinGetTitle" returns "My Log - Google Sheets - Google Chrome" So this works: SetTitleMatchMode, Regex #If WinActive("My Log - Google Sheets - Google Chrome") But I want my code to work for all Google sheets so I tried (amongst others) If WinActive("Google Sheets ahk_class Chrome_WidgetWin_1") ;and ...
by partof
21 Dec 2018, 04:41
Forum: Scripts and Functions
Topic: Get paths of selected items in an explorer window (in brief) [solved]
Replies: 0
Views: 353

Get paths of selected items in an explorer window (in brief) [solved]

it's not my code. It summarized this long thread https://autohotkey.com/board/topic/60723-can-autohotkey-retrieve-file-path-of-the-selected-file/#entry382642 : F6:: ze_path = % gst() ClipBoard =%ze_path% TrayTip, path, %ze_path%, 20, 17 ; send notification https://autohotkey.com/docs/commands/TrayTi...
by partof
17 Dec 2018, 15:07
Forum: Ask For Help
Topic: ::test:: send multiline text will send "test" instead of the first item *when run in the script*
Replies: 4
Views: 542

::test:: send multiline text will send "test" instead of the first item *when run in the script*

It seems there is a bug with the ::test::

Just try this but inside the script (where this code is written). (I'm using the VScode editor)

Code: Select all

::test:: 
send,
(
line1
line2
line3
)

return
It sends:

Code: Select all

testline2
line3
by partof
30 Oct 2018, 08:15
Forum: Scripts and Functions
Topic: double click on mouse middle button to do stuff **whithout affecting the single click**
Replies: 1
Views: 498

double click on mouse middle button to do stuff **whithout affecting the single click**

sorry the [code..] tags don't seem to work ; full screen (f11) when double middle click mouse ~MButton:: If (A_TimeSincePriorHotkey < 400) && (A_TimeSincePriorHotkey <> -1) Send, {f11} return Just to know: this one screw up the single click: ; MButton:: ; { ; KeyWait, MButton ; KeyWait, MButton, D T...
by partof
09 Oct 2018, 13:06
Forum: Ask For Help
Topic: removing double blank lines using regex
Replies: 3
Views: 332

Re: removing double blank lines using regex

Bravo AlphaBravo! Oh I'm so happy, thank you so much!
by partof
09 Oct 2018, 10:16
Forum: Ask For Help
Topic: removing double blank lines using regex
Replies: 3
Views: 332

Re: removing double blank lines using regex

It's getting closer: this one removes the multiple blank lines *when the text contains line breaks*, but... it adds an extra line when the text doesn't contain line break... Crazy... ^!Space:: clipboard = Send, ^a Send, ^c ClipWait clipboard := RegExReplace(clipboard,"\v\v+","`n`n") ; v find vertica...
by partof
09 Oct 2018, 09:40
Forum: Ask For Help
Topic: removing double blank lines using regex
Replies: 3
Views: 332

removing double blank lines using regex

I don't understand why this code isn't working since the regex works fine (I need to change the double/tripple/... blank line, into a single). [code=autohotkey file=Untitled.ahk]^!Space:: clipboard = Send, ^a Send, ^c ClipWait clipboard := RegExReplace(clipboard, "^[\r\n]{2,}","\n") sleep 100 Send, ...
by partof
23 Aug 2018, 10:08
Forum: Ask For Help
Topic: [Solved]Help please for DLL(s) 32bit --> 64bit
Replies: 8
Views: 1948

Re: [Solved]Help please for DLL(s) 32bit --> 64bit

To check if you run the 32 or 64 ahk version

Code: Select all

Msgbox % "v" A_AhkVersion " " (A_PtrSize = 4 ? 32 : 64) "-bit " (A_IsUnicode ? "Unicode" : "ANSI")
by partof
23 Aug 2018, 10:06
Forum: Ask For Help
Topic: How do i check in script what installed version of AHK - short or long?
Replies: 5
Views: 1745

Re: How do i check in script what installed version of AHK - short or long?

Code: Select all

Msgbox % "v" A_AhkVersion " " (A_PtrSize = 4 ? 32 : 64) "-bit " (A_IsUnicode ? "Unicode" : "ANSI")
by partof
09 Apr 2018, 15:50
Forum: Scripts and Functions
Topic: HTML tooltip creator editor: ; select a text in an html editor and create/edit/remove a ToolTip
Replies: 0
Views: 407

HTML tooltip creator editor: ; select a text in an html editor and create/edit/remove a ToolTip

You can create and add tooltips in any editor (they look like that: https://jsfiddle.net/cmftodzy/ ) (Don't hesitate to propose some improvement, it needs it) But this script needs 2 things to work: 1) Winclip (2 files: WinClipAPI.ahk WinClip.ahk. You can download them here https://autohotkey.com/bo...

Go to advanced search