
vrocco
Active Members-
Posts
82 -
Joined
-
Last visited
Everything posted by vrocco
-
Does anyone have a script that sends search queries to a searchbar program installed within a browser?
-
For a long time my organization was behind the times. We were using Windows XP right through the whole Vista phase. Now we just migrated to a new Windows 7 load for all our machines. Being in a government environment, the machines are heavily locked down, GPO enforced, UAC fully on, etc, etc. I just can't see how to make AutoIt do anything in this environment. The biggest benefit to me of AutoIt in XP was that I could write a script that would run with admin rights. This allowed the user to download a script and run it to get something accomplished without me having to log into every box as admin. I could even present them with a GUI that gave them choices if that was necessary. There doesn't seem to be any way to do this in AutoIt (running the script as admin from normal user account). Not from what I have found searching these forums anyway. If I am wrong about this, can someone give me an example of a script that performs an admin function (edit HKLM, create admin group user, etc) that be run by an unprivileged user. I need to not have UAC interfere at all. This means either shut it off temporarily until the script finishes, or bypass it somehow. Or is it time to abandon AutoIt and try to find something else? What other options are there? Please realize I am not trying to start a flame war, just honestly asking for guidance on this.
-
Installing Dameware Service in Windows 7 with UAC
vrocco replied to vrocco's topic in AutoIt General Help and Support
bump...anyone? -
Installing Dameware Service in Windows 7 with UAC
vrocco replied to vrocco's topic in AutoIt General Help and Support
Can anyone see a problem with the script? Why isn't it running, but not giving me any errors? -
Installing Dameware Service in Windows 7 with UAC
vrocco replied to vrocco's topic in AutoIt General Help and Support
No for some reason it doesn't work in Windows 7 (at least not with our combination of GPO, settings, etc). In XP, as soon as you tried to connect to the target, it would detect if the service was installed or not and install it if needed. Now, the only way we could get it to connect is if the service is installed beforehand and already running. Hence the need to script the service install. If you know another way I can try from the dameware console, I am open to suggestions. -
I need to push out a script to install the dameware mini remote service on machines running Windows 7 with UAC enabled (disabling UAC is not an option). I need the script to be able to be run by the user without elevating. User has write access to C:, so I created a temp directory, copied all files there, then tried to do the elevated part by using a RunAs @comspec. The problem is, it's not working at all. What am I missing here. The script just exits with no errors, but doesn't even create the directory. Thanks for the help DirCreate("C:\dwrcs") ;Copy files needed for Dameware NT Utilities FileInstall("DNTUS26.exe", "C:\dwrcs\DNTUS26.exe") ;Copy files needed for Dameware Mini Remote FileInstall("DWRCK.dll", "C:\dwrcs\DWRCK.dll") FileInstall("DWRCRSS.dll", "C:\dwrcs\DWRCRSS.dll") FileInstall("DWRCS.exe", "C:\dwrcs\DWRCS.exe") FileInstall("DWRCSET.dll", "C:\dwrcs\DWRCSET.dll") FileInstall("DWRCSh.dll", "C:\dwrcs\DWRCSh.dll") FileInstall("DWRCST.exe", "C:\dwrcs\DWRCST.exe") FileInstall("DWRCWXL.dll", "C:\dwrcs\DWRCWXL.dll") ;Copy files needed for FIPS modules FileInstall("ccme_base.dll", "C:\dwrcs\ccme_base.dll") FileInstall("ccme_ecc.dll", "C:\dwrcs\ccme_ecc.dll") FileInstall("ccme_eccaccel.dll", "C:\dwrcs\ccme_eccaccel.dll") FileInstall("ccme_eccnistaccel.dll", "C:\dwrcs\ccme_eccnistaccel.dll") FileInstall("cryptocme2.dll", "C:\dwrcs\cryptocme2.dll") FileInstall("cryptocme2.sig", "C:\dwrcs\cryptocme2.sig") FileInstall("DWRCRSA.dll", "C:\dwrcs\DWRCRSA.dll") ;Move files to proper directories and install services RunAs("admin", @ComputerName, "passwords", 0, @ComSpec & "mkdir C:\Windows\dwrcs") RunAs("admin", @ComputerName, "passwords", 0, @ComSpec & "copy C:\dwrcs\*.* C:\Windows\dwrcs") RunAs("admin", @ComputerName, "passwords", 0, @ComSpec & "move C:\Windows\dwrcs\DNTUS26.exe C:\Windows\system32 /Y") RunAs("admin", @ComputerName, "passwords", 0, @ComSpec & "C:\Windows\dwrcs\DWRCS.exe -install") RunAs("admin", @ComputerName, "passwords", 0, @ComSpec & "C:\Windows\system32\DNTUS26.exe -install") ;Start services RunAs("admin", @ComputerName, "passwords", 0, @ComSpec & "net start DWMRCS") RunAs("admin", @ComputerName, "passwords", 0, @ComSpec & "net start DNTUS26") ;Cleanup DirRemove("C:\dwrcs", 1) Exit
-
Two Controls with same Control ID
vrocco replied to vrocco's topic in AutoIt General Help and Support
Got it. Thank you for the help. -
Two Controls with same Control ID
vrocco replied to vrocco's topic in AutoIt General Help and Support
I don't think there are command line switches to install/accept agreement. If there are, I can't find anything about them in the install documentation. Using the AutoIt Info tool, they show the exact same Control ID and are located in the same window (same visible text and everything) They have different ClassNameNN but I don't see where ControlClick supports that. -
Please take a look at the attached screen shot. I am trying to script an install to automatically click the proper controls. On this page you must agree to the first section then the second becomes active and you must agree to the second. However, both "accept" controls have the same Control ID. My question is how do I use ControlClick to click one and then the other? Can it be done by ClassNameNN? Thanks for the help. license.bmp
-
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
Success!! Thanks again -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
hahaha as soon as i submitted my post, I saw yours. That is what i will have to do. Thanks for all the help and patience -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
As I understand it, here is what I think is happening. When that ".Send" executes, the window pops up. However, autoit won't move on to the next line of the script until that .Send completes. And the .Send won't complete until either "Ok" or "Cancel" is clicked on that window. This is why when we looked for the window with a separate script while the main script was running, it found it. However, since the .Send never completes, it never gets to the part of the script that looks for the window. When I hit "Cancel", the window is gone and so it can't find it then either. Does this sound right? Any ideas? -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
OK here's what happens. When I run it I get this in the console (MAC and system name edited): >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "F:\New Machine Load\Scripting\Scripts\test.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams +>10:49:49 Starting AutoIt3Wrapper v.2.0.1.24 Environment(Language:0409 Keyboard:00000409 OS:WIN_XP/Service Pack 3 CPU:X64 OS:X86) >Running AU3Check (1.54.19.0) from:C:\Program Files\AutoIt3 +>10:49:49 AU3Check ended.rc:0 >Running:(3.3.6.1):C:\Program Files\AutoIt3\autoit3.exe "F:\New Machine Load\Scripting\Scripts\test.au3" MACAddress: 00:00:00:00:00 Name: Broadcom NetXtreme Gigabit Ethernet SystemName: PA*******11 After FileClose After ObjectCreate: 0 After CreateItem: 0 At that point the pop up window that is the problem comes up on the screen and just sits there. It won't do anything. When I hit "Cancel" on that window, then I get: After SendMail: 0 F:\New Machine Load\Scripting\Scripts\test.au3 (70) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: Until $aWindows[0] = 1 Until ^ ERROR ->10:51:20 AutoIT3.exe ended.rc:1 >Exit code: 1 Time: 92.429 -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
it still does nothing. the window just sits there until I hit cancel on it. then it gives me an error that the array subscript is out of range. so it still doesn't see that window for some reason. -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
yeah i am stumped too -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
[0]|1| [1]|Message Classification - PAROCCOVS11 MAC Address|0x00070E7C Got a result. Why is it always showing 2 items in the array? Shouldn't we only get the window? -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
[0]|1| [1]|Message Classification - PAROCCOVS11 MAC Address|0x001A0D20 -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
[0]|8| [1]|On-Access Scan Messages|0x00010210 [2]|Message Classification - PAROCCOVS11 MAC Address|0x00040814 [3]|2 Reminders|0x0003051A [4]|Outlook Send/Receive Progress|0x00090336 [5]|McAfee AutoUpdate|0x000102E6 [6]|McAfee Agent Monitor|0x000102C4 [7]|On-Access Scan Statistics|0x0001022E [8]|Odtray Window|0x000201A8 -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
This one doesn't even give me the msgbox when I hit cancel -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
OK it does the same thing as before. Nothing until I hit the cancel button on the popup window and then I get the msgbox. Man this is frustrating. -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
That didn't do anything. However, here is something weird. When I did set the WinTitleMatchMode to 4 and used this: Do Sleep(500) Until WinExists("classname=#32770") MsgBox(0, "Got it", "Got window") It did nothing while the window was visible, but when I manually clicked the cancel button on the window, then the msgbox popped up. So somehow it exited that loop when I cancelled which it wasn't doing before. -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
Incidentally, here is the Au3Info. Am I missing something? Press CTRL-ALT-F to freeze the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: Message Classification - PAROCCOVS11 MAC Address Class: #32770 Size: X: 432 Y: 240 W: 417 H: 167 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 557 Y: 254 Cursor ID: 2 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0x3997DD Dec: 3774429 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: Control ID: ClassNameNN: Text: >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< Select Classification Level(s)... Classification UNCLASSIFIED Caveats OK Cancel >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< >> << &Help Verify Recipients -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
Still no MsgBox when doing it this way. I was looking at the Au3Info window and this window seems to have a different class than just the normal explorer windows. Would it be possible to use WinTitleMatchMode 4 with the classname to find it? I have never done that either. How would I format that? -
Outlook Mail with third party plugin
vrocco replied to vrocco's topic in AutoIt General Help and Support
I have never used ConsoleWrite before. How do I view the output? Do I need notepad or something open for it to write to? I tried to do something similar by placing a MsgBox after the WinExists function that just said "Got Window". It never gave me the message box, so I assume that is where it is stalling. I did check the AutoIt Info tool to make sure I had the window title and text set correctly and set the WinTitleMatch Mode to 2. Still no love. This isn't an option because they are set by global policy. All machines are part of a domain, so as the local admin, I don't have the power to change this. -
No "RunAsSet" anymore... now what. :(
vrocco replied to Dave70's topic in AutoIt General Help and Support
Hmmm....I can't really explain how my limited users were able to edit the registry by running a script then. I didn't run regedit as admin, I simply put RunAsSet at the beginning and used the Autoit registry command set.