quacky
Members-
Posts
18 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
quacky's Achievements
Seeker (1/7)
0
Reputation
-
_IECreateEmbedded() and Javascript popup (hang)
quacky replied to quacky's topic in AutoIt General Help and Support
Yep, hasn't worked for me either. AdlibEnable() also doesn't work... BUT I found a sloppy work around! FIRST I must run this "login hack" script completely separately. All it does is look for the spawned login window: While 1 If WinExists("ceView Logon") Then $userName = "demo" $password = "demo" $login = WinGetHandle("ceView Logon") ;send username, password, and submit Sleep(500) ControlSend($login, "", "[CLASS:ATL:Eon00031; INSTANCE:1]", $userName) ControlSend($login, "", "[CLASS:ATL:Eon00031; INSTANCE:2]", $password) Sleep(500) ControlClick($login, "", "[CLASS:ATL:Eon00004; INSTANCE:1]", "left", 1) Exit EndIf WEnd SECOND I run the embed script, which now works as expected: #include <IE.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> ;hotkey HotKeySet("{ESC}", "Terminate") $url = "http://ceviewv3.cygnus.com/ceview/application.htm" $userName = "demo" $password = "demo" GUICreate("test", 1024, 768, -1, -1, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN) $oIE = _IECreateEmbedded() $GUIActiveX = GUICtrlCreateObj($oIE, 10, 10, 1004, 748) ;Show GUI GUISetState() ;open site, here's where it gets stuck on the login popup _IENavigate($oIE, $url, 0) While 1 ;the "login hack" script will take care of the login popup WEnd Func Terminate() Exit 0 EndFunc ;==>Terminate Although this is working I sill don't feel I'm approaching it correctly. I did try the other method options posted... there must be another way to do this? Thanks everyone for your help. -
I need to automate login to a website. I can do it just fine by using _IECreate(), and when the login prompt appears, the script recognizes the new window and send the appropriate login/password (included demo values won't login). However, when opening the site through _IECreateEmbedded() in a GUI (preferred way!), I get stuck on _IENavigate. It looks like the script is waiting for the page to load, but the Javascript prompt is hanging it up. Any ideas? Thanks in advance. #include <IE.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> ;hotkey HotKeySet("{ESC}", "Terminate") $url = "http://ceviewv3.cygnus.com/ceview/application.htm" $userName = "demo" $password = "demo" $oIE = _IECreateEmbedded() GUICreate("test", 1024, 768, -1, -1, $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN) $GUIActiveX = GUICtrlCreateObj($oIE, 10, 10, 1004, 748) ;Show GUI GUISetState() _IENavigate($oIE, $url, 0) ;wait for login popup WinWait("ceView Logon") ;get login window handle $login = WinGetHandle("ceView Logon") ;send username, password, and submit ControlSend($login, "", "[CLASS:ATL:Eon00031; INSTANCE:1]", $userName) ControlSend($login, "", "[CLASS:ATL:Eon00031; INSTANCE:2]", $password) Sleep(500) ControlClick($login, "", "[CLASS:ATL:Eon00004; INSTANCE:1]", "left", 1) Func Terminate() Exit 0 EndFunc ;==>Terminate
-
(wrong forum... reposted here)
-
Was a "Reverse PixelSearch()" really added? I can't find it in the Beta documentation (other than being listed in the changelog, the same as in this post).
-
I've been looking for it too. If I find it I'll post.
-
Hot key trigger as a pixel color appearing?
quacky replied to quacky's topic in AutoIt General Help and Support
Thanks!!! Looks like adlib will do what I need. -
Hot key trigger as a pixel color appearing?
quacky posted a topic in AutoIt General Help and Support
I have a script that works wonderfully, but every so often an area of the screen will need to be clicked based on a nearby area changing color. Is there a way to do this as sort of a "hot key"? The function would only be triggered if the color changed in a specific area. I suppose I could run the function every x minutes to check, but that seems pretty inefficient. I know it must be possible... thanks in advance for your insight. -
My current set-up makes Excel active, then send "^j", which activates a VB macro within Excel. What I'm trying to do is to just sent the "^j" to a minimized instance of Excel, but apparently I need the Control ID for the main window of Excel, and there isn't one that the AutoIt Window Info tool can see. From what I can see it doesn't matter what's being sent to Excel - I can't even send just the letter "a", but I can do it with Notepad. Is it because it's Excel 2007? Thanks for reading this.
-
I'm sorry, thanks as in "it didn't work but thanks anyway"... and neither did either of those... muttley
-
Tried that too, thanks... muttley
-
Thanks, but I don't think the problem is finding the title (and I did test it; didn't work). I'm able to use ControlSend just fine with programs like Notepad, but with Microsoft Excel 2007, I can't get a control ID for the main window. This is what Info tells me: >>>> Window <<<< Title: Microsoft Excel Class: XLMAIN Position: -8, -8 Size: 1296, 1010 Style: 0x15CF0000 ExStyle: 0x00000110 Handle: 0x00070360 >>>> Control <<<< Class: XLDESK Instance: 1 ClassnameNN: XLDESK1 Advanced (Class): [CLASS:XLDESK; INSTANCE:1] ID: <------ Don't I need this to use ControlSend? Text: Position: -1, 175 Size: 1282, 805 ControlClick Coords: 752, 345 Style: 0x56000000 ExStyle: 0x00000000 Handle: 0x000303CA >>>> Mouse <<<< Position: 751, 512 Cursor ID: 2 Color: 0xA4C3EB >>>> StatusBar <<<< >>>> Visible Text <<<< Status Bar Status Bar Ribbon Ribbon General >>>> Hidden Text <<<< Vertical PERSONAL Vertical Horizontal MsoWorkPane Collect and Paste 2.0 MsoWorkPane Office Clipboard
-
Yeah, I realized that about 30 seconds ago then saw your response. Still doesn't work though... have any more insight into this? Thanks. ControlSend("Excel", "", "", "^j")
-
I'm trying to use ControlSend to send "^j" to a minimized instance of Excel. However, there is no control ID associated with Excel when there are no spreadsheets open. I'm sending ctrl-J to start a VB macro within Excel, which loads and parses the newest files in the directory. I thought this would work: ControlSend("XLDESK", "", "", "{CTRLDOWN}j{CTRLUP}") ... and it doesn't give me any error messages, but it doesn't seem to work either. Thanks in advance!
-
Mind sharing your solution? I need the same function. Thanks!!!