Page 1 of 1

A_Temp and NotePad++

Posted: 21 Apr 2017, 08:06
by tdalon
Hello
somehow my %A_Temp% has the value:
C:\Users\uid41890\AppData\Local\Temp\Notepad++PortableTemp
instead of the expected C:\Users\uid41890\AppData\Local\Temp\.
Does anyone know why?

Re: %A_Temp% wrong value \Temp\Notepad++PortableTemp

Posted: 21 Apr 2017, 08:11
by just me
Why do you post this qestion in the 'Bug Reports' section?

Re: %A_Temp% wrong value \Temp\Notepad++PortableTemp

Posted: 21 Apr 2017, 08:22
by tdalon
Looks like a bug to me.

Re: %A_Temp% wrong value \Temp\Notepad++PortableTemp

Posted: 21 Apr 2017, 08:27
by just me
If it is a bug, it's certainly no AHK bug. If your're running scripts from Notepad++ PortableTemp, it's most likely Notepad++.

Re: %A_Temp% wrong value \Temp\Notepad++PortableTemp

Posted: 21 Apr 2017, 08:37
by tdalon
You are right. It isn't a AHK bug.
I thought the NPP Run Plugin would only run the file as if I would do this manually. No idea why it impacts on the %A_Temp%.
If I run the AHK manually %A_Temp% value is fine.
This is pretty weird/ hard to explain to me.

Re: %A_Temp% wrong value \Temp\Notepad++PortableTemp

Posted: 21 Apr 2017, 08:40
by tdalon
How can I delete this stupid question?

Re: %A_Temp% wrong value \Temp\Notepad++PortableTemp

Posted: 21 Apr 2017, 08:49
by tdalon
Reason is due to the Notepad++ RunMe Plugin. I run AHK from it. And it changes the %Temp% variable.

Re: %A_Temp% wrong value \Temp\Notepad++PortableTemp

Posted: 21 Apr 2017, 09:13
by nnnik
Please let it stay. I will move it to the right section.
Other members might have similar troubles and we will be able to point them at this thread.

Re: A_Temp and NotePad++

Posted: 25 Jan 2018, 23:35
by lmstearn
Another curious thing with N++ {RunMe} is captured local hotkeys.

Code: Select all

#IfWinActive MyAHKScript
{
Del::
}
Delete doesn't work in N++ while the script is running and even when the hotkey has not been activated. Anyone else get that?
Edit: Ew. Also in HTMLHelp Workshop- even Explorer... this warrants a closer look. :problem:
Happens with the compiled script as well, but narrowing it down some kind of "fixation" AHK has with another app on first run after boot. Even if the app is closed & restarted, the key is affected.

Code: Select all

#IfWinActive MyAHKScript ahk_class AutoHotkeyGUI
{
Del::
}