What's wrong in my script? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
LAPIII
Posts: 667
Joined: 01 Aug 2021, 06:01

What's wrong in my script?

Post by LAPIII » 26 Jan 2022, 22:03

Here's my script:

Code: Select all

#IfWinActive, ahk_exe ApplicationFrameHost.exe

!L::
Sleep 100
MouseClick, Left, 1421, 144
Sleep 1000
SendInput {Text}Some text
SendInput, {Enter}
Sleep 2000
MouseClick, Left, 645 648
Sleep 5
MouseClick, Left, 650 527
SendInput {Text}Some text

return
I'm getting this:

Image

gregster
Posts: 8921
Joined: 30 Sep 2013, 06:48

Re: What's wrong in my script?

Post by gregster » 26 Jan 2022, 22:05

Comma(s) missing.

LAPIII
Posts: 667
Joined: 01 Aug 2021, 06:01

Re: What's wrong in my script?

Post by LAPIII » 27 Jan 2022, 13:11

Thank you, But I still get the same message.

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: What's wrong in my script?

Post by swagfag » 27 Jan 2022, 13:16

doubt it. post the code

gregster
Posts: 8921
Joined: 30 Sep 2013, 06:48

Re: What's wrong in my script?

Post by gregster » 27 Jan 2022, 13:21

In case you still missed it, your mouseclick syntax is off again --> comma(s) missing!
Compare viewtopic.php?f=18&t=98569&p=439997#p437624

LAPIII
Posts: 667
Joined: 01 Aug 2021, 06:01

Re: What's wrong in my script?

Post by LAPIII » 28 Jan 2022, 04:11

Sorry:

Code: Select all

#IfWinActive, ahk_exe ApplicationFrameHost.exe

!L::
Sleep 100
MouseClick, Left, 1421, 144
Sleep 1000
SendInput {Text}Some text
SendInput, {Enter}
Sleep 2000
MouseClick, Left, 645. 648
Sleep 5
MouseClick, Left, 650, 527
SendInput {Text}Some text

return

gregster
Posts: 8921
Joined: 30 Sep 2013, 06:48

Re: What's wrong in my script?  Topic is solved

Post by gregster » 28 Jan 2022, 04:25

Typo: In line 10, replace dot . with comma ,
MouseClick, Left, 645. 648 --> MouseClick, Left, 645, 648

LAPIII
Posts: 667
Joined: 01 Aug 2021, 06:01

Re: What's wrong in my script?

Post by LAPIII » 28 Jan 2022, 12:27

Thanks, sorry I was careless.

Post Reply

Return to “Ask for Help (v1)”