Jump to content

autoit0822

Active Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by autoit0822

  1. I only have some ideas of functions that I can use, like ProcessExists.
  2. How can I create a script that will: run in the system tray; start a specified program; wait for that program to be closed; in HKCU\Software\Microsoft\Internet Explorer\MenuExt, delete keys that contain a specified word; exit?
  3. Thank you, again; this is great!
  4. This works well, thanks; just a couple of points: If I want to keep the notification visible for a few seconds (in the event that it is something useful), do I just change Sleep? How can I keep the program in memory, and run it each time that I open Evernote (which is always in memory, but minimised to the taskbar)?
  5. Thank you; but what if I don't have that registry key? (The path is %LOCALAPPDATA%\Apps\Evernote\Evernote\Evernote.exe)
  6. Class is ENMainFrame; ClassnameNN is ENMainFrameNotification1. I have attached a screenshot; the notification appears if your subscription is about to expire, or if you do not have one.
  7. I want to close the ENMainFrameNotification notification that appears in the program with a button to dismiss it.
  8. How can I create a script that will automatically close a control in Evernote after a few seconds? Using Au3Info, I know that the class of the control is ENMainFrameNotification; what other information should I provide?
  9. If _GUICtrlListView_ClickItem finds a PST file (window title "Outlook Data File"), how can I close that window and continue?
  10. Thank you! A couple of points, though: When the script finds a PST file (window title "Outlook Data File"), that window remains open and the script stalls. $hParameters = ControlGetHandle($hExchange, "", "[TEXT:Outlook Data &File Settings...]")Why is the requisite ampersand placed before "File" when an access key is not designated in the button?
  11. This script selects and compacts PST files, but not OST files: ;//Source: http://www.autoitscript.fr/forum/viewtopic.php?p=95920#p95920 #include <GUIListView.au3> Opt("WinTitleMatchMode", 4) SplashTextOn("Microsoft Outlook 2010 Data File Compacter", "Compacting data files...", 250, 40) $Path = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cpls", "mlcfg32.cpl") Run(@SystemDir & "\control.exe " & $Path) $hMailCfg = WinWait("Mail Setup", "E-mail Accounts") ControlClick("Mail Setup", "E-mail Accounts", "Button2") $hAccountWindow = WinWait("Account Settings", "Data Files") $hlist = ControlGetHandle($hAccountWindow, "", "[CLASS:SysListView32; INSTANCE:2]") If @error Then Exit $arraycount = _GUICtrlListView_GetItemCount($hlist) If Not $arraycount Then Exit MsgBox(16, "", "No data file found.") Local $ltext[$arraycount] For $i = 0 To $arraycount - 1 _GUICtrlListView_ClickItem($hlist, $i, "left", False, 2) $hDataFile = WinWait("Outlook Data File", "Outlook Data File") ControlClick($hDataFile, "", "Button2") $hWait = WinWait("Compact Now") WinWaitClose($hWait) WinClose($hDataFile) Next WinClose($hAccountWindow) WinClose($hMailCfg) SplashOff()If an OST file is selected, this additional window needs to be accounted for: I would like to adapt the script to take account of OST files, and ignore PST files.
  12. On reviewing the post from which I started this topic, I see from the bottom of the screen that it is in the Examples forum: perhaps it could have been made more conspicuous what forum I was starting a new topic in? Thank you; however, the script does not take account of Exchange (.ost) data files as pictured above. Would you be able, please, to adapt the script to compress Exchange (.ost) data files, and ignore .pst data files?
  13. I am trying to adapt this script to work in MS Outlook 2010 on Windows 7 x64. To begin with: ;//$Path = FileGetShortName(RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cpls", "mlcfg32.cpl")) ;//Run(@SystemDir & "\control.exe " & $Path) Run('%WINDIR%\SysWOW64\control mlcfg32.cpl')Then, at the point the script goes into each listed data file, this window doesn't seem to be accounted for:
  14. First test: result is "0". Second: telnet is not recognised. Third: empty dialog box. Stefan: my telnet is located in C:\Windows\System32; the problem I'm having is that an AutoIt script can't run outside this location.
  15. I tried your suggested code, both with and without .exe and a space after the /k, but it's still not recognising telnet.
  16. I have no trouble opening a command prompt manually and running telnet from there; I just can't get it to work in an AutoIt script. If I run("cmd.exe") or run(@ComSpec) or run(@ComSpec & " /k" & @SystemDir & "\telnet 192.168.1.1","") (and @SystemDir wrongly points to C:\Windows\SysWOW64 anyway), the script fails. It seems the only way I could possibly run the script is from C:\Windows\System32; but I'm hoping that others are using Windows 7 (64-bit) and have figured out a way around this problem.
  17. In Vista, I was able to run a script from D:\ and have Run("cmd.exe") open the command prompt for me to open a telnet session. In 7, the script tries to telnet from D:\. How can I get the script to telnet from where it should, regardless of where it is located? I've tried @ComSpec, and using @SystemDir as the working directory.
  18. Yes, telnet is enabled and working; the only issue is with the countdown not appearing in the window title.
  19. I have compiled a .exe file in Vista that only works in my XP VM.
  20. Looking at Window Titles and Text (Advanced), I can't find anything that would indicate why this script would not work as intended in Vista. The default WinTitleMatchMode, which matches partial titles from the start, would seem appropriate. I had considered running the script with elevated privileges, but it makes no difference. I had thought WolfWorld had posted a solution for me, editing the script as he did.
  21. Thanks, I think; it might help if I knew where in the help file to look. Anyhow, this doesn't work in Vista; the window title remains static.
  22. I have the following code working in Windows XP: Run("cmd.exe") Sleep(500) Send("Telnet 192.168.1.1") Send("{ENTER}") Sleep(1000) WinSetState("Telnet 192.168.1.1", "", @SW_MINIMIZE) For $i = 50 To 0 Step -1 $Title = WinGetTitle('Telnet 192.168.1.1') WinSetTitle($Title,'', 'Telnet 192.168.1.1 ' & $i) Sleep(1000) Next WinClose("Telnet 192.168.1.1") However, in Windows Vista, where I need it to work, the window title remains static.
  23. OK, I changed instances of [active] to the current title, but there is no countdown at all; the window title is static.
×
×
  • Create New...