1
Post New Requests Here / Re: IDEA: Standardize File Name With AHK Dialog Boxes
« on: November 25, 2009, 03:14 PM »
Wow it looks like we are on track. I will work on this a little more and post again in a day or 2. Thank you very much.
To Target:
I attempted to add this code and make it "auto pop up" but ti did not seem to work under Word for me, som other programs have other titles which I can add in later, such as "Save Drawing" etc.
Could you please post the code snippit that you appended this to that worked for you so I could see where I am going wroing. Also, could I not also just look at the prefix "Save" on the active window to trigger this script?
To Target:
I attempted to add this code and make it "auto pop up" but ti did not seem to work under Word for me, som other programs have other titles which I can add in later, such as "Save Drawing" etc.
Could you please post the code snippit that you appended this to that worked for you so I could see where I am going wroing. Also, could I not also just look at the prefix "Save" on the active window to trigger this script?
a small 'enhancement' (if i may...)Loop
{
ifwinactive, Save As
; ***(Could this be written with a StringMid to look at the first 4 characters, and if they = Save, then this is triggered. )***
{
gosub filename
winwaitclose, Save As
}
ifwinnotexist, Save As
gui, destroy
Sleep, 1500
}
FileName:
to the top of the above script means that the gui will popup automagically whenever a 'save as' dialog is open (it will also destroy the gui when the dialog has been closed if the user hasn't already closed it)
should work with any dialog with 'Save As' in the title - tested fine with both Word and Excel-Target (November 24, 2009, 11:46 PM)