Jump to content

svaneenoo

Members
  • Posts

    14
  • Joined

  • Last visited

svaneenoo's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks. i will try this.
  2. Hi all, I have a script which installs an active x control as the local administrator. The company where I have implemented this upgraded some of the IE6 to IE8. Small difference in screen names. IE6: Microsoft Internet explorer IE8: Windows Internet Explorer. In the original script i have the code: WinWaitActive("Search Results - Microsoft Internet Explorer") WinClose ( "Search Results - Microsoft Internet Explorer") The sript is automatically called from within SAP. So I can not have two separate scripts. I cannot use an external file to indicate which IE8 they are running. Does anybody know if it is possible to wait for one screen, OR to wait for another screen. The first one it finds should be closed. Or would it be possible for autoit to find out which IE the user has installed, and based on that wait for the correct screen? something like: if IE=6 then winwait .. winclose....else winwait...winclose Thanks all for the help Stefaan
  3. Oh boy, the credentials were incorrect. Thanks for bringing me back on track. Now it works Cheers Stefaan
  4. The same problem. So it has nothing to do with IE. Has to do with the computer config. I am running windows xp, version 2002, service pack 3 Best regards Stefaan
  5. Hi all, I have a script that works perfectly with Internet Explorer 6, but not with Internet Explorer 8.It opens IE as administrator, opens a page in order to install an activeX control. In AutoIt the output is: >"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Documents and Settings\rwd_eenoo\Desktop\Install_ie7_8.au3" >Exit code: 0 Time: 1.909 This is the code RunAs($sUserName, @ComputerName, $sPassword, 0, '"C:\Program Files\Internet Explorer\iexplore.exe" "http://rwd-apsv/RWDHlp/rwdhlp_sot.htm?url=http://rwd-apsv/gm/?format=doPerformSearch.shtml&source=HLP&P6=RWD_ACTIVEX_INSTALL_SEARCH::&F6=transaction_code&SO=rel&w=40&h=80&pos=1"') When I try a normal Run, it works... Does anybody have an idea why this Runas does not work with IE 8? Any is help is very much appreciated. Best regards Stefaan
  6. I shouted too soon. The file was not created, and the editor returned the following message. >"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\rwd_eenoo\Desktop\uRecord_uPerform.au3"
  7. Hi, I have tried your code, but now i am getting syntax errors. Any suggestion? Best regards, Stefaan
  8. Hi all, I am trying to copy and rename a file. This works fine, however, I want to add the current date to the filename. e.g. docname05/04/10 16:50:23.doc I am able to get the new name concatenated with the current date in a message box, but it does not work with the filecopy function. Here is my code. Hope somebody can help me. I have also attached the script. #include <Date.au3> $tCur = _Date_Time_GetSystemTime() If FileExists("C:\Program Files\Rwd uPerform\Client\bin\uPerform1.exe")=0 Then FileCopy(@ProgramFilesDir &"\Rwd uPerform\Client\bin\uPerform.exe",@ProgramFilesDir &"\Rwd uPerform\Client\bin\uPerform1" &_Date_Time_SystemTimeToDateTimeStr($tCur)& ".exe",0) Run (@ProgramFilesDir &"\Rwd uPerform\Client\bin\uPerform1.exe") Else Run("C:\Program Files\Rwd uPerform\Client\bin\uPerform1.exe") EndIfuRecord_uPerform.au3
  9. Not yet, I will try that. Thank you for the suggestion.
  10. The Window Info is always exactly the same, but with a different ID. Stefaan
  11. Hi, I have an application that changes the ID of the controls, every time I start it up. Hence, Controlclick cannot be used. Movemouse and sendkeys is in this particular case not reliable enough. In IE.au3 there is an excellent function _IELinkClickByText. Does anyone know whether a similar function would exist for non IE applications? Thanks in advance for the help and effort. Cheers Stefaan
  12. Hi all, I am trying to login on a website, which I am displaying with _IECreateEmbedded. Unfortunately, the link is not responding. I have read in many places in this forum, that IEAction should be used, or the second example from the Help. These methods all talk about object. When I try this, I get error messages. The login label in my case is a link with javascript. I have also seen the IECreate2 script of Dale, but this is way to advanced for me. (I do not want to use scripts I don't understand,...although it worked perfectly) I hope somebody can help me out. Here is is the console output (errors) -->IE.au3 V2.4-0 Warning from function _IEGetObjById, $_IEStatus_NoMatch (Log In) --> IE.au3 V2.4-0 Error from function _IEAction, $_IEStatus_InvalidDataType I have also attached the code. I think I need help on line 30 and 32 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> Opt('MustDeclareVars', 1) Admin() Func Admin() Local $oIE, $GUIActiveX, $GUI_Button_Back, $GUI_Button_Forward Local $GUI_Button_Home, $GUI_Button_Stop, $msg,$adminuser,$adminpass,$uPerformsite,$oSubmit $adminuser ="xxxx" $adminpass="xxxx" $oIE = _IECreateEmbedded () $uPerformsite= "http://up01.rwd-deutschland.de/" ; Create a the form with the site embedded GUICreate("uPerform Administrator Panel", @DesktopWidth, @DesktopHeight-50,-1,-1,BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN)) $GUIActiveX = GUICtrlCreateObj ($oIE, -1, -1, @DesktopWidth, @DesktopHeight-200) $GUI_Button_Back = GUICtrlCreateButton("Back", 10, @DesktopHeight-198, 100, 30) $GUI_Button_Forward = GUICtrlCreateButton("Forward", 110, @DesktopHeight-198, 100, 30) $GUI_Button_Home = GUICtrlCreateButton("Home", 210, @DesktopHeight-198, 100, 30) $GUI_Button_Stop = GUICtrlCreateButton("Stop", 310, @DesktopHeight-198, 100, 30) _IENavigate($oIE,$uPerformsite) _IELoadWait ($oIE) $oSubmit = _IEGetObjById ($oIE, "Log In") _IEAction ($uPerformsite, "click") GUISetState() ;Show GUI ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $GUI_Button_Home $oIE.navigate($uPerformsite) Case $msg = $GUI_Button_Back $oIE.GoBack Case $msg = $GUI_Button_Forward $oIE.GoForward Case $msg = $GUI_Button_Stop ExitLoop EndSelect WEnd GUIDelete() EndFunc uperform_admin.au3
  13. Hi, I tried another picture, and it works. I notice that is does not work with transparent .png Is this normal known behaviour? Cheers
  14. Hi, I want to display a picture on my form. However, the picture is not displayed. I have no clue why. I am a beginning AutIT'er, so apologies...I guess this is a basic question. The picture exists on the indicated loaction. Hope somebody can help me. Thanks in advance for any help an replys Stefaan #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt('MustDeclareVars', 1) Global $gui, $guiPos, $Pic, $picPos Example1() Func Example1() Local $Pic, $msg GUICreate("My GUI picture", 350, 300, -1, -1, $WS_SIZEBOX + $WS_SYSMENU) ; will create a dialog box that when displayed is centered GUISetBkColor(0xE0FFFF) $Pic = GUICtrlCreatePic("C:\Documents and Settings\SvanEenoo\Desktop\Paint.NET\Images_Hotspot\mouse2.jpg", 50, 50, 50, 50) GUICtrlSetState($Pic,$GUI_DISABLE) GUISetState() ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd ; resize the control $picPos = GUICtrlSetPos($Pic, 50, 50, 50, 50) ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() EndFunc ;==>Example1
×
×
  • Create New...