autoit script script to open close folder need script to open/close a folder
#1
Posted 01 September 2005 - 07:11 AM
and close it automatically after 15~20 sec
open it and close after 20 sec
#2
Posted 01 September 2005 - 07:41 AM
For $i = 1 To 2
Run('explorer ' & @WindowsDir)
Sleep(20000)
WinClose('WINDOWS')
Next
#4
Posted 01 September 2005 - 07:47 AM
For $i = 1 To 2
Run('explorer ' & @WindowsDir & '\Fonts')
Sleep(20000)
WinClose('Fonts')
Next
#5
Posted 01 September 2005 - 10:35 AM
opened fontfolder in maximized order
after 20 sec it restored
but didn't closed..
#6
Posted 01 September 2005 - 11:11 AM
For $i = 1 To 2
$pid = Run('explorer ' & @WindowsDir & '\Fonts')
Sleep(20000)
ProcessClose($pid)
Next
This might work instead - it uses the process id (pid) retrieved from the Run function, so that the window title of the fonts folder doesn't matter.
Got it from the AutoIt help file > Function reference > Process management
#7
Posted 01 September 2005 - 11:24 AM
it opened the font folder
then after 20 sec.. it restored the windows (maximized to restore mode)
doesn't closes the font folder
its there only
only the size of the windows is changed..
i am shocked
i have attached both the screenshot (initial and final)
first one is the open stage
second one is after 20 sec is passed
Attached File(s)
-
opened.JPG (78.46K)
Number of downloads: 14 -
after20.JPG (56.52K)
Number of downloads: 5
#8
Posted 01 September 2005 - 11:33 AM
Btw, i tested both scripts and mine didn't work, but the one MHz provided did the job just fine...
Run('explorer ' & @WindowsDir & '\Fonts')
Sleep(20000)
WinClose('Fonts')
Maybe if you tried quotes instead? (" instead of ')?
And does it work with any other folder?
#9
Posted 01 September 2005 - 11:44 AM
opens fine but finally restored covering half windows
#10
Posted 01 September 2005 - 12:14 PM
Try searching the AutoIt forums, perhaps you'll find an answer there. Since it's happening on your pc and not on mine, i'm guessing it's related to the way you set up Windows or AutoIt, but that's as far as my knowledge goes...
http://www.autoitscript.com/forum/
Good luck!
#11
Posted 01 September 2005 - 12:25 PM
Nepali, on Sep 2 2005, 03:44 AM, said:
You have your titles set for full path to be shown. So I will use a substring option to cater for it
Opt("WinTitleMatchMode", 2)
For $i = 1 To 2
Run('explorer ' & @WindowsDir)
Sleep(20000)
WinClose('WINDOWS')
Next
For $i = 1 To 2
Run('explorer ' & @WindowsDir & '\Fonts')
Sleep(20000)
WinClose('Fonts')
Next
#12
Posted 02 September 2005 - 09:23 PM
Can't believe i didn't think of that :/
#13
Posted 02 September 2005 - 09:43 PM
worked fine
Quote
Run('explorer ' & @WindowsDir & '\Fonts')
Sleep(9000)
WinClose('Fonts')
thanks Mhz, Mojo
#14
Posted 03 September 2005 - 11:18 AM
explorer %systemroot%\fonts ping -n 10 127.0.0.1>nul taskkill /fi "windowtitle eq %systemroot%\Fonts" /im explorer.exe taskkill /fi "windowtitle eq Fonts" /im explorer.exe
This post has been edited by vcBlackBox: 03 September 2005 - 11:37 AM
#15
Posted 03 September 2005 - 11:31 AM
i think this a command script
but didn't worked in mine
the command windows exit leaving font folder opened
#16
Posted 03 September 2005 - 11:38 AM
explorer %systemroot%\fonts ping -n 10 127.0.0.1>nul taskkill /fi "windowtitle eq %systemroot%\Fonts" /im explorer.exe taskkill /fi "windowtitle eq Fonts" /im explorer.exe
This post has been edited by vcBlackBox: 03 September 2005 - 11:39 AM
#18
Posted 03 September 2005 - 10:17 PM
msubedi, on Sep 4 2005, 01:56 PM, said:
<{POST_SNAPBACK}>
Quote
That is because the comparison has been edited.
Edit: Specifing changes can save misleading people.
This post has been edited by MHz: 03 September 2005 - 10:19 PM



Help

Back to top








