Jump to content

Raven1

Members
  • Posts

    14
  • Joined

  • Last visited

About Raven1

  • Birthday December 11

Profile Information

  • Location
    USA

Raven1's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. Instead of sending "{TAB}", "{TAB}", "{TAB}", "{ENTER}", have you tried sending "!i", which would send "ALT+i"?
  2. I see 2 things wrong. The MsgBox that popped up with "7z8yc8fz.default" in it should have been your first clue. It is just the name of the folder, but the FileCopy function needs the full path for the destination. Second, in your FileCopy function you have the destination as "$file" which is a string not a variable. Lose the quotation marks. Fulano's reformatting of the code makes that last part stand out. - Hope this helps.
  3. trancexx is correct. On x64 Vista and Windows 7, file system redirection redirects calls to the system32 folder by 32-bit programs to the syswow64 folder, but there is no 32-bit version of System Restore (rstrui.exe) in the syswow64 folder. You can use the code below to temporarily disable File System Redirection while you make the call. If @OSArch = "X64" Then Local $stOldVal = DllStructCreate("dword") DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "ptr", DllStructGetPtr($stOldVal)) ShellExecute (@WindowsDir & "\System32\rstrui.exe") DllCall("kernel32.dll", "int", "Wow64RevertWow64FsRedirection", "ptr", DllStructGetPtr($stOldVal)) Else ShellExecute (@WindowsDir & "\System32\rstrui.exe") EndIf
  4. Check the help file for the #RequireAdmin function.
  5. My programming experience is limited, so I am wondering the same thing. If you figure it out, please share with the rest of us. Here is a link with some background information that may help you get started. http://windowsteamblog.com/blogs/develop...he-windows-7-taskbar-application-id.aspx And a 3 part article specific to Jump Lists. http://windowsteamblog.com/blogs/developers/archive/2009/06/22/developing-for-the-windows-7-taskbar-jump-into-jump-lists-part-1.aspx http://windowsteamblog.com/blogs/developers/archive/2009/06/25/developing-for-the-windows-7-taskbar-jump-into-jump-lists-part-2.aspx http://windowsteamblog.com/blogs/developers/archive/2009/07/02/developing-for-the-windows-7-taskbar-jump-into-jump-lists-part-3.aspx
  6. I think that if you run it as administrator it will return 1 in the message boxes. At least it did on my PC, but I have Vista x64. You could set the AutoIt3Wrapper to modify the manifest file so that it will always require administrator approval when executing. #Region AutoIt3Wrapper directives section #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator ;None, asInvoker, highestAvailable or requireAdministrator (default=None) #EndRegion One of the advantages to this method over the #RequireAdmin method is that you will get the UAC shield overlay on your icon.
  7. mrbond007 posted a function that will do what you want. Here: #370334
  8. In your code snippet, you spell the variable $domain 2 different ways. Maybe this is where the problem is? RunAsWait($username, $doamin, $password, ...
  9. First, verify that this is the correct key. I usually right-click on the key name and choose Copy Key Name, then paste it into my code. Second, try HKCR\Installer\Products\40C30C53F1F32C249A987A75EE96F156 On my PC, it was not in the Wow6432Node, so you shouldn't need the 64 in the hive name. Third, try HKLM\SOFTWARE\Classes\Installer\Products\40C30C53F1F32C249A987A75EE96F156 On my PC, I had the same Product ID in both locations. As a matter of fact, I had the same Product ID in many locations in the registry, so you might want to do a full search of the registry for that Product ID.
  10. First, make sure that the Telnet Client is installed on your PC -> C:\Windows\System32\Telnet.exe If not, then you will have to add it using "Turn Windows Features On or Off" (Vista) or "Add/Remove Windows Components" (XP). Second, check the AutoIt help file for the ShellExecute() function. ShellExecute("telnet", "open 192.168.1.1")
  11. If you type msiexec into a command prompt you will get a list of options. One of them is /quiet which is quiet mode, no user interaction. This will automatically choose all of the default options in the installation process, so if you want to change one of those options to the non-default option then you can use AutoIt to send keystrokes. Check the AutoIt help file for these functions, which should help you get started: ProcessWait () WinWait () WinActive () WinActivate () WinWaitActive () Send () ControlFocus () ControlSend () ControlClick ()
  12. Assuming Windows XP, you could use the following DOS commands using RunWait(@ComSpec & ... net localgroup http://technet.microsoft.com/en-us/library/bb490706.aspx This will create the local group and add members cacls http://technet.microsoft.com/en-us/library/bb490872.aspx This will modify the folder permissions To create the folder you could use the AutoIt function DirCreate() Check the AutoIt help file for the correct syntax.
  13. I have been using this bit of code to assign the name of the OS to a variable that I can use elsewhere in my scripts. Global $nOSversion = RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion") ; Assign OS version number to variable ; Assign OS name to string variable depending on OS version number Switch $nOSversion Case 6.1 Global $sOSName = "Windows 7" Case 6.0 Global $sOSName = "Windows Vista" Case 5.1 Global $sOSName = "Windows XP" Case 5.0 Global $sOSName = "Windows 2000" Case Else Global $sOSName = "Old Windows Version" EndSwitch
  14. I don't want to preach or anything like that, especially since this is my first post, but... Rather than someone giving me the answer, I find it more satisfying if I discover the answer myself. The helpfile does explain how you can use the FileGetVersion function to get the ProductVersion.
×
×
  • Create New...