Jump to content

Recommended Posts

Posted

Hi all,

maybe im just a bit dumb but i have a problem running a run simple Run Command..

this is my code

Func test()
   #RequireAdmin
Run("'C:\Program Files (x86)\Notepad++\notepad++.exe'", "'C:\Program Files (x86)\Notepad++'" ,@SW_MAXIMIZE ,"" )

EndFunc

 

Thanks in advance! :)

Posted

opening notepad ist not a problem anymore thanks to u guys :)

but i want to go a step further :)

#RequireAdmin
adw ()
Func adw ()
Run("C:\adwcleaner_7.0.5.0.exe","" ,"" ,@SW_MAXIMIZE )
 WinActivate ( "Malwarebytes AdwCleaner 7" , "" )
  ;ControlClick("Malwarebytes AdwCleaner 7","Scan","CLASS:Button; INSTANCE:4" ,"" ,"" ,"","") not configured yet

EndFunc

this is my code now, but adwcleaner ist not opening as a window. (but the exe is running in task-manager)

 

Posted
3 minutes ago, Floops said:

You passed "" as the third argument which is equal to @SW_HIDE

Try this instead:

Run("C:\adwcleaner_7.0.5.0.exe","" ,@SW_MAXIMIZE )

 

This solved my Problem :)

 

Im sorry i did not used the "Code" box for my comments and that i did not open a new topic :S

and behold of that you did answer my Questions anyway thank you all ! :)

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
  • Recently Browsing   0 members

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