Jump to content

rich2323

Active Members
  • Posts

    52
  • Joined

  • Last visited

rich2323's Achievements

Wayfarer

Wayfarer (2/7)

1

Reputation

  1. Thank you for finding the solution, it works perfect for my needs. Rich
  2. Change the .pdf extension to open with Adobe Acrobat Standard set as the default. Rich
  3. So I was able to get to my goal, but was hoping to find something that did not rely on using Send command. Local $filepath = "c:\troyit\testpdf.pdf" Local $iPid = Run("explorer.exe /n,/e,/select," & $filepath) ProcessWait($iPid) Send('!{Enter}')
  4. I am trying to launch the files properties of a file in a script. I have tried this but it give me an error. ShellExecute ("C:\Troyit\testpdf.pdf","","","properties" ) Any suggestions? Thanks, Rich
  5. Well, it looks like this VBS script does not work. Anyone else had succuss changing the MAX usage using Autoit? Rich
  6. Hi, So I am trying to setup System Restore on all my Windows 7 machines. System restore was turned off before the imaging process and we now want to turn it back and configure it on each machine. So for I have been able to turn using the following script to turn on System Restore: _SR_Enable("C:\") Func _SR_Enable($DriveL = $SystemDrive) If Not IsObj($obj_SR) Then $obj_SR = ObjGet("winmgmts:{impersonationLevel=impersonate}!root/default:SystemRestore") If Not IsObj($obj_SR) Then Return 0 If $obj_SR.Enable($DriveL) = 0 Then Return 1 Return 0 EndFunc The issue is that when I use the above script, the system is set for 0% MAX disk space use, so I need to change the MAX Usage to 5%. I have found this vbs code, but I am having a hard time converting this to autoit: Const GLOBAL_INTERVAL_IN_SECONDS = 100000 Const LIFE_INTERVAL_IN_SECONDS = 8000000 Const SESSION_INTERVAL_IN_SECONDS = 500000 strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\default") Set objItem = objWMIService.Get("SystemRestoreConfig='SR'") objItem.DiskPercent = 10 objItem.RPGlobalInterval = GLOBAL_INTERVAL_IN_SECONDS objItem.RPLifeInterval = LIFE_INTERVAL_IN_SECONDS objItem.RPSessionInterval = SESSION_INTERVAL_IN_SECONDS objItem.Put_ Has anyone else configured System Restore ? Thanks, Rich
  7. BrewManNH Right now i do have a TrayMenu item that does have the info in it. The pupose of the tooltip is to quick move over the icon and see what updates are need. All though its messy it does it quickly and without any clicking.
  8. Thakns Firefox, Ill take a look at your code. BrewManNH Thanks for your feedback. I need to display anywhere between 10-400 characters. I want to have the display similar like how the tray tip displays when hovering over the tray icon. I am open to other suggestions. I have an app that need to show availalbe updates when hovering over the icon. Sometimes its 1 item and other it can be 50. Each requiring a line item. 128 characters goes quick. Thanks, Rich
  9. Well, I am feeling pretty stupid at this point, but using TrayGetMsg() I am having the same issue where it continuously displays the message.
  10. guinness, I have looked at the toast option, and was able to get toast to display a message when I have the mouse of the tray icon, but it continually displays the message over and over even when I don't have the mouse over the tray icon any longer. Rich here is my code #include <TrayConstants.au3> ; Required for the $TRAY_EVENT_PRIMARYDOUBLE and $TRAY_EVENT_SECONDARYUP constants. #include <MsgBoxConstants.au3> #include "Toast.au3" Global $sMsg, $hProgress, $aRet[2] Global $sAutoIt_Path = StringRegExpReplace(@AutoItExe, "(^.*\\)(.*)", "\1") Opt("TrayMenuMode", 3) ; The default tray menu items will not be shown and items are not checked when selected. These are options 1 and 2 for TrayMenuMode. Opt("TrayOnEventMode", 1) ; Enable TrayOnEventMode. Example() Func Example() TrayCreateItem("About") TrayCreateItem("") ; Create a separator line. TrayCreateItem("Exit") TrayItemSetOnEvent(-1, "ExitScript") TraySetOnEvent($TRAY_EVENT_PRIMARYDOUBLE, "TrayEvent") TraySetOnEvent($TRAY_EVENT_SECONDARYUP, "TrayEvent") TraySetOnEvent($TRAY_EVENT_MOUSEOVER, "TrayEvent") TraySetState(1) ; Show the tray menu. While 1 Sleep(100) ; An idle loop. WEnd EndFunc ;==>Example Func TrayEvent() Switch @TRAY_ID ; Check the last tray item identifier. Case $TRAY_EVENT_PRIMARYDOUBLE ; Display a message box about the AutoIt version and installation path of the AutoIt executable. MsgBox($MB_SYSTEMMODAL, "", "AutoIt tray menu example." & @CRLF & @CRLF & _ "Version: " & @AutoItVersion & @CRLF & _ "Install Path: " & StringLeft(@AutoItExe, StringInStr(@AutoItExe, "\", 0, -1) - 1)) ; Find the folder of a full path. Case $TRAY_EVENT_SECONDARYUP MsgBox($MB_SYSTEMMODAL, "", "The secondary mouse button was released on the tray icon.") Case $TRAY_EVENT_MOUSEOVER Opt("TrayOnEventMode",0) ConsoleWrite("TESTIJG"& @CRLF) $sMsg = "This Toast uses colours and font defined in a _Toast_Set call." & @CRLF & @CRLF $sMsg &= "Subsequent Toasts will use these values until they are reset by another _Toast_Set call" & @CRLF & @CRLF $sMsg &= "You can also display a standard icon - or one from an exe as here" & @CRLF & @CRLF $sMsg &= "The next Toast has a very small message to show the pre-set minimum size" _Toast_Set(5, 0xFF00FF, 0xFFFF00, 0x0000FF, 0xFFFFFF, 10, "Arial") $aRet = _Toast_Show(@AutoItExe, "User-defined Colours and Bold Header", $sMsg, 5) ConsoleWrite("Toast size: " & $aRet[0] & " x " & $aRet[1] & @CRLF) _Toast_Hide() Sleep (2000) Opt("TrayOnEventMode",1) EndSwitch EndFunc ;==>TrayEvent Func ExitScript() Exit EndFunc ;==>ExitScript
  11. Tooltip is limited to 128 characters. What other options do I have to display over 128 characters when the mouse is over the tray icon like tooltip does? Rich
  12. Thank you very much works like a charm! Rich
  13. Is there a way to check to see if a iphone or ipad is connect to usb using Autoit? Rich
  14. Has anyone else had any issues with this script since filehippo updated their website? Rich
  15. So for now I got around the issue by extracting the msi and cab files, then running the the msi silently to install. Its not optimal since there is not an easy way to extract the files from the executable but it will have to do for now. Thanks, Rich
×
×
  • Create New...