ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

Create an empty txt file in the active window

<< < (4/5) > >>

MilesAhead:
This already explains it better than I can in a few paragraphs:

http://windowsxp.mvps.org/shellnewadd.htm

If you just want an empty text file, you don't have to bother with the template.

Contro:
I am lost. I'll wait your advice.
if with the same folder from the program I key Win+n this is the result :

Create an empty txt file in the active window

I will revised because my windows is spanish version. So perhaps the hotkey don't go well in my system. i will comment. Excuse me.
 ;D

Contro:
This already explains it better than I can in a few paragraphs:

http://windowsxp.mvps.org/shellnewadd.htm

If you just want an empty text file, you don't have to bother with the template.

-MilesAhead (June 17, 2012, 02:20 PM)
--- End quote ---

Thanks Miles. i haven't reach your script yet
 :P

Contro:
This is what I have in AutoIt3. It suffers from the same foible that you have to make sure nothing on the desktop or in the folder is selected. (Also as I mentioned, it doesn't work in Computer and other special Shell Object folders, which may include the libraries.)



--- ---#include <WinAPI.au3>

$hotkey = "^+{F10}"
If Not HotKeySet($hotkey, "_MakeNewTextFile") Then
MsgBox(0x1010,"MakeNewTextFile",$hotkey & " could not be assigned as Hotkey")
Exit
EndIf

While 1
Sleep(100)
WEnd

Func _MakeNewTextFile()
Local $handle = _WinAPI_GetForegroundWindow()
Local $className = _WinAPI_GetClassName($handle)
If $className = "Progman" Or $className = "WorkerW" Or $className = "ExploreWClass" Or $className = "CabinetWClass" Then
Send("{AppsKey}")
Sleep(10)
Send("w")
Sleep(10)
Send("t")
Sleep(10)
Send("instructions")
EndIf
EndFunc
-MilesAhead (June 16, 2012, 04:03 PM)
--- End quote ---

I'll try in autoit and comment

Contro:
NO.
I am thinking and thinking.
Now I need more.
I would like a hotkey not resident program to start a script able to present a list selection from the cursor with the alternatives names to the txt to create.
Always to do in the active window if exist. If not the script don't start.

 :-*

so. It's a second contextual menu activated with the hotkey. A selection list. Once the selection is done the txt with the name of the selection is created.

Is it possible ?

 :P

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version