Jump to content

Run a program


 Share

Recommended Posts

i use this code for submiteaze software running

Global $dir="/SubmitEaze/",$SubmitEaze_exe="SubmitEaze.exe"

If Not ProcessExists($SubmitEaze_exe) Then

ShellExecute(@ProgramFilesDir & $dir & $SubmitEaze_exe,"","","",@SW_SHOWDEFAULT)

EndIf

;mouseclick(",",")

this code works correctly,

but on running software(without using autoit) a windows message box will appear with title User Account Control with YES or NO options.

I use mouseclick with the above code for clicking options , but mouse click will happend after closing or opening the message box window

please give me a code for ruuning the softwre with mouseclick ?

Link to comment
Share on other sites

i want to run oleview use RUN Command please give that code

please give me a code for ruuning the softwre with mouseclick ?

Don't ask for code, ask for help...

you might use WinWaitActive to wait for the window to be active and then click. You should use ControlClick instead of MouseClick...

Link to comment
Share on other sites

no click to see

Global $dir="/SubmitEaze/",$SubmitEaze_exe="SubmitEaze.exe"

If Not ProcessExists($SubmitEaze_exe) Then

ShellExecute(@ProgramFilesDir & $dir & $SubmitEaze_exe,"","","",@SW_SHOWNORMAL)

EndIf

ControlClick("User Account Control","Do you want to allow","","left",750,400)

Link to comment
Share on other sites

use the Window Info tool to check the Button information, and do something like:

Global $dir="/SubmitEaze/",$SubmitEaze_exe="SubmitEaze.exe"
If Not ProcessExists($SubmitEaze_exe) Then
ShellExecute(@ProgramFilesDir & $dir & $SubmitEaze_exe,"","","",@SW_SHOWNORMAL)
EndIf
WinWaitActive("User Account Control","Do you want to allow")
ControlClick("User Account Control","Do you want to allow","Button1")
Link to comment
Share on other sites

use the Window Info tool to check the Button information, and do something like:

Global $dir="/SubmitEaze/",$SubmitEaze_exe="SubmitEaze.exe"
If Not ProcessExists($SubmitEaze_exe) Then
ShellExecute(@ProgramFilesDir & $dir & $SubmitEaze_exe,"","","",@SW_SHOWNORMAL)
EndIf
WinWaitActive("User Account Control","Do you want to allow")
ControlClick("User Account Control","Do you want to allow","Button1")

when my window appears ,the remaining windows are shown in background including Window Info tool therefor i cannot find my window information

whether i can find the information of my window using window info tool?

Edited by sanulevan
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...