Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Save energy: Drive a smaller shell.


computers / alt.windows7.general / Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWinActive"

SubjectAuthor
* AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWinActjackpatton
+* Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWiJJ
|+- Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWijackpatton
|`* Re: AUTOHOTKEY directive "#singleinstance,force" used inZaidy036
| `- Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWijackpatton
`- Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunctionPaul

1
AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWinActive"

<p8d7hgp3f76grneojacb3nhnehv2v4s90l@4ax.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2170&group=alt.windows7.general#2170

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!4.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!news.uzoreto.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!feeder5.feed.usenet.farm!feeder1.feed.usenet.farm!feed.usenet.farm!peer02.ams4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx39.iad.POSTED!not-for-mail
From: jackpatton@astraweb.com
Newsgroups: alt.windows7.general
Subject: AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWinActive"
Message-ID: <p8d7hgp3f76grneojacb3nhnehv2v4s90l@4ax.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 33
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 11 Aug 2021 11:49:09 UTC
Date: Wed, 11 Aug 2021 07:49:03 -0400
X-Received-Bytes: 1391
 by: jackpatton@astraweb.com - Wed, 11 Aug 2021 11:49 UTC

third party software -- AUTOHOTKEY

I have an ahk script that into which i wish to incorporate both directives into the following.

It now operates as:

~~~~~~~~~~~~~~~~~~

#IfWinActive ahk_class ConsoleWindowClass
^V::
SendInput {Raw}%clipboard%
return
#IfWinActive

~~~~~~~~~~~~~~~~~~~~~

I want to incorporate
"#SingleInstance force" into it.
This will be part of a larger MS-DOS batch file and be a called executable (which works, but gives the
dialog box of asking if i want to replace current instance.)

How do I do incorporate the two AHK DIRECTIVES together?

(the AHK script file instates "CTRL-V" to copy the raw win clipboard contents to the command line for
Win 7.)

Thanks.

Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWinActive"

<k3y80cz7h417$.1hwluhhc99a6n.dlg@40tude.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2172&group=alt.windows7.general#2172

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!aioe.org!qAH1d9CItueh8upgIL+heQ.user.46.165.242.91.POSTED!not-for-mail
From: jj4public@gmail.com (JJ)
Newsgroups: alt.windows7.general
Subject: Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWinActive"
Date: Wed, 11 Aug 2021 20:36:25 +0700
Organization: Aioe.org NNTP Server
Message-ID: <k3y80cz7h417$.1hwluhhc99a6n.dlg@40tude.net>
References: <p8d7hgp3f76grneojacb3nhnehv2v4s90l@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="17241"; posting-host="qAH1d9CItueh8upgIL+heQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: 40tude_Dialog/2.0.15.84
X-Bitcoin: 1LcqwCQBQmhcWfWsVEAeyLchkAY8ZfuMnS
X-Notice: Filtered by postfilter v. 0.9.2
X-Face: \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pa d{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
 by: JJ - Wed, 11 Aug 2021 13:36 UTC

On Wed, 11 Aug 2021 07:49:03 -0400, jackpatton@astraweb.com wrote:
> third party software -- AUTOHOTKEY
>
> I have an ahk script that into which i wish to incorporate both directives into the following.
>
> It now operates as:
>
> ~~~~~~~~~~~~~~~~~~
>
> #IfWinActive ahk_class ConsoleWindowClass
> ^V::
> SendInput {Raw}%clipboard%
> return
> #IfWinActive
>
> ~~~~~~~~~~~~~~~~~~~~~
>
> I want to incorporate
> "#SingleInstance force" into it.
> This will be part of a larger MS-DOS batch file and be a called executable (which works, but gives the
> dialog box of asking if i want to replace current instance.)
>
> How do I do incorporate the two AHK DIRECTIVES together?
>
> (the AHK script file instates "CTRL-V" to copy the raw win clipboard contents to the command line for
> Win 7.)
>
> Thanks.

Not possible, IMO. Because directives are processed before the code are
executed. And there's no (built in) method for an AHK script to detect
whether the script was started from an AHK hotkey of a separate script
instance or not.

Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWinActive"

<euk7hg9tbit7t871fiah9i0ntcq4nj71ir@4ax.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2173&group=alt.windows7.general#2173

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!peer03.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx13.iad.POSTED!not-for-mail
From: jackpatton@astraweb.com
Newsgroups: alt.windows7.general
Subject: Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWinActive"
Message-ID: <euk7hg9tbit7t871fiah9i0ntcq4nj71ir@4ax.com>
References: <p8d7hgp3f76grneojacb3nhnehv2v4s90l@4ax.com> <k3y80cz7h417$.1hwluhhc99a6n.dlg@40tude.net>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 44
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 11 Aug 2021 13:47:53 UTC
Date: Wed, 11 Aug 2021 09:47:46 -0400
X-Received-Bytes: 2206
 by: jackpatton@astraweb.com - Wed, 11 Aug 2021 13:47 UTC

On Wed, 11 Aug 2021 20:36:25 +0700, JJ <jj4public@gmail.com> wrote:

>On Wed, 11 Aug 2021 07:49:03 -0400, jackpatton@astraweb.com wrote:
>> third party software -- AUTOHOTKEY
>>
>> I have an ahk script that into which i wish to incorporate both directives into the following.
>>
>> It now operates as:
>>
>> ~~~~~~~~~~~~~~~~~~
>>
>> #IfWinActive ahk_class ConsoleWindowClass
>> ^V::
>> SendInput {Raw}%clipboard%
>> return
>> #IfWinActive

>> ~~~~~~~~~~~~~~~~~~~~~
>>
>> I want to incorporate
>> "#SingleInstance force" into it.
>> This will be part of a larger MS-DOS batch file and be a called executable (which works, but gives the
>> dialog box of asking if i want to replace current instance.)
>>
>> How do I do incorporate the two AHK DIRECTIVES together?
>>
>> (the AHK script file instates "CTRL-V" to copy the raw win clipboard contents to the command line for
>> Win 7.)
>>
>> Thanks.
>
>Not possible, IMO. Because directives are processed before the code are
>executed. And there's no (built in) method for an AHK script to detect
>whether the script was started from an AHK hotkey of a separate script
>instance or not.

ok. Thanks. I guess i will have to live with one extra keypress to the answer the dialog box, then.

(Now here's a corker, when executed alone, the above .ahk file between the "~'s" gives no dialog box.
BUT when called from a .bat, it does.)

jim

Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWinActive"

<sf0ki4$9p7$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2174&group=alt.windows7.general#2174

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Zaidy036@air.isp.spam (Zaidy036)
Newsgroups: alt.windows7.general
Subject: Re: AUTOHOTKEY directive "#singleinstance,force" used in
conjunction wirth "IfWinActive"
Date: Wed, 11 Aug 2021 13:49:57 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <sf0ki4$9p7$1@dont-email.me>
References: <p8d7hgp3f76grneojacb3nhnehv2v4s90l@4ax.com>
<k3y80cz7h417$.1hwluhhc99a6n.dlg@40tude.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 11 Aug 2021 13:49:57 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="99ba0c7dc884ec9e8fcd89178799533a";
logging-data="10023"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18sMjXWscRXzSEPSMPcavDB7F2JYvoQidY="
User-Agent: NewsTap/5.5 (iPad)
Cancel-Lock: sha1:I4+IiOhmpljtpP9nCPq++7dVD/c=
sha1:wwUvavw6oLPEh2VjL66OMwWbemU=
 by: Zaidy036 - Wed, 11 Aug 2021 13:49 UTC

JJ <jj4public@gmail.com> wrote:
> On Wed, 11 Aug 2021 07:49:03 -0400, jackpatton@astraweb.com wrote:
>> third party software -- AUTOHOTKEY
>>
>> I have an ahk script that into which i wish to incorporate both
>> directives into the following.
>>
>> It now operates as:
>>
>> ~~~~~~~~~~~~~~~~~~
>>
>> #IfWinActive ahk_class ConsoleWindowClass
>> ^V::
>> SendInput {Raw}%clipboard%
>> return
>> #IfWinActive
>>
>> ~~~~~~~~~~~~~~~~~~~~~
>>
>> I want to incorporate
>> "#SingleInstance force" into it.
>> This will be part of a larger MS-DOS batch file and be a called
>> executable (which works, but gives the
>> dialog box of asking if i want to replace current instance.)
>>
>> How do I do incorporate the two AHK DIRECTIVES together?
>>
>> (the AHK script file instates "CTRL-V" to copy the raw win clipboard
>> contents to the command line for
>> Win 7.)
>>
>> Thanks.
>
> Not possible, IMO. Because directives are processed before the code are
> executed. And there's no (built in) method for an AHK script to detect
> whether the script was started from an AHK hotkey of a separate script
> instance or not.
>

Nirsoft has a function to paste to and from the clipboard

--
Zaidy036

Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWinActive"

<sf0laj$fli$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2175&group=alt.windows7.general#2175

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: nospam@needed.invalid (Paul)
Newsgroups: alt.windows7.general
Subject: Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunction
wirth "IfWinActive"
Date: Wed, 11 Aug 2021 10:02:59 -0400
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <sf0laj$fli$1@dont-email.me>
References: <p8d7hgp3f76grneojacb3nhnehv2v4s90l@4ax.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 11 Aug 2021 14:03:00 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="7e6f07acd136289b835784bbc2260e77";
logging-data="16050"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BfpBRfHe5Z/h3kzb7i8WpX9DTJjntUpU="
User-Agent: Ratcatcher/2.0.0.25 (Windows/20130802)
Cancel-Lock: sha1:LkPadmdcYLQ96pYLk4FvmZWmuLQ=
In-Reply-To: <p8d7hgp3f76grneojacb3nhnehv2v4s90l@4ax.com>
 by: Paul - Wed, 11 Aug 2021 14:02 UTC

jackpatton@astraweb.com wrote:
> third party software -- AUTOHOTKEY
>
> I have an ahk script that into which i wish to incorporate both directives into the following.
>
> It now operates as:
>
> ~~~~~~~~~~~~~~~~~~
>
> #IfWinActive ahk_class ConsoleWindowClass
> ^V::
> SendInput {Raw}%clipboard%
> return
> #IfWinActive
>
> ~~~~~~~~~~~~~~~~~~~~~
>
> I want to incorporate
> "#SingleInstance force" into it.
> This will be part of a larger MS-DOS batch file and be a called executable (which works, but gives the
> dialog box of asking if i want to replace current instance.)
>
> How do I do incorporate the two AHK DIRECTIVES together?
>
> (the AHK script file instates "CTRL-V" to copy the raw win clipboard contents to the command line for
> Win 7.)
>
> Thanks.

Doesn't throwing random keywords from the language
into a Google search, get you some hits ?

For example, second post here:

https://www.autohotkey.com/boards/viewtopic.php?t=15518

#NoEnv
#SingleInstance Force
#Persistent

#If WinActive("ahk_exe WINWORD.EXE")

~RButton::
send, {delete}
return

#If

I'm not an AHK guy, never written a script in it or anything,
so can't tell by looking at one of those, whether it runs
properly or meets any objective.

Paul

Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWinActive"

<9pp7hgp98n5tl3q62vjnhr58pk8jlkhthg@4ax.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2177&group=alt.windows7.general#2177

  copy link   Newsgroups: alt.windows7.general
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1.feed.usenet.farm!feed.usenet.farm!news-out.netnews.com!news.alt.net!fdc3.netnews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx44.iad.POSTED!not-for-mail
From: jackpatton@astraweb.com
Newsgroups: alt.windows7.general
Subject: Re: AUTOHOTKEY directive "#singleinstance,force" used in conjunction wirth "IfWinActive"
Message-ID: <9pp7hgp98n5tl3q62vjnhr58pk8jlkhthg@4ax.com>
References: <p8d7hgp3f76grneojacb3nhnehv2v4s90l@4ax.com> <k3y80cz7h417$.1hwluhhc99a6n.dlg@40tude.net> <sf0ki4$9p7$1@dont-email.me>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 9
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Wed, 11 Aug 2021 15:05:34 UTC
Date: Wed, 11 Aug 2021 11:05:28 -0400
X-Received-Bytes: 999
 by: jackpatton@astraweb.com - Wed, 11 Aug 2021 15:05 UTC

On Wed, 11 Aug 2021 13:49:57 -0000 (UTC), Zaidy036 <Zaidy036@air.isp.spam> wrote:

>Nirsoft has a function to paste to and from the clipboard
>
>
>--
>Zaidy036

There is a lot of freeware there!

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor