Jump to content
Sign in to follow this  
sanulevan

Run a program

Recommended Posts

sanulevan

Hi,

my program installed on my computer at C:\Program Files (x86)\Resource Kit \ oleview.exe ,

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

Share this post


Link to post
Share on other sites
sanulevan

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 ?

Share this post


Link to post
Share on other sites
magodiez

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...

Share this post


Link to post
Share on other sites
sanulevan

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)

Share this post


Link to post
Share on other sites
magodiez

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")

Share this post


Link to post
Share on other sites
sanulevan

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

Share this post


Link to post
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
Sign in to follow this  

×