topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday November 11, 2025, 7:29 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 124 125 126 127 128 [129] 130 131 132 133 134 ... 158next
3201
Post New Requests Here / Re: Create an empty txt file in the active window
« Last post by Contro on June 17, 2012, 04:16 PM »
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
3202
Post New Requests Here / Re: Create an empty txt file in the active window
« Last post by Contro on June 17, 2012, 03:08 PM »
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

I'll try in autoit and comment
3203
Post New Requests Here / Re: Create an empty txt file in the active window
« Last post by Contro on June 17, 2012, 02:22 PM »
This already explains it better than I can in a few paragraphs:

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

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


Thanks Miles. i haven't reach your script yet
 :P
3204
Post New Requests Here / Re: Create an empty txt file in the active window
« Last post by Contro on June 17, 2012, 02:21 PM »
I am lost. I'll wait your advice.
if with the same folder from the program I key Win+n this is the result :

http://img341.imageshack.us/img341/9527/mozart17062012211815.png


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
3205
Post New Requests Here / Re: Create an empty txt file in the active window
« Last post by Contro on June 17, 2012, 02:17 PM »
This file template.ahk I don't understand what I have to do :

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Recommended for catching common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

 :-*
3206
Post New Requests Here / Re: Create an empty txt file in the active window
« Last post by Contro on June 17, 2012, 02:14 PM »
Found in

M:\Windows\Shellnew
 :-*
3207
Post New Requests Here / Re: Create an empty txt file in the active window
« Last post by Contro on June 17, 2012, 02:13 PM »
Not found in that folder. I'll try in the entire installation disk M: . if not found I'll try in the portable installation directory of AHK. If not found I will look in the windows registry.
 :)
3208
Post New Requests Here / Re: Create an empty txt file in the active window
« Last post by Contro on June 17, 2012, 02:08 PM »
 :-*
It's difficult for me to understand this phrase :
"Template script (you can customize this template by editing "ShellNew\Template.ahk" in

your Windows folder)"

I'll try in the C:\Windows\ Folder and comment.

3209
Post New Requests Here / Re: Create an empty txt file in the active window
« Last post by Contro on June 17, 2012, 02:06 PM »
 ;D
Seen

Win+n

By the way. I am studying your web and seems you have a reward soft perhaps similar to Points Motivator from Mouser. I will take a good look. It's very interesting.

Best Regards

the script is residente. I am creating instructions.txt files only when I am downloading wonderful software to document the installation. it's not all time, so I would prefer one icon less in the tray icon.
I have hidden someones, but I have a lot and sometimes problems of memory

 :P


3210
Post New Requests Here / Re: Create an empty txt file in the active window
« Last post by Contro on June 17, 2012, 01:56 PM »
Here is an AutoHotkey script that will do what you ask (attached is an compiled EXE as well). You can change the hotkey by editing the script. Right now it is set to Win+N (#n in the script). This works on my Windows 7 system. Not sure about others, you'll have to test it out. Hope this helps.

;
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         Chris Gingerich
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in

your Windows folder)
;

; Creates a new textfile in the current folder if an explorer window is active.

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#n::
IfWinActive,ahk_class CabinetWClass
{
  Send !fwt
}

 :-* :-\
I am trying to understand the hotkey. I have to study AHK of course.

I'll come back and comment.
 :)
3211
Post New Requests Here / Execute a launch menu with prior password protection
« Last post by Contro on June 16, 2012, 05:46 PM »
Execute a launch menu with prior password protection

I have found a little piece of soft to protect a procedure. But I don't know where to put my menu soft : menuak.ahk

the piece is this :

#SingleInstance Ignore
SetBatchLines, -1

Menu, Tray, NoStandard
Menu, Tray, Add, Exit, GuiClose
Menu, Tray, Default, Exit

InputBox, uName, User`?, Enter your USERNAME!
If uName = Hotdog
  InputBox, uPass, Pass`?, Enter your PASSWORD!, HIDE
Else
  {
    Msgbox, 48, LOL, Wrong guess`, oh foolish mortal!
    Goto, GuiClose
  }

If uPass = Bun
  Goto, EnterScript
Else
  Msgbox, 48, LOL, Geez`, you just can't win!

GuiClose:
  ExitApp
Return

EnterScript:
Msgbox, 48, Ah-HA, Congratulations! You've made it!


Where can I put to run my menuak.ahk ?¿?¿

Best Regards

P.D. Any other piece of source code more powerful is welcome (by example giving me 3 tries, or more complex interaction)

3212
Post New Requests Here / Re: Create an empty txt file in the active window
« Last post by Contro on June 16, 2012, 05:43 PM »
Wonderful indeed. I promised try and comment.
Now I have a piece of code from AHK and need something else. But that is another post.

Thanks everyone.
Miles I am enjoying every day ReOpen.
Best Regards
3213
Post New Requests Here / Create an empty txt file in the active window
« Last post by Contro on June 16, 2012, 01:35 PM »
Create an empty txt file in the active window

I would like the code for create an empty txt file , by example instructions.txt in the folder open and active with a hotkey assign.


In other words create a file in the open window.

I supposed i need an ini configuration file for this purpose.

 :-*
3214
General Software Discussion / Re: Go Back
« Last post by Contro on June 15, 2012, 06:48 PM »
Timer is the more aseptic

Is something exist have a parametric combination.
I am wishing to try the program and give more ideas, but the more simple better best

 :P
3215
General Software Discussion / Go Back
« Last post by Contro on June 14, 2012, 03:55 PM »
I would like a soft to put my cursor where I was ten minutes ago.

Not undoing
Not restoring
Not keylogger

Simply come back to a place.

Something like a history cursor.

Do you know soft for this ?

3216
General Software Discussion / Re: Fast as the wind
« Last post by Contro on June 14, 2012, 03:53 PM »
I would recommend using Word's native VBA.  Unfortunately this will only work in Microsoft Office applications.  Not FF, N++, etc.  You can also try to create a script using AHK, but you may find that it acts differently in each application.

RE: The cursor going to the 'home' position after a deletion:   I don't see this happening...  If I use Word, and delete a section, the cursor stays in that spot.

Happen to me with codes or fields in Word 2002. It's that version what I need to use because of my fusion with goldmine 5.5.

I think that an AHK script able to determine the open application can act according.
and even don't act under certain programs.

3217
General Software Discussion / Re: Fast as the wind
« Last post by Contro on June 14, 2012, 10:56 AM »
Something like Shift+F5 but more powerful

 :(
3218
General Software Discussion / Re: Fast as the wind
« Last post by Contro on June 14, 2012, 10:16 AM »
I need a special one.

It's very disgusting when I delete certain elements in word that take me to the beginning of the document.

In what way can I come back to the initial place without undo the change ?

Best Regards

Note : a Soft to remember the last cursor position.
3219
General Software Discussion / Re: Fast as the wind
« Last post by Contro on June 14, 2012, 10:13 AM »
Eleman I have the meaning of Control+G in english : Go to.

Too many keys used to go.

I am looking for more powerful scripts.

I know the hotkeys from Word xp

http://www.shortcut-...s-microsoft-word.php
3220
General Software Discussion / Re: Fast as the wind
« Last post by Contro on June 14, 2012, 10:10 AM »
Try ctrl-g in word.

I know a lot of word combinations for keyboard shortcuts. But I am looking for special ones.
Control+G in my system under word xp is for save a file...
3221
General Software Discussion / Fast as the wind
« Last post by Contro on June 14, 2012, 09:40 AM »
 ;D

I am looking for going fast in word 2002 or xp.
So I need definable macro scripts.
But AHK is much better because I can use in other environments too.

I have a trauma with Word when I delete something and leave me in the first page again of my document.
I have study a lot of ways to take control of my "situation" in the word document.
But I want more ( I need more).

Somethings I would like to do is being able with definable hotkeys to go quickly from one part of the document to any other : five pages in advance, retro five pages, and so on.

Do you know software for this or is time for a coding snack ?

 :-*

P.D. to use with Adobe Acrobat 7, notepad++ if possible, and so on.
I supposed that all environments are not possible : Firefox, etc.

I need, to begin, a script to take me five pages in advance, and other hotkey to take me five page retro.

 :P
3222
Post New Requests Here / Another Little modification to menuak.ahk
« Last post by Contro on June 10, 2012, 04:20 PM »
I would like to assign a light color definable to each launch option...

 :-[

This is the initial code. Produces options in grey. Perhaps is needed a third option to select background color :
1. Button Title
2. Program to run
3. Color for background selection....

  
Code: Autohotkey [Select]
  1. IniRead, numRows, launcher.ini, General, numRows, 0
  2. IniRead, numCols, launcher.ini, General, numCols, 0
  3. if !numRows
  4.   InputBox, numRows, , Enter number of rows   , , 200, 120, , , , , 5
  5. if !numCols
  6.   InputBox, numCols, , Enter number of columns, , 200, 120, , , , , 2
  7. IniWrite, %numRows%, launcher.ini, General, numRows
  8. IniWrite, %numCols%, launcher.ini, General, numCols
  9.  
  10. Loop % numRows*numCols
  11. {
  12.   IniRead, Title%A_Index%, launcher.ini, Titles, Title%A_Index%, %A_Index%
  13.   IniRead, Path%A_Index%, launcher.ini, Paths, Path%A_Index%,
  14. }
  15.  
  16. Gui, Add, Button, w150 r1.5 gRun vButt1, %Title1%
  17. Gui, Add, Button, w40 hp xp+150 gEdit vEdit1, Edit
  18. Edit1:=1
  19. Butt1:=1
  20.  
  21. Loop % numRows*numCols-1
  22. {
  23.   Index:=A_Index+1
  24.   Title:=Title%Index%
  25.   ys:=!Mod(Index-1, numRows) ? "ys" : "xp-150 yp+35"
  26.   Gui, Add, Button, w150 hp %ys% gRun vButt%Index%, %Title%
  27.   Gui, Add, Button, w40 hp xp+150 gEdit vEdit%Index%, Edit
  28.   Edit%Index%:=Index
  29.   Butt%Index%:=Index
  30. }
  31.  
  32. Gui, Show, , Menu expedientes
  33.  
  34. Gui 2:+owner
  35. Gui 2:Add, Text, right, Button title:
  36. Gui 2:Add, Text, right, Program to run:
  37. Gui 2:Add, Edit, w300 ys vSelTitle
  38. Gui 2:Add, Edit, w300 vSelPath
  39. Gui 2:Add, Button, w25 gFileSelect vFileSelect r0.9 xp+300 yp, ....
  40. Gui 2:Add, Button, w100 gSelOk r1.5 xp-250 yp+35 default, OK
  41.  
  42. return
  43.  
  44.   tpp:= % "Path" %A_GuiControl%
  45.   Run % %tpp%
  46. return
  47.  
  48.   Gui +Disabled
  49.   cIndex:=%A_GuiControl%
  50.   GuiControl, 2:, SelTitle, % Title%cIndex%
  51.   GuiControl, 2:, SelPath, % Path%cIndex%
  52.   FileSelect:=cIndex
  53.   Gui 2:Show, , Select options for button ?%cIndex%
  54. return
  55.  
  56. FileSelect:
  57.  Gui +OwnDialogs
  58.   FileSelectFile, Path%cIndex%, 3, %A_ProgramFiles%, Select program to run with button ?%cIndex%, Programs(*.exe;*.lnk;*.bat)
  59.   GuiControl, 2:, SelPath, % Path%cIndex%
  60. return
  61.  
  62.  
  63. 2GuiClose:
  64.  Gui 1:-Disabled
  65.   Gui 2:Cancel
  66. return
  67.  
  68. SelOk:
  69.  Gui 1:-Disabled
  70.   Gui 2:Submit
  71.   Path%cIndex%:=SelPath
  72.   Title%cIndex%:=SelTitle
  73.   GuiControl, 1:, Butt%cIndex%, % Title%cIndex%
  74.   IniWrite, % Title%cIndex%, launcher.ini, Titles, Title%cIndex%
  75.   IniWrite, % Path%cIndex%, launcher.ini, Paths, Path%cIndex%
  76. return

3223
Post New Requests Here / Re: CorrectWRegistry
« Last post by Contro on June 09, 2012, 09:54 AM »
I am using for years Piriform ccleaner and revo uninstaller free version.
But for any reason I always end in the add/remove option.
 :-[
3224
General Software Discussion / Copy Script
« Last post by Contro on June 08, 2012, 10:28 AM »
I have some software related, but I would like a freeby for copying files and folders from one pc to another.
And made my scripts similar to Cobian Backup, but able to propone after in a launcher or by command line modifiers to launch that profile or copy task directly from the command line.
A feature may be exclude some files (exclusion rules)
Other feature the shadow files copy option.

Best Regards
3225
Post New Requests Here / Re: Little modification to menuak.ahk
« Last post by Contro on June 06, 2012, 06:19 PM »
What is this splendid menuak?

Is a menu maker. You can propose webs, exe, bat, and so on. I am using a menu with 225 options. Marvellous.
Above is the code.

 :)
Pages: prev1 ... 124 125 126 127 128 [129] 130 131 132 133 134 ... 158next