Jump to content

Aditya

Active Members
  • Posts

    23
  • Joined

  • Last visited

Aditya's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I encountered Microsoft Access Web Datasheet while using SharePoint 2007. Access Web Datasheet provides an Excel-like environment for viewing and editing data. And of course, I'm accessing it through IE. The Window info tool recognizes it as [CLASS:List Datasheet Window Class; INSTANCE:1]. I wasn't successful in finding much about this new control, which is part of Microsoft Office. Has anyone played with this type of control preferably through AutoIt? Or if someone knows any OLE objects that can access this control directly, that'd be great too. Thanks.
  2. Did any one get the Access Bridge to install & work on 64-bit Windows 7? I tried following the instructions @ http://java.sun.com/javase/technologies/accessibility/accessbridge/2.0.1/docs/setup.html but I couldn't get Ferret to recognize any Java events.
  3. The devs, its our app.
  4. My application is minimized to tray & I am trying to use PostMessage to open it. The code in C++ would be: ::PostMessage(m_hwndTray, WM_COMMAND, MAKEWPARAM(ID_CLIENT, 0), 0); where ID_CLIENT is ID of the control of our app, which forces the window to open or show. I am trying to do the same in AutoIT & here is my snippet: #include <WinAPI.au3> #include <WindowsConstants.au3> $hWnd = ControlGetHandle('[Class:Shell_TrayWnd]', '', '[Class:ToolbarWindow32;Instance:1]') $ID_CLIENT = 32788 ; this is the ID of the control to which message will be sent. _WinAPI_PostMessage($hWnd, $WM_COMMAND, $ID_CLIENT, 0)) The only problem I have is the MAKEWPARAM macro which gives me the wParam from the ID of the control. How to do this in AutoIT?
  5. Turns out it is a ListBox. I used Win32 API (SendMessage) directly & send the LB_GETCOUNT message to the control & I got the right number of items listed in the control. So why is that the ControlCommand is failing on any method I use on that control? Am I missing some params?
  6. I have a control that I couldn't figure out whether it is a ListBox or a ListView. So, I tried to use both ControlCommand and ControlListView & ControlCommand consistently gave errors, which makes me think it might be ListView. Here is the info from the window info tool: >>>> Control <<<< Class: ATL:0048B110 Instance: 1 ClassnameNN: ATL:0048B1101 Name: Advanced (Class): [CLASS:ATL:0048B110; INSTANCE:1] ID: 10129 Text: Position: 81, 218 Size: 272, 90 ControlClick Coords: 113, 38 Style: 0x50010081 ExStyle: 0x00000000 Handle: 0x000F097E >>>> Mouse <<<< Position: 617, 666 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Button1 Make the following selection to complete the connection. Please select a &Role: &Save settings &Connect C&ancel >>>> Hidden Text <<<< &Info &Retry &Upgrade C&lose &Continue Here is what I tried on the above control: val = ControlListView("Pulse", "Make the following selection to complete the connection.", "[ID:10129]", "GetItemCount", "", "") ConsoleWrite ("Item Count: " & $val & @CRLF & "ControlListView error: " & @error & @CRLF) ConsoleWrite( "Current Selection: " & ControlCommand('Pulse', 'Make the following selection to complete the connection.', '[ID:10209]', "GetCurrentSelection", "") & @CRLF & "ControlCommand error: " & @error & @CRLF) and here is the output I get: Item Count: 0 ControlListView error: 0 Current Selection: 0 ControlCommand error: 1 So, it seems it is a ListView but for some reason I cannot get any method to get any result on that control. Any ideas what might be wrong? Thanks.
  7. Nevermind WinSetState is the answer, even though it does not simulate double-click.
  8. I have an app that minimizes to the system tray (i.e. window does not appear any more). When you double click on the tray icon (or right click & click open), the window show up. I can't seem to find a way to do this. All the other similar requests I found talk about autoit GUI. But I want to do it for our app. Is that even possible?
  9. Is there any method that when given a controlID will return saying whether the control exists or not? I am looking through the API for control methods I don't see any thing that is close to what I want. Is there some other way to achieve the same result?
  10. Actually I was going in that direction with your tcp idea . But, I want to be able to control the processes (& probably hook to them) inside of that second desktop. Does that make sense. If you implement every thing as a server client model, you have to implement a lot of stuff. Or am I missing this completely?
  11. Now that I think about it you can probably do some thing on these lines: 1) Create some sort of auto launch script, which would launch when the virtual desktop launches. 2) This script will create a PIPE that you can use to communicate with scripts on real desktop. 3) Send commands & response back & forth for controlling actions inside of the virtual desktop from the real desktop. Any comments?
  12. Yeah, but you still have to launch the automation script (which will run in inside desktop) from the outside desktop. So my initial hang up was, can I launch an application or script inside desktop 1 from desktop 2. Wouldn't the process space be completely different?
  13. This post is somewhat related or rather inspired from: http://www.autoitscript.com/forum/index.php?showtopic=30083&st=0&p=214878&hl=sanboxie&fromsearch=1&#entry214878 http://www.autoitscript.com/forum/index.php?showtopic=105715&st=0&p=747033&#entry747033 If I have softwares like Sandboxie or other Virtual Desktop solutions installed, which can provide application instance isolation, how can I automate those applications from outside of that desktop? In most cases what these virtual desktop solutions do is to create another explorer.exe instance (which essentially gives you another desktop) & installed applications are allowed to run in that space. Even though I have to no initial code to show for, I was just wondering how would you go about controlling applications from outside the desktop of interest. So if I have 2 desktops running with their own applications, how would I go about controlling applications in desktop 2 form desktop 1? Any suggestions.
  14. Are you talking about creating a sandbox environment using Autoit? Or automate operations inside a sandbox environment. If you meant the former try solutions like Sandboxie.
  15. Selenium RC is a proxy for the Selenium core, which does the actual work. That is why you will see two browser windows opened when you use Selenium RC. So are you sure you are attaching to the right window?
×
×
  • Create New...