Sign in to follow this  
Followers 0
LiLShinta

Donate Button and List Box Rotation

8 posts in this topic

#1 ·  Posted (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 by LiLShinta

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

For the first question use

Case $donatebutton

_IECreate ("yourpaypallink")

Edited by mafioso

Share this post


Link to post
Share on other sites

Case $donatebutton

_IECreate ("yourpaypallink")

how will it be?? will this open the default web browser and push into my paypa account?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

ok thanks ive got it...but it will open internet explorer..how will it open the firefox?

Share this post


Link to post
Share on other sites

Use Shellexecute :D 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

Share this post


Link to post
Share on other sites

Just run it with an argument, like :

$firefoxpath = FileOpenDialog ("Point to Firefox", @WINDOWSDIR, "Executable (*.exe)")

Run ($firefoxpath & ' "www.paypal.com')

Share this post


Link to post
Share on other sites

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

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  
Followers 0