Script doesn't work

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
yozencolere
Posts: 5
Joined: 07 Mar 2017, 09:15

Script doesn't work

07 Mar 2017, 09:32

Hi everyone !

My script doesn't work. I need to replace the combination "Alt+f4" for close a window by this combination "up+&"
Itried with this script:

up&::!f4

But when i want to launch my script, i've an error: invalid hotkey

Thank's for your help. :)
Crashm87
Posts: 48
Joined: 25 Jul 2016, 13:12

Re: Script doesn't work

07 Mar 2017, 10:10

Up & 7::
Send, {altdown}F4{altup}
yozencolere
Posts: 5
Joined: 07 Mar 2017, 09:15

Re: Script doesn't work

07 Mar 2017, 10:16

Thank's but it doesn't work too. :|
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: Script doesn't work

07 Mar 2017, 10:18

yozencolere wrote:Hi everyone !
My script doesn't work.
Hi. This is a classic problem, most scripts actually doesn't work, try this,

Code: Select all

!F4::Send,{Up}&
Crashm87 wrote:Up & 7::
Send, {altdown}F4{altup}
Note, Send, {altdown}F4{altup} isn't the same as Send, {altdown}{F4}{altup}

Cheers.
Crashm87
Posts: 48
Joined: 25 Jul 2016, 13:12

Re: Script doesn't work

07 Mar 2017, 10:18

Helgef wrote:
yozencolere wrote:
Crashm87 wrote:Up & 7::
Send, {altdown}F4{altup}
Note, Send, {altdown}F4{altup} isn't the same as Send, {altdown}{F4}{altup}
Thank you, missed that.
yozencolere
Posts: 5
Joined: 07 Mar 2017, 09:15

Re: Script doesn't work

07 Mar 2017, 10:24

Hi,

thank's for helping me. I've tried your script but it's seems like doesn't work.
Crashm87
Posts: 48
Joined: 25 Jul 2016, 13:12

Re: Script doesn't work

07 Mar 2017, 10:31

are you trying to close a window by pressing Up+&?
yozencolere
Posts: 5
Joined: 07 Mar 2017, 09:15

Re: Script doesn't work

07 Mar 2017, 10:38

Yes that's right.
I've tried this script too in this thread:
https://autohotkey.com/board/topic/65952-altf4-script/

#c::WinClose, A ; Win+C
!c::WinClose, A ; Alt+C

i've tried with this:

up&::WinClose, A ; Win+C
or
{Up}&::WinClose, A ; Win+C

But the result is the same...it does'nt work.
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Script doesn't work

07 Mar 2017, 10:47

Code: Select all

Up & 7::WinClose, A
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: Script doesn't work

07 Mar 2017, 10:49

Code: Select all

~Up & &::Send,!{F4}
Edit: What's up with the 7?
yozencolere
Posts: 5
Joined: 07 Mar 2017, 09:15

Re: Script doesn't work

07 Mar 2017, 10:51

Yeah !!!
thank's a lot, it's work ! 8-)

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Chunjee, Gorgrak, Leonardo_Portela and 129 guests