Jump to content

Search the Community

Showing results for tags 'windows 7'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office


  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office


  • Forum
  • AutoIt


  • Community Calendar

Found 37 results

  1. Hi folks, I'm having problems with a screenshot capture script. Let me explain. Everyday I (and my colleagues at work) need to take some screenshots from a web-page. These screenshots are used to compile a report. Normally, I (and others) used to log in into the website and took screenshots of desired graphics and tables. This is tediuos and time consuming. To easy this task I made a script using autoit that basically logs into the website (user and password) and using some clicks, stroke send, coordinates, it is able to generate the graphics and save them to some folders into our network (this script saves arouund 50 pics. It works like a sharm. In order to make things easier, I tried to schedule this script (compiled to a Screnpics.exe file) using task scheduler from windows. We already use this (task scheduler) to run some vbs scripts, some vba excel scripts and so on. The computer used for this tasks is a windows 7 desktop computer. Due to security policies, the computer locks after some time. All this tasks run in the locked computer. My script screenpics.exe runs also from this locked computer. When the computer is unlocked, it does everything as expected. But, when it is locked, all the "pics" are BLACK. As I understand, it runs ok, but, as the "windows" are innactive, it prints what it "sees": a black rectangular. Some details: The web-page with hold the information I need, it only works in Firefox and, because of this it couldn`t be managed by vba or some "getobject" like commands. In fact, it has some flash things that make it impossible to control programatically. So my script is based on mouse move to coordinates, mouse click, screen capture and so one. So, I read many posts trying to figure out a way to overcome this, but... nothing came to mind. My first idea was try to unlock windows. Theses lead me to some posts with no solution. This is worse because I'm not a computer admin, so procedures that need to replace/change the register are not an option. If someone has any idea, I'll be gratefull.
  2. Has anybody else noticed that Windows 7 reacts ignorantly when you use the Windows key + arrow key shortcuts on a GUI with GUIEventMode set to 1? I discovered this recently when I was working on an app where I wanted complete control over the maximize/minimize buttons. Just give it a spin: #include <GUIConstants.au3> Opt('GUIEventOptions', 1) $hGUI = GUICreate('', 300, 200, Default, Default, BitOR($GUI_SS_DEFAULT_GUI, $WS_MAXIMIZEBOX)) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_MAXIMIZE ToolTip('Maximized') Case $GUI_EVENT_MINIMIZE ToolTip('Minimized') Case $GUI_EVENT_RESTORE ToolTip('Restored') Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Run that, then hit Win+Up or Win+Down. None of those events get triggered, and it still maximizes/minimizes. Although I can't get it to restore down from a maximize unless the window is also resizable ($WS_THICKFRAME in the style). Is there a way to stop Windows from doing what it wants or is the only option to check with WinGetState() and then change it back? Windows 10 seems to respect my settings, and I don't have any other versions to test on.
  3. I have a script that just adds some keyboard shortcuts for things like displaying the current song and artist, moving the window to the side so it won't pop up in my way, and play/pause, next song, previous song (these are the only 3 to still work since they don't need the window handle.) In some update recently, Spotify's window class swapped from "[CLASS:SpotifyMainWindow]" to "[CLASS:Chrome_WidgetWin_0]". Using the new class in my controls doesn't seem to work, I've tried getting the window handle from the process handle (_GetHwndFromPID($PID)) but that seems to fail as well. Does anybody have some idea of a way I could get this script working again? edit: seems like discord has the same window class name, so could be some issue with this? Still not sure of a way to solve the issue though, I added a function to get the handle of the active window and can just use that now, but it was able to find it on its own before on spotify startup or script startup which would be preferred. Thanks!
  4. windows hacks

    hey, can anybody enlighten on lesser known Windows hacks or uses ?
  5. Hello all! I am having a bit of trouble and was wondering if anyone may have a workaround for my issue. I made a script that would automatically install a piece of software each night on a Windows 7 Box. Now I have been instructed to do the same with a Windows 10 box since the application is now being tested on Windows 10. The way I did the win7 installation was that I made a script and then made an executable that I call with a batch file along with the Installer. So the process is AutoitMainFile calls batch file, batch file opens Installer, and the automatedinstaller.exe The automatedinstlaller waits 10-20 seconds to make sure the Installer has been fully loaded. When I try to do the same both get loaded but the automatedinstallation.exe does not send commands to the installer. The code does work and nothing from the program we are wanting to install has changed as our Windows 7 runs every night no problem. Do I need to make a new automatedinstall script for windows 10? Any advice is appreciated Thanks, Richard
  6. I have enabled admin sharing in the remote machine so that I can copy files to the remote machine use PSEXEC to execute our application remotely. Now, if the machine is poweredoff we need to poweriton. So I checked whether the remote machine, it is of both VirtualBox or VMWare one. For VirtualBox or VMware, I have found command line utities to poweron. But to autologon by skipping the login screen.Can anyone suggest how to do the same.If it is a physical machine, then there is no need to poweron but autologon is required. I am trying for windows machines.Win 7 at present. For VirtualBox I checked below link with help og guestadditions but not working. http://www.virtualbox.org/manual/ch09.html#autologon The below procedure will save the password in that machine and it will logon automatically. http://www.howtogeek.com/112919/how-to-make-your-windows-8-computer-logon-automatically/ But it will give access to everyne.But my opinion is he should access only if have credentias.I mean through any commandline from another machine he should trigger logon also by passing credentials. Similarly this also http://www.cnet.com/how-to/automatically-log-in-to-your-windows-10-pc/ http://superuser.com/questions/28647/how-do-i-enable-automatic-logon-in-windows-7-when-im-on-a-domain http://pcsupport.about.com/od/windows7/ht/auto-logon-windows-7.htm http://www.computerperformance.co.uk/windows7/windows7_auto_logon.htm https://technet.microsoft.com/en-us/magazine/ee872306.aspx Please guide me how to proceed.
  7. Hello, I've been using autoit for about a year now and overall it's been great despite my limited understanding of all of its features. I have several scripts that run on virtual machines that have been running smoothly for several months without any issues. Recently, I had to create new virtual machines and migrate my scripts over and now I am getting errors that I can't seem to repeat, but seem to happen at least once a day with all of my executables that were flawless before. The error that I keep getting is: Autoit Error Line [this number varies per script] (File "[path to my executable]"); Error: variable must be of type object. I never received this error before until I moved everything to the new VMs, and when I rerun my scripts after clearing the error everything seems to work and run fine until hours later or sometimes the next day. I am assuming that that the root cause may be in some kind of settings on the VM itself since it is happening nearly across the board, but I have no idea where to even look. These are running on Windows 7, which is what they were running on before I had any errors. The only consistent include used in these scripts is IE.au3 Has anyone run into a similar problem or can maybe point me in the right direction. I am at the point of pulling hair out trying to resolve this. I have even rewritten and re-compiled the scripts to see if somehow the executables got corrupted, but that didn't help. Thank you.
  8. Loaded from latest releases of both AutoIt and SciTE and attempted to test by creating a simple SQLite script. When trying to run the script I get an 'Error Opening File' error on line 45 of AutoIt3Wrapper.au3 which consists of the following code: #include <WinAPIFiles.au3> Unable to find this file anywhere on my hard drive and unable to find any patch or similar error on the forum. Help? TIA ... Tom
  9. Hi guys, I have the latest Scite installed (SciTE4AutoIt3 3.6.2 - Feb 15 2016 18:42:26), running on Windows 7. I tried running Scite in parallel to AutoIT, with running manually in the command line "C:\Program Files (x86)\AutoIt3\SciTE\Koda\FD.exe" /Scite, It didn't work, and ever since, I can't activate Koda from the AutoIT Tools menu. I get the same error (only by trying to open Koda): %1 is not a valid Win32 application. Can someone please help me?
  10. Hi guys, I have the latest Scite installed (SciTE4AutoIt3 3.6.2 - Feb 15 2016 18:42:26), running on Windows 7. I tried running Scite in parallel to AutoIT, with running manually in the command line "C:\Program Files (x86)\AutoIt3\SciTE\Koda\FD.exe" /Scite, It didn't work, and ever since, I can't activate Koda from the AutoIT Tools menu. I get the same error (only by trying to open Koda): %1 is not a valid Win32 application. Can someone please help me?
  11. NOTE: MY STACK OVERFLOW QUESTION HERE ALSO: http://stackoverflow.com/questions/36162810/autoit-firefox-automation-ffclick-doesnt-work-on-buttons-anymore-ff-au3 Help! I had AutoIt code that would do the following: 1. load a page in FireFox, then 2. click on the 'browse' button, then 3. waits for the File Upload window to appear This code worked great and I used it many times! Now, about a month later, it stopped working. I checked the HTML page and it did NOT change, and the id is the same. Here are some resources: _FFOpenURL _FFLoadWait _FFClick WinWaitActive ControlClick Full list of FF.au3 functions Here is the HTML that I am trying to access. I am trying to click on #filename     <fieldset>         <legend>Import step one: upload Word Document</legend>         <h2>Import Word Document: Upload</h2>         <div class="field-group">              <div class="checkbox/radio">                   <label for="filename">Upload:</label>                   <input id="filename" name="filename" size="50" "="" type="file">              </div>          </div>          <input class="text hidden" name="pageId" value="158367782">           <div class="buttons-container">                <div class="buttons">                     <span class="word-file-loading hidden" id="loading">Loading</span>                     <input disabled="disabled" id="next" name="submit" value="Next" class="button" type="submit">                </div>           </div>     </fieldset> Here's my simplified AutoIt code that should press the #filename button:     ; 1) OPEN THE PAGE (WORKS) (I changed the URL)         _FFOpenURL("http://..../")     ; 2) WAIT FOR PAGE TO LOAD (WORKS)         _FFLoadWait()     ; 3) SLEEP FOR 5 SECONDS (WORKS)         Sleep(5000)     ; 4) CLICK THE BROWSE BUTTON (FAILS)     ;    (SAYS IT IS A SUCCESS BUT THE BUTTON NEVER GETS PRESSED!!)         _FFClick("filename", "id")     ; 5) WAIT FOR "FILE UPLOAD" WINDOW TO APPEAR (FAILS)     ;    (FAILS BECAUSE BUTTON NEVER GOT PRESSED ABOVE)         Local $result = WinWaitActive("File Upload","",10)  Here is my full autoit code that should press the #filename button:     ; 1) OPEN THE PAGE (WORKS)         If _FFOpenURL("http://..../") Then             FileWrite($log,"[INFO] Opened Page successfully." & @CRLF)         Else            FileWrite($log,"[ERROR] Could not open Page." & @error & " Extended Error Code = " & @extended  & @CRLF)            MsgBox(0, "Error", "Could not open Page.")            Exit         EndIf     ; 2) WAIT FOR PAGE TO LOAD (WORKS)         If _FFLoadWait() Then             FileWrite($log,"[INFO] Waited to open page successfully." & @CRLF)         Else             FileWrite($log,"[ERROR] Could not wait for Page." & @error & " Extended Error Code = " & @extended  & @CRLF)             MsgBox(0, "Error", "Could not wait for Page.")             Exit         EndIf     ; 3) SLEEP FOR 5 SECONDS          Sleep(5000)     ; 4) CLICK THE BROWSE BUTTON      ;    (SAYS IT IS A SUCCESS BUT THE BUTTON NEVER GETS PRESSED!!)         ;Click the "Choose File" button         If _FFClick("filename", "id") Then             FileWrite($log,"[INFO] Clicked the 'browse' button successfully." & @CRLF)         Else             FileWrite($log,"[ERROR] Could not click the 'browse' button." & @error & " Extended Error Code = " & @extended  & @CRLF)             MsgBox(0, "Error", "Could not click the 'browse' button.")             Exit         EndIf     ; 5) WAIT FOR "FILE UPLOAD" WINDOW TO APPEAR     ;    (FAILS BECAUSE BUTTON NEVER GOT PRESSED ABOVE)         ;Wait for the file upload dialog to appear         Local $result = WinWaitActive("File Upload","",10) ;Wait 10 seconds for "File Upload" window to appear         If $result == 0 Then            FileWrite($log,"[ERROR] Waited for 'File Upload' to show, but it never did. " & @error & " Extended Error Code = " & @extended  & @CRLF)            MsgBox(0, "Error", " Waited for 'File Upload' to show, but it never did. ")            Exit         Else            FileWrite($log,"[INFO] Opened 'File Upload' dialog successfully. " & @CRLF)         EndIf Here is the errors shown from the Scite console (I replaced the URL):     _FFOpenURL: http://...     __FFSend: try{window.content.top.document.location.href='http://...'}catch(e){'_FFCmd_Err';};     __FFRecv: http://...     _FFLoadWait: ....... loaded in 1688ms     [object HTMLDocument] - {pagetreesearchform: {...}, location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, ...}     __FFSend: FFau3.WCD=window.content.top.document;     __FFRecv: [object HTMLDocument] - {pagetreesearchform: {...}, location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, ...}     [object HTMLDocument] - {pagetreesearchform: {...}, location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, ...}     _FFLoadWait: . loaded in 83ms     [object HTMLDocument] - {pagetreesearchform: {...}, location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, ...}     __FFSend: try{FFau3.simulateEvent(FFau3.WCD.getElementById('filename'),'MouseEvents','click');}catch(e){'_FFCmd_Err';};     __FFRecv: 1     _FFLoadWait: . loaded in 11ms     [object HTMLDocument] - {pagetreesearchform: {...}, location: {...}, getElementsByName: function() {...}, getItems: function() {...}, open: function() {...}, close: function() {...}, write: function() {...}, ...}     +>11:56:43 AutoIt3.exe ended.rc:0     +>11:56:43 AutoIt3Wrapper Finished. And here is my version information: - AutoIt v3.3.14.2 - SciTE v3.6.0 - Firefox v44.0.2 - Firefox AutoIt Plugin - FF V0.6.0.1b-15.au3 (Docs) - Firefox Plugin for using AutoIt - [MozRepl][10]
  12. Hi All, Once again returning back to this great community for much needed help. I am sure that I wont be disappointed and you guys will point me in the right direction. To begin with, I am very new here and I have been learning AutoIT. Few months ago I was able to write a script to automate a program to perform some desired task and it has been working great. But, all hell broke lose when I moved this to a Windows 7 VM the script wont even perform the first key commands and after few changes in the code it started working but break intermittently also the compiled scripts wont work at all. Any help will be much appreciated.
  13. Cannot seem to find the answer to this anywhere. This is a special case software deployment so we are adding the compiled script to the Windows 7 startup folder and when its done running it calls a file to delete itself. Everything works great except BlockInput will not work when it runs as a windows login script. If I go in and manually run the script BlockInput works just fine but it simply will not take as a login script. We need to block users from opening any office applications for the 30-40 seconds the entire script runs or package will fail so any other ideas are welcomed. Here is the first part I have pulled for testing, the sleep parameter is just for testing purposes. #RequireAdmin #include <AutoItConstants.au3> #include <Date.au3> #include <MsgBoxConstants.au3> block() Func block() BlockInput(1) Sleep(5000) checknetwork() EndFunc ;==>block Func checknetwork() $var = Ping("server") If Not @error Then BlockInput(0) MsgBox(0,"avail", "SERVER IS AVAIL") ;verify_8() Else ;MsgBox for testing purposes only BlockInput(0) MsgBox(0, "Error!", "SERVER Is Not Accessible!", 10) Exit EndIf EndFunc ;==>checknetwork
  14. Hello, I have created a script on my own computer for uninstalling and installing a specific customer application. For some reason it works great on my own computer, but i doesn't run at all at the customer his or her computer. I have a Windows 7 Professional - 64-bit machine and the first machine i have tested it at the customers location was a 32-bit machine, so ok, maybe that is the problem, but at an other computer with 64-bit it also doesn't work. So i installed AutoIT with editior on both machines, but a simple RUN command doesn't work. #RequireAdmin Run("C:\TEMP\Setup2010\setup.exe") With or without the RequireAdmin doesn't make a difference. Could someone help me to understand why my script works great on my own computer, but when you move it to another computer it doesn't work? If you compile it or not. Kind regards, Remco
  15. Hi, i have tried to use many scripts to change a pcs wallpaper but they dont work. This script sets the wallpaper but does not refresh it. Any idea what the problem is? #include <SendMessage.au3> #include <WindowsConstants.au3> #include <GDIPlus.au3> #include <Misc.au3> #RequireAdmin $UrlDownload = "http://examplesite.org/test.bmp" ;DL link $Directory = "C:\test.bmp" ;Name of your file Local $download = InetGet($UrlDownload, $Directory,0,1) ; download in the background Do Sleep(100) Until InetGetInfo($download, 2) ;Checks to see if $download is completed (param 2) InetClose($download) RunWait($Directory) ;it will pause the script untill the process of the downloaded file is finished RegWrite ("HKEY_CURRENT_USER\Control Panel\Desktop", "wallpaper", "REG_SZ", "C:\test.bmp" ) Dim $hWnd = WinGetHandle('[CLASS:Progman]') _SendMessage($hWnd, $WM_COMMAND, 0x0001A220) Thanks Matthew
  16. Hello, I am in a fix with this problem and I cant seem to find a viable solution. As you would know that the AutoIT scripts can go in pause mode for many reasons. It could be simply WinWait() that could take the script into that state. I do understand that a better design could help a lot but I would like to handle such situation with existing my code. To simplify my query - I am looking for a way to calculate how long the given script/compiled script has been in "pause" state. Is there a way to do that? For example, if my script has been in pause state for 3 hours I would like to kill or restart the pc . I do understand that Auto IT is not multi-threaded but is there a way to achieve what I am trying to? Any help or suggestion is much appreciated. Thanks
  17. I am trying to read an ASPX page and I'm using IE.au3. I'm not getting!!! Does anyone know how I can solve this problem ?! Is there any UDF that solves this ?!
  18. I am trying to automate a software installation using Autoit in Windows 7. I am facing issue in following scenario. I want to wait 30 seconds to a window to be appear. If window not appears within 30 seconds, my script should go to next action. Tried using WinWaitActive, But it always waiting for a window. if window not appears, its throws "AutoItError: timeout on wait for activate window". Now I dont want to get this error. My script should go to next action. Can anyone guide me on this please?
  19. I made a general utility file for volume and playback control, using the _W7sound UDF for muting spotify and only spotify, but when trying to automate it, so whenever the title has or contains "Spotify" spotify should be muted. Otherwise, it should unmute spotify. If i initiate muting spotify with a hotkey, it works, and will unmute properly, but I want it to mute automatically as well. I've tried many different ways to do this, most recently this. while 1 Sleep(300) ; give time for title of window to change $title = WinGetTitle("[CLASS:SpotifyMainWindow]") ; check what title is If (StringInStr($title, "Spotify")) Then ; if not song title, mute. If Not $autoUnmute Then autoMute() EndIf EndIf If $autoUnmute Then ;var set by "autoMute", if true, check when to unmute. ToolTip("Muted", 0, 0) While (StringInStr($title, "Spotify")) Sleep(200) $title = WinGetTitle("[CLASS:SpotifyMainWindow]") WEnd ToolTip("") Sleep(300) If $autoUnmute Then _SetVolume("[CLASS:SpotifyMainWindow]", _GetVolume("[CLASS:SpotifyMainWindow]")) EndIf $autoUnmute = False EndIf Sleep(200) WEnd Func autoMute() $title = WinGetTitle("[CLASS:SpotifyMainWindow]") ; double check still muted If (StringInStr($title, "Spotify")) Then ; if it is, mute, set var to true so while loop checks when to unmute. _MuteVolume("[CLASS:SpotifyMainWindow]") $autoUnmute = True EndIf EndFuncif i remove the part above "If $autoUnmute Then" and just call autoMute myself with the hotkey I set, it works and properly mutes, then unmutes. Trying like this seems to have trouble though. Anyone have some idea why I would be having trouble? I did notice a slight delay in the time of me pausing Spotify and the actual title changing in "SndVol.exe" (volume mixer), but haven't been able to figure out how to fix this if that was the issue.
  20. I have a script that starts up all my work programs. Programs like ventrilo, trillian, and other work stuff. In the past week, I noticed two of these programs not starting up while 6 of them work the same. I investigated and I notice these only start when I run the script as administrator (or add #requireadmin). I use windows 7 and have no UAC. I have not changed anything to my OS except install updates. I'm so confused why only some of these programs now start up and require admin. If I double click the executable or run in command prompt, they startup fine. Does anyone have a clue what happened to cause this change and if I can change it back? Below is the code I ran as a test. Only the last program now starts up unless I add #requireadmin or right click and run the script as admin. Thanks for any help. #include <Misc.au3> RUN("C:\Program Files\Ventrilo\Ventrilo.exe") Sleep(1000) RUN("C:\Program Files (x86)\Trillian\trillian.exe") RUN("C:\Program Files (x86)\Stealth Alerts\SAClient.exe") ; This works just fine
  21. Hi All, I had this issue a while ago but cant seem to fix it this time, and the old hard drive died so cant get the registry from it. Ive done a fully install of the latest version of autoit on my win7 machine, but I cant 'Compile With Options' when right clicking a .au3 file. At the moment my registry entry for compile with option is: "C:\Program Files (x86)\AutoIt3\Aut2Exe\Aut2Exe.exe" /in "%l" But this only compiles, it doesnt include the options declared at the start of my .au3 script which are: #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=Ap2.ico #AutoIt3Wrapper_Outfile=Project.exe #AutoIt3Wrapper_Res_Comment=Project #AutoIt3Wrapper_Res_Description=Project #AutoIt3Wrapper_Res_Fileversion= #AutoIt3Wrapper_Res_LegalCopyright=By Jeffrey #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** Can someone help?
  22. Hi Folks. Looking for a little assistance to help login to one of my company's application's web pages. These are Intranet based pages, and not open to the general public, and I will try to provide the code and screen shots where I can. I have been attempting to get this login script to work for quite some time. Any help would be appreciated. I have 3 types of issues here. 1. using the basic _IEFormElementSetValue, instead of replacing the grayed out verbiage (user name) with an un-grayed out text (actual user name in black type font), it does enter the user name, but it is entered still as grayed out text in the input box. 2. to get the above to work, i've replaced using _IEFormElementSetValue and instead use an "_IEAction" (2 actually - focus / select all) then a "send" to manually put in the username. This works upon initial launch of the page, but when logged out, and logging back in, the IEactiion and send fail to enter the fields. 3. My company has an .hta application that launches a reporting app, but the page is designed exactly the same as the web page, (except the app contains the code - the .hta app), but it is still the exact same fields defined. Theoretically knowing the input boxes names as I do and that they're the same, I should be able to log into this app the same way. However, I can not. I once contacted dale through email to question why the .hta app would not respond, and he gave me some ideas, and stated if I still have issues, to post a topic here. so this is what I'm doing, because I still have issues with the .hta app. And I've also tried to attach to the .hta application as an embedded application, but still could not get the fields to populate (log in screen). I have attached screen shots of the intial view of the sign on page, and the view of an attempted signon using _IEFormElementSetValue. Here is my code to attempt to attach / launch-create the web page. Func _LaunchAdminApp () If $CurServNam= "" Then Return If WinExists("PCDS :: Management") Then Return Local $FTMAddress= "https://"&$CurServNam&"/admin" If NOT WinExists("Fluency for Imaging Log On") Then Local $oIE = _IECreate($FTMAddress) Else Local $oIEWhnd = WinGetHandle("Fluency for Imaging Log On") Local $oIE = _IEAttach($oIEWhnd) EndIf Local $Count = 0 If $AdmAutoLogin = 1 Then If $LoginIDAA = "" Then Return Do $Count+=1 Sleep(100) If $Count > 30 Then MsgBox(0,"Sorry","Can't sign in to Admin App!") Return EndIf Until IsObj($oIE) Local $oForm = _IEFormGetCollection($oIE,0) $Count = 0 Do $Count+=1 Sleep(100) If $Count > 30 Then MsgBox(0,"Sorry","Can't sign in to Admin App!")5 Return EndIf Until IsObj($oForm) WinActivate($oIE) Local $oQueryUser= _IEFormElementGetObjByName ($oForm, "UserName" ) Local $oQueryPW = _IEFormElementGetObjByName ($oForm, "PasswordDisplay") Local $CompID = _IEFormElementGetObjByName ($oForm, "Domain" ) Local $oSubmit = _IEFormElementGetObjByName ($oForm, "loginBtn" ) Sleep(500) ;_IEAction ($oQueryUser,"focus" ) ;_IEAction ($oQueryUser,"selectall" ) ; Send ($LoginIDAA );this will work only for initial login, not for subsequent log in's after logoff. _IEFormElementSetValue ($oQueryUser, $LoginIDAA );this does not work. enters name in gray text, app does not think its there, but can see it. ;_IEAction ($oQueryPW, "focus" ) ;_IEAction ($oQueryPW, "selectall" ) ; Send ($PasswordAA );this will work only for initial login, not for subsequent log in's after logoff. _IEFormElementSetValue ($oQueryPW, $PasswordAA );this does not work. enters password in gray text, app does not think its there, but can see it. _IEFormElementOptionSelect ($CompID,0,1,"byIndex" ) Sleep(5000) If IsObj($oSubmit) Then $oSubmit.click() EndIf If $CloseAfSelAA = 1 Then Exit EndFunc Basically, i'm checking to see if the pages exists first, then either creating a page or attaching to a page depending upon the results of the check. I've also attached the source for the signon page for the web app. Note that the code delivered via the .hta for sign on is exactly the same. any and all suggestions are most welcome. I'm at my witts end here! Thanks in advance! (I love AutoIT! and this site!) view of signon screens.zip Company Application Signon Page.html
  23. I tried to tackle this about a year ago and gave up.. I write many autoit apps and they all seems to have a similar issue on windows 7. While running, they are always in the 'not responding' status with windows, and now our disk encryption software is popping in and killing my apps due to not responding.. From what I have read, I have to 'Pump the windows message queue' with messages, but I haven't the slightest idea how to do this in autoit. If anyone has a solution or a though, I would be eternally grateful! Here is my demo code: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <MsgBoxConstants.au3> $Form1 = GUICreate("Crash Test Dummy", 314, 123, 192, 114) GUICtrlCreateGroup("Crash test", 8, 8, 289, 89) $Button1 = GUICtrlCreateButton("Do Something", 24, 24, 75, 25) $Input1 = GUICtrlCreateInput("", 24, 64, 257, 21) GUISetState(@SW_SHOW) Msgbox($MB_SYSTEMMODAL,"hey there","Open Task manager, the parent app is 'Running' but the moment you close this box, it will start counting and go to 'Not Responding', even if you click Do Something.") GUISetState(@SW_ENABLE, $Form1) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 guictrlsetdata($input1, "0") for $i = 1 to 201 guictrlsetdata($input1, $i) $i+=1 sleep(100) next sleep(500) guictrlsetdata($input1, "0") EndSwitch WEnd Any thoughts / idea are welcome!!
  24. Before my upgrade to windows 7 from xp, I used to be able to logon to intranet sites, via the popup logon window, but now it appears that this security window does not have enough info to determine which window is which. The only information on the title is "Windows Security" and visible text is "OK" or "Cancel", and hidden text shows "Remember my credentials", even though I see there is more text in the window, the AutoIt v3 Windows Info tool does not show any other text. How do I automate this window? How do I make sure that this window is the right window for the right username and password, as there are many intranet sites we use. Before the upgrade to the new OS, I had put in a condition, that if the window had already been logged onto before, the script stops trying to logon to it. I hate when they change things so much, that you are not longer able to automate it - freakin microsoft
  25. I have been using AutoIT for several years now, although mostly with Windows XP. As my company is undertaking a massive Windows 7 conversion, I find that some of the features of AutoIT do not seem to work as I would think they should, which brings about my question today... I use the AutoIt3Wrapper with my compiled scripts and everything works well generally; however, I have a need to include two commands in an AutoIT script that have to be RunAsAdmin. I have the AutoITWrapper set as "#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator" and I am prompted for UAC elevation. The commands; however, do not seem to be elevating. RunWait(@ComSpec & ' /c bcdedit /set {default} recoveryenabled No', @HomeDrive, @SW_HIDE) RunWait(@ComSpec & ' /c bcdedit /set {default} bootstatuspolicy ignoreallfailures', @HomeDrive, @SW_HIDE) If I post the commands into an elevated command prompt they work correctly, but via the script they seem to be ignored. I appreciate any ideas and/or assistance. Thanks In Advance!!!