Search found 110 matches

by partof
28 Dec 2020, 09:25
Forum: Ask For Help
Topic: Start service from script
Replies: 2
Views: 579

Re: Start service from script

did you find the way to start a service?
by partof
14 Dec 2020, 05:17
Forum: Ask For Help
Topic: Keep the script open until we close the notification
Replies: 12
Views: 124

Re: Keep the script open until we close the notification

garry wrote:
12 Dec 2020, 14:34
want you use Rohwedder's script like this ( ? )
Thanks for your help but it's not what I'm looking for.
by partof
12 Dec 2020, 10:58
Forum: Ask For Help
Topic: Keep the script open until we close the notification
Replies: 12
Views: 124

Re: Keep the script open until we close the notification

mikeyww wrote:
12 Dec 2020, 09:23
you can simply use:
It sound logical, but it doesn't work (closing the window doesn't kill the script)
by partof
12 Dec 2020, 09:23
Forum: Ask For Help
Topic: Keep the script open until we close the notification
Replies: 12
Views: 124

Re: Keep the script open until we close the notification

mikeyww wrote:
12 Dec 2020, 09:09
The Return following ExitApp is never executed.
It makes sense! But how to solve this issue?
by partof
12 Dec 2020, 09:21
Forum: Ask For Help
Topic: Keep the script open until we close the notification
Replies: 12
Views: 124

Re: Keep the script open until we close the notification

garry wrote:
12 Dec 2020, 08:39
maybe use msgbox ( ? ) / or a hotkey ...
Thank you but I need to use a splash
by partof
12 Dec 2020, 09:20
Forum: Ask For Help
Topic: Keep the script open until we close the notification
Replies: 12
Views: 124

Re: Keep the script open until we close the notification

Rohwedder wrote:
12 Dec 2020, 08:52
Hallo,
try:

Code: Select all

Splashimage, ,M2 cwolive, test
WinWaitClose,% A_ScriptName 
ExitApp
Thank you Rohwedder but it doesn't close the script
by partof
12 Dec 2020, 08:25
Forum: Ask For Help
Topic: Keep the script open until we close the notification
Replies: 12
Views: 124

Keep the script open until we close the notification

I'm struggling with this script. The notification only flashes for 1/2 second. It should remain open until I click on the close button (and the script should end). (I want to avoid a "sleep 10000000")

Code: Select all

#Persistent
Splashimage, ,M2 cwolive, test

ButtonCancel:
ExitApp
return
Any idea?
by partof
27 Nov 2020, 02:04
Forum: Ask For Help
Topic: How to know the SC code of the "sleep" key? Topic is solved
Replies: 2
Views: 71

Re: How to know the SC code of the "sleep" key? Topic is solved

Thank you, yes that did it! (And I can still use my laptop power button!)
by partof
26 Nov 2020, 11:58
Forum: Ask For Help
Topic: How to know the SC code of the "sleep" key? Topic is solved
Replies: 2
Views: 71

How to know the SC code of the "sleep" key? Topic is solved

I'm trying to remap (disable) the sleep key from my keyboard

this doesn't work

Code: Select all

Sleep:: return
I would like to try with the "SC code" of this key, but don't know how to get it. (I can't use ahk's inbuild tool since it puts the PC to sleep when I press the sleep button)

Thanks!
by partof
26 Nov 2020, 11:51
Forum: Ask For Help
Topic: Make the sleep button to do something else?
Replies: 7
Views: 2367

Re: Make the sleep button to do something else?

but how do you get the SC code of the sleep button ? (I can't use the "key history" inbuilt tool since it put the PC to sleep...)
by partof
26 Nov 2020, 11:34
Forum: Ask For Help
Topic: How to remap Wake, Sleep and Power keys?
Replies: 4
Views: 1278

Re: How to remap Wake, Sleep and Power keys?

How did you do it to remap the sleep button?
by partof
06 Nov 2020, 08:47
Forum: Ask For Help
Topic: SOLVED: Error: #Include file "myfile.ahk" cannot be opened
Replies: 10
Views: 8716

Re: SOLVED: Error: #Include file "myfile.ahk" cannot be opened

be careful the error mesage isn't accurate:

I got the error:
Error: This parameter contains a variable name missing its ending percent sign.
but the path was ok, it's only the script I included which contained an error.

Try to comment stuff on your script to check if it comes from there.
by partof
06 Nov 2020, 05:40
Forum: Scripts and Functions
Topic: copy google doc comments I can't edit wile keeping the formatting
Replies: 0
Views: 157

copy google doc comments I can't edit wile keeping the formatting

1) get the WinClip module (which contains 2 file) in WinClip.ahk replace this GetHtml() { if !( clipSize := this._fromclipboard( clipData ) ) return "" if !( out_size := this._getFormatData( out_data, clipData, clipSize, "HTML Format" ) ) return "" return strget( &out_data, out_size, "CP0" ) } by Ge...
by partof
03 Sep 2020, 15:46
Forum: AutoHotkey v2 Scripts and Functions
Topic: tigerlily's Screen Dimmer [a122] - Multi-Monitor Screen Dimmer for Developers, Students, Gamers & Digital Nomads
Replies: 28
Views: 1657

Re: tigerlily's Screen Dimmer [a122] - Multi-Monitor Screen Dimmer for Developers, Students, Gamers & Digital Nomads

It isn't healthy, nor smart to trust anyone on the web, and to download stuff simply because the author declares it "malware-free". (Some of your arguments sound rights, but no, we simply can't check your code). It would be easier to simply reveal your identity, where you work, and as much proof of ...
by partof
02 Sep 2020, 11:12
Forum: AutoHotkey v2 Scripts and Functions
Topic: tigerlily's Screen Dimmer [a122] - Multi-Monitor Screen Dimmer for Developers, Students, Gamers & Digital Nomads
Replies: 28
Views: 1657

Re: tigerlily's Screen Dimmer [a122] - Multi-Monitor Screen Dimmer for Developers, Students, Gamers & Digital Nomads

@Lisa19 Did you installed it? I have the Same problem than you, the .exe has been flagged by virustotal (which belong to google) https://www.virustotal.com/gui/file/4d3698e964f514db5ec214a065441080aad85240414352309e2419f846e4332c/relations . It says the app contact 10+ domains, 7contacted URL, 6cont...
by partof
05 Aug 2019, 04:39
Forum: Scripts and Functions
Topic: how to detect the current browser
Replies: 0
Views: 504

how to detect the current browser

Find the browser in a code that works specifically on google docs (pressing alt+q) : #If WinActive("Google Docs ahk_class Chrome_WidgetWin_1", Tweaks) !q:: ; find the browser browser = none If winactive("ahk_exe msedge.exe") { browser = Edge ; msgbox u're on edge } If winactive("ahk_exe chrome.exe")...
by partof
08 Apr 2019, 04:19
Forum: Ask For Help
Topic: hotkey bugs if I keep pressing it too long (how to release the key that I'm pressing?) Topic is solved
Replies: 1
Views: 509

Re: hotkey bugs if I keep pressing it too long (how to release the key that I'm pressing?) Topic is solved

the solution was : KeyWait LWin, L It means: wait for windows key to be released before resuming the code Full code: #If WinActive("Google Docs ahk_class Chrome_WidgetWin_1") #a:: { KeyWait LWin, L ; Wait for # to be released. send, ^; ; set upperscript sleep, 100 ; send, al ; sleep, 200 ; time to s...
by partof
04 Apr 2019, 10:15
Forum: Ask For Help
Topic: script needs to be reload twice to take in account the changes
Replies: 0
Views: 388

script needs to be reload twice to take in account the changes

In my ahk scripts that stores all my key remapping, I have this little piece of code so that I can easily reload it after I made some edits. ^+r:: If WinActive("ahk_shortcuts.ahk") ; this will be called when I run the shortcut when my active window is my script in VS Code { Send ^s ; send ctrl s sav...
by partof
04 Apr 2019, 03:32
Forum: Ask For Help
Topic: hotkey bugs if I keep pressing it too long (how to release the key that I'm pressing?) Topic is solved
Replies: 1
Views: 509

hotkey bugs if I keep pressing it too long (how to release the key that I'm pressing?) Topic is solved

This code work as expected, until I press the # for too long. In this case it send another "#a" (the # I press + the a of the "al" it sent) which log off the computer (it's an inbuilt hotkey I would desactivate if I could). #a:: { Send {# up} send, al } return I also tried using {Blind} (I first tho...
by partof
31 Mar 2019, 14:26
Forum: Scripts and Functions
Topic: (using only the mouse to go forward/backward on youtube) + (enable/disable all youtube hotkeys with a single hotkey)
Replies: 0
Views: 676

(using only the mouse to go forward/backward on youtube) + (enable/disable all youtube hotkeys with a single hotkey)

When you right click + left click this code activates/deactivates some custom hotkeys for youtube (eg: jump forward, backward...). It works only when the active window is youtube (so it won't bother you elsewhere). ; ********************************* (using only the mouse to go forward/backward on y...

Go to advanced search