LiLShinta Posted April 18, 2008 Share Posted April 18, 2008 (edited) Example if I want to make a gui that has a donate button and when that button is pressed it will open a browser that will redirect to my paypal account..what should be my code or how will I start it? another is, if i have a list of names on my names.txt and I FileOpen and save all the names in my listbox and then randomly select a name that will be send to user.txt how could it be?? thanks hope you can help noobs like me...java script:ShowHide('qr_open','qr_closed'); Fast Reply Edited April 18, 2008 by LiLShinta Link to comment Share on other sites More sharing options...
mafioso Posted April 18, 2008 Share Posted April 18, 2008 (edited) For the first question use Case $donatebutton _IECreate ("yourpaypallink") Edited April 18, 2008 by mafioso Link to comment Share on other sites More sharing options...
LiLShinta Posted April 18, 2008 Author Share Posted April 18, 2008 Case $donatebutton_IECreate ("yourpaypallink")how will it be?? will this open the default web browser and push into my paypa account? Link to comment Share on other sites More sharing options...
mafioso Posted April 18, 2008 Share Posted April 18, 2008 Example : #include <IE.au3> #include <GUIConstants.au3> GUICreate("donate example", 184, 73, 193, 115) $donate = GUICtrlCreateButton("Donate", 24, 14, 141, 41, 0) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $donate _IECreate ("http://www.paypal.com") EndSwitch WEnd Link to comment Share on other sites More sharing options...
LiLShinta Posted April 18, 2008 Author Share Posted April 18, 2008 ok thanks ive got it...but it will open internet explorer..how will it open the firefox? Link to comment Share on other sites More sharing options...
ProgAndy Posted April 18, 2008 Share Posted April 18, 2008 Use Shellexecute Then ist opens with default browser *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
mafioso Posted April 18, 2008 Share Posted April 18, 2008 Just run it with an argument, like : $firefoxpath = FileOpenDialog ("Point to Firefox", @WINDOWSDIR, "Executable (*.exe)") Run ($firefoxpath & ' "www.paypal.com') Link to comment Share on other sites More sharing options...
LiLShinta Posted April 18, 2008 Author Share Posted April 18, 2008 Use Shellexecute smile.gif Then ist opens with default browser how will then it be??? Example : #include <IE.au3> #include <GUIConstants.au3> GUICreate("donate example", 184, 73, 193, 115) $donate = GUICtrlCreateButton("Donate", 24, 14, 141, 41, 0) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $donate _IECreate ("http://www.paypal.com") EndSwitch WEnd isnt _IECreate() another func to be called?? Link to comment Share on other sites More sharing options...
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