Search found 103 matches

by partof
Yesterday, 02:04
Forum: Ask For Help
Topic: How to know the SC code of the "sleep" key? Topic is solved
Replies: 2
Views: 59

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

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

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

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

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

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

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

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

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

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

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

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

(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...
by partof
31 Mar 2019, 14:15
Forum: Ask For Help
Topic: Can't highlight text using LButton even if it has been remaped to it's original states (after using it as hotkey) Topic is solved
Replies: 2
Views: 579

Re: Can't highlight text using LButton even if it has been remaped to it's original states (after using it as hotkey) Topic is solved

That was it, thank you so much!

The explanation:
When we use the tilde as prefix the hotkey will fire when the key is pressed instead of being delayed until the key is released source: (https://autohotkey.com/docs/Hotkeys.htm)
~LButton & RButton::
by partof
30 Mar 2019, 11:41
Forum: Ask For Help
Topic: Can't highlight text using LButton even if it has been remaped to it's original states (after using it as hotkey) Topic is solved
Replies: 2
Views: 579

Can't highlight text using LButton even if it has been remaped to it's original states (after using it as hotkey) Topic is solved

I have a bug in this script that I can't fix. I want the remap of WheelDowWheelUp to left/right to work only on a youtube page but I would like to be able to enable/disable this remaping with the double click on LButton & RButton anywhere (on any active page, not just on youtube). (The toggle : = 0 ...
by partof
30 Mar 2019, 11:28
Forum: Ask For Help
Topic: enable/disable a shortcut using another shortcut Topic is solved
Replies: 4
Views: 830

Re: enable/disable a shortcut using another shortcut Topic is solved

Thank you It's working! (Here is my code, I still have a small issue with it, but it's for another question) SetTitleMatchMode, Regex toggle := 0 youtubesetting(toggle){ ;|This will only go off if toggle is true/1 If (toggle==1){ #If WinActive("YouTube") TrayTip, On, Youtube mode activated,,1 Hotkey...
by partof
29 Mar 2019, 13:57
Forum: Ask For Help
Topic: enable/disable a shortcut using another shortcut Topic is solved
Replies: 4
Views: 830

enable/disable a shortcut using another shortcut Topic is solved

How can I enable and disable the shortcuts below by pressing both the RButton and the LButton? Any advice will be welcome! SetTitleMatchMode, 2 WinActivate, YouTube RButton:: Send, {Space} return SetTitleMatchMode, 2 WinActivate, YouTube WheelUp:: Send, {Right} return SetTitleMatchMode, 2 WinActivat...
by partof
28 Mar 2019, 03:33
Forum: Ask For Help
Topic: Run a script every specified weekday at specified time (use ahk instead of task manager) Topic is solved
Replies: 8
Views: 2660

Re: Run a script every specified weekday at specified time (use ahk instead of task manager) Topic is solved

Thanks Sote for this code, I didn't think about do it that way. It's better than relying on a count down!
by partof
22 Mar 2019, 09:34
Forum: Ask For Help
Topic: Run a script every specified weekday at specified time (use ahk instead of task manager) Topic is solved
Replies: 8
Views: 2660

Re: Run a script every specified weekday at specified time (use ahk instead of task manager) Topic is solved

Thanks nou, this is indeed a better way to do it. Sote, I run into this problem today. I put my computer into sleep and all my tasks were disorganized. I do not want ahk to wake up my computer. I only need my task to be display when I log back in my computer after a sleep. Ex: I have a task set for ...
by partof
21 Mar 2019, 11:36
Forum: Ask For Help
Topic: Run a script every specified weekday at specified time (use ahk instead of task manager) Topic is solved
Replies: 8
Views: 2660

Re: Run a script every specified weekday at specified time (use ahk instead of task manager) Topic is solved

So far, Iwas able to do this: SleepTill(1610,"1,3,5") SleepTill(Time, date:=0) { ST_weekday:=A_WDay if (%ST_weekday% in date){ ST_Hour:=SubStr(Time, 1 ,2) ST_Min:=SubStr(Time, 3 ,2) ST_Sec:=(SubStr(Time, 5 ,2)<>"" ? SubStr(Time, 5 ,2) : "00") STime:=(((ST_Hour-A_Hour)*60+(ST_Min-A_Min))*60+(ST_Sec-A...

Go to advanced search