Jump to content

how to open and close a form in iProcess


Recommended Posts

Hi,

I would like to create a tool that will open an iProcess form then close it.

The application iProcess Work Queue has forms in it, its similar to an email and the forms are similar to the mails in the inbox.

The function should be similar to below notepad code (open notepad and close it)

but instead of notepad it should be the iProcess form (email like form) that I need to open and close.

I tried to replace the name of the class but it did'nt work.

=============================================================================

Example()

Func Example()
    ; Run Notepad
    Run("notepad.exe")

    ; Wait 10 seconds for the Notepad window to appear.
    Local $hWnd = WinWait("[CLASS:Notepad]", "", 10)

    ; Activate the Notepad window using the handle returned by WinWait.
    WinActivate($hWnd)

    ; Close the Notepad window using the handle returned by WinWait.
    WinClose($hWnd)
EndFunc   ;==>Example

==============================================================================

Link to comment
Share on other sites

Welcome to the forum.  I will ask a silly question but did you also locate the exe for iProcess and replace it in the line that starts with Run?  The class is a reference to the window that is generated from the application after it starts to run.  The first order of business is to start the app.  Also, more information on what is not working would be helpful.  That way, we would know if you at least were able to launch iProcess.  Also, do you have the appropriate class information?  You can use Au3Info to find the information on iProcess - the tool can be launched from the Scite IDE for AutoIt.

Build your own poker game with AutoIt: pokerlogic.au3 | Learn To Program Using FREE Tools with AutoIt

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...