Search found 82 matches

by partof
11 Mar 2019, 06:54
Forum: Ask For Help
Topic: how to Exitapp when I close the message box clicking on close cross? Topic is solved
Replies: 2
Views: 63

Re: how to Exitapp when I close the message box clicking on close cross? Topic is solved

My bad! It was actually working, I was runing another file with the same name. I thank you and apologize for wasting your time. For those interested: This (last part of the script) will only exitApp if you click on the ok button to close the msgbox: ButtonOK: ExitApp Return This will exitApp if you ...
by partof
11 Mar 2019, 06:37
Forum: Ask For Help
Topic: how to Exitapp when I close the message box clicking on close cross? Topic is solved
Replies: 2
Views: 63

how to Exitapp when I close the message box clicking on close cross? Topic is solved

Sorry, it's very basic, but I can't fin the answer. My app exit when I press the ok button with the following code, but not when I close I close it by clicking on the cross: Gui,1: +AlwaysOnTop +ToolWindow +HwndMyWinHwnd Gui, Color, Yellow Gui, Margin, 50, 50 Gui, Add, Text, x50 y20, test) Gui, Add,...
by partof
03 Mar 2019, 01:07
Forum: Scripts and Functions
Topic: AutoHotkey: how to restart the script when the ctrl control key is stuck
Replies: 1
Views: 130

AutoHotkey: how to restart the script when the ctrl control key is stuck

^ESC:: ; so you can reload when the ctrl key is stuck by just pressing escape Reload Sleep 1000 ; If successful, the reload will close this instance during the Sleep, so the line below will never be reached. ; MsgBox, 4,, The script could not be reloaded. Would you like to open it for editing? ; If...
by partof
17 Jan 2019, 14:24
Forum: Ask For Help
Topic: Loop (and create a countdown) on a var created from args
Replies: 2
Views: 140

Re: Loop (and create a countdown) on a var created from args

Sorry for the delay and thanks so much as it's working great!
by partof
13 Jan 2019, 14:48
Forum: Ask For Help
Topic: Loop (and create a countdown) on a var created from args
Replies: 2
Views: 140

Loop (and create a countdown) on a var created from args

I am starting my ahk script from a python scrip with an argument "number" (which is an integer but set as a string variable): subprocess.call([path_ahk_exe, path_ahk_script_countdown, number]) Then in the ahk script I need to create a Tooltip that countdown from the time set in the args. If Number i...
by partof
10 Jan 2019, 12:48
Forum: Ask For Help
Topic: Disable the key alt when it's pressed alone (while allowing to work in combination with other keys). Topic is solved
Replies: 2
Views: 107

Re: Disable the key alt when it's pressed alone (while allowing to work in combination with other keys). Topic is solved

Guten abend Rohwedder und danke schoen!

It's insulting of simplicity but it's working, so I'll worship your name for the rest of my life!

Thanks again!
by partof
10 Jan 2019, 10:38
Forum: Ask For Help
Topic: Disable the key alt when it's pressed alone (while allowing to work in combination with other keys). Topic is solved
Replies: 2
Views: 107

Disable the key alt when it's pressed alone (while allowing to work in combination with other keys). Topic is solved

In many apps, such as chrome pressing alt lose the focus (the cursor goes to the menu) I'm struggling to find the way to disable that simple keystroke without losing all my shortcuts which work with the alt and others keys (ex: alt+x). Any idea? This stack answer https://superuser.com/a/615424/23575...
by partof
31 Dec 2018, 11:11
Forum: Ask For Help
Topic: Current Hour & Current Minute
Replies: 6
Views: 390

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: 319

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: 319

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: 431

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: 308

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: 308

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: 308

#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: 431

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: 431

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: 431

#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: 194

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: 226

::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

Go to advanced search