
confuseis
Members-
Posts
13 -
Joined
-
Last visited
Everything posted by confuseis
-
I figured it out I need to remove an include libray #include <MsgBoxConstants.au3> and use #include <file.au3> also the text file I named test.txt but its real name was test.txt.txt as I didnt have the windows explorer option show extensions, that was a tricky one to spot.
-
Hi Im looking to read the contents of a text file but Im getting the error "WARNING: $FO_Read: possibly used before declaration" This error is flagged for the seconf line of below dont see why could anyone enlighten me? Thanks. Local Const $sFilePath ="\test-folder\test.txt" Local $hFileOpen = FileOpen($sFilePath, $FO_Read) Local $sFileRead = FileReadLine($hFileOpen, 1) FileClose($hFileOpen) Sleep(8000) Send($sFileRead)
-
Dealing with unexpected pop up windows
confuseis replied to confuseis's topic in AutoIt General Help and Support
I wasint aware of any other way Ive had a look and seethe _IECreate command and gave it a test and it opens the browser It opens up IE and the with the text specified, ill see if I can do it this way. Will using _IECreate stop the child windopws from Internet explorer occuring? Can we use this to open up chrome also? We have some web apps that must use chrome. When the browsers open I want them to open only the page I specify and not generate any other but they try to open their own tab 1st e.g. chrome goes first to its log into Chrome Tab. Please be mindful Im not a programmer Thanks Confuseis- 2 replies
-
- internet explorer
- pop up
-
(and 1 more)
Tagged with:
-
Hi Im looking to open a web site in internet explorer. Sometimes though other pop up windows appear and interfere. In Internet explorer for example a pop up "Welcome to Internet Explorer 8" will occur and this throws things off as I want to send text into web page after it opens. To counter this I am running internet explorer with extensions off to stop these windows from appearing but with mixed success. I need to be certain I can open internet explorer and search this web page, and send/enter a string of text into that web page. withot other Internet explorer sub windows throwing things off., In the below example I am reading a sting of text from a text file and entering it into internet explorer. This works sometimes and not others due to unforeseen windows spawining. If you know anything drop me a line Thanks Confuseis #include <array.au3> #include <file.au3> #include <MsgBoxConstants.au3> run("C:\Program Files\Internet Explorer\iexplore.exe -extoff -noframemerging https://some.website.com") ; read the username from the preexisting text file Local Const $sFilePath = "\scripts\TextInput.txt" Local $hFileOpen=FileOpen($sFilePath, $FO_Read) Local $sFileRead=FileReadLine($hFileOpen, 1) FileClose($hFileOpen) Sleep(2000) Send($sFileRead)
- 2 replies
-
- internet explorer
- pop up
-
(and 1 more)
Tagged with:
-
Map network drive on remote machine
confuseis replied to confuseis's topic in AutoIt General Help and Support
Thats the concusion I came to also all be in a different way got it working today -Hurrah. Maps in realtime on remote system. Online so many nay sayers saying it was impossible. -i is for interact psexec -i -u .LocalPCaccountname -p LocalPCPassword PChostname c:mapnetdrive.exe(created in autoIT) Main thing here was with the exe I used sending keypressing to travese the windows explorer to do the work, which is some up front effort. The program interacts with windows explorer on the current users session. The executable needs to be copied over to the remote machine in advance and will run against which ever account is logged on at the time of running. The psexec command is run from you local PC against the remote PC. Your way looks much less labour intensive polymath so I'll give it a test does it require knowing the remote users creds? assuming the remote user is a domain user. Could you give me the laymans skinny on comspec /k Thanks Confuseis -
Map network drive on remote machine
confuseis replied to confuseis's topic in AutoIt General Help and Support
I've tried the "DriveMapAdd" command, It works aginst your own logon but executing it remotely dosent seem to map the drive for the remote user. If the remote user clicks it then it works. I've been trying to launch the DriveMapAdd command compiled as an exe on the remote machine and psexec reoprts the exe ran successfully but the drive did not map. I can use a bat file to map the drive in the same way as drivemap add but this is not remotely. I could map it remotely with the users creds with psexec but I dont want to know their creds. Is there a way to map the drive without user intervention and without needing a reeboot? Thanks Confuseis -
Interact with Combo boxes & edit boxes
confuseis replied to confuseis's topic in AutoIt General Help and Support
Im trying to automate some windows explorer tasks so I would have to have a command to interact with the pull down menu. [edit] I figured this out. Was really simple, Holding down the alt key shows hidden menu's, didnt know this. Holding alt spawns pulls down a new menu. we then can send the appropriate key. Below is the solution to do this. It will interact with the map network drive pull down and text boxes send ("{LWINDOWN}") Send("{e down}") Send("{e up}") send ("{LWINup}") WinWaitActive("Computer") sleep(500) send("!t") send("n") send("{ENTER}") sleep(500) Send("servershare") sleep(500) send("!d") send("b") sleep(500) send("!f") -
Hi All I am looking to control the pull down menu (class: Combo box) and text input box (Class: edit) I've tested and understood winwaitactive and sendkey but I dont know how to specify e.g. context combo box, sendkey x context edit box sendkey y Ive looked online but i see scripts I dont understand as they dont have explanations Anyone in the know? Thanks for reading Confuseis
-
Map network drive on remote machine
confuseis replied to confuseis's topic in AutoIt General Help and Support
I'll give that a shot. I was thinking an alternative would be to put a .bat file in the startup folder of the user of windows as this would would map the drive on boot. I want this to be more automatic so I would execute the script just once the volume of machines makes it diffulct, also these machines are laptops and move around frequently so its likely I wouldnt be able to track and clean all of them. In that case I would need the registry entry to be removed automatically as I dont want to remember to remove it from 100 or so machines, perhaps the regedit command for the reg method or the if exist bat file x delete bat file x from the doat file in the startup folder method The command prompt is disabled by policy on the remote machines so the bat file from the startup folder may not run. I was'nt aware the the reg method so this is useful Thanks Confuseis -
Map network drive on remote machine
confuseis replied to confuseis's topic in AutoIt General Help and Support
Looks good To executive this remotely Im thinking that I would compile the script with the drivemap adding to an exe then launch this exe from a bat file on the remote users system using psexec, any one know a more dirtect way let me know Ill report back my outcome Thanks -
Hi all To Map a network drive on remote machine is difficult as you must run it under their user session, psexec can run under your own creds which does not work for this scenario as we dont have their password. I dont have access to group policy hence looking to AutoIT. Im looking at sending copying the AutoIT script onto their desktop and running it from there. The script will interact with start > computer > [map net work drive] Problem is the window finder application cannot see that explorer button, so then how do I get Auto IT to click it? I could note the mouse cursor position and click it that way but then Im thinking the screen resolution could be different on the remote machine and the x,y coordinates for the mouse will be off? Any pointers on how to detect and click the windows explorer buttons or how to accomplish this in general? Thanks for reading Confuseis
-
Install drivers on remote systems
confuseis replied to confuseis's topic in AutoIt General Help and Support
This was very useful. In particular used winzip to extract the contents of the exe there was a heap of files with a text document explaining how to do a silent install. I followed this wrestled with psexec and managed to install the drivers on the remote machines. I could even use the DOS driverquery /s <hostname> command to see if the driver had been changed. Thanks -
Hi All Just got wind of AutoIT I need to install drivers on remote systems and dont have access to group policy. These are exe driver files and I will be installing these remotely under the regular user accounts that dont the administrator rights. I have the admin rights myself and can install it locally but its not efficient That version of the the driver may already be installed on some of those systems so Auto IT script may encounter an unexpected window in which case Im thinking I should get it to exit and abandon the installation or use an.. if window x appears do action y scenario if I can. Im thinking one way would be to use a batch file to xcopy the autoIT script the file to all the traget pcs then use psexec to execute this Id really like a sample script that can install a program and handle different windows during the installation e.g. [install this driver] or This driver already exisits [Overwrite] Id need to know how to launch this remotely for user acounts that dont have the rights themselves to install programs. Im thinking this may be a combination autoIT, windows batch, powershell, psexec etc. but maybe its much simpler??? Thanks for reading Confuseis.