dharani077 Posted October 12, 2015 Posted October 12, 2015 HELLO,I written a script for running firefox from a GUI but i am able to see all buttons and other actions if i click on firefox button its not happening. Could please help me to solve. #include <GUIConstantsEx.au3>Button()Func Button() Local $oGUI = GUICreate ("Test Box", 800,240) Local $var = GUICtrlCreateButton("firefox", 210, 170, 85, 25) Local $var1 = GUICtrlCreateButton ("Cancel", 350, 170, 85, 25) Local $var2 = GUICtrlCreateButton ("Help", 120, 170, 85, 25) GUISetState(@SW_SHOW, $oGUI) Local $iPID = 0 While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE, $var1 ExitLoop Case $var $iPID = Run("firefox.exe", "", @SW_SHOWMAXIMIZED) EndSwitch WEnd GUIDelete($oGUI) If $iPID Then ProcessClose($iPID) EndFunc
Danp2 Posted October 12, 2015 Posted October 12, 2015 1) Check the result of the Run function to determine if it was successful2) The first parameter of the Run function should include the full path to the executable. Latest Webdriver UDF Release Webdriver Wiki FAQs
dharani077 Posted October 12, 2015 Author Posted October 12, 2015 (edited) Hello, Thanks mate i got it. Edited October 12, 2015 by dharani077
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now