Page 1 of 1
Script doesn't work
Posted: 07 Mar 2017, 09:32
by yozencolere
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.
Re: Script doesn't work
Posted: 07 Mar 2017, 10:10
by Crashm87
Up & 7::
Send, {altdown}F4{altup}
Re: Script doesn't work
Posted: 07 Mar 2017, 10:16
by yozencolere
Thank's but it doesn't work too.
Re: Script doesn't work
Posted: 07 Mar 2017, 10:18
by Helgef
yozencolere wrote:Hi everyone !
My script doesn't work.
Hi. This is a classic problem, most scripts actually doesn't work, try this,
Crashm87 wrote:Up & 7::
Send, {altdown}F4{altup}
Note,
Send, {altdown}F4{altup} isn't the same as
Send, {altdown}{F4}{altup}
Cheers.
Re: Script doesn't work
Posted: 07 Mar 2017, 10:18
by Crashm87
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.
Re: Script doesn't work
Posted: 07 Mar 2017, 10:24
by yozencolere
Hi,
thank's for helping me. I've tried your script but it's seems like doesn't work.
Re: Script doesn't work
Posted: 07 Mar 2017, 10:31
by Crashm87
are you trying to close a window by pressing Up+&?
Re: Script doesn't work
Posted: 07 Mar 2017, 10:38
by yozencolere
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.
Re: Script doesn't work
Posted: 07 Mar 2017, 10:47
by swagfag
Re: Script doesn't work
Posted: 07 Mar 2017, 10:49
by Helgef
Edit: What's up with the
7?
Re: Script doesn't work
Posted: 07 Mar 2017, 10:51
by yozencolere
Yeah !!!
thank's a lot, it's work !