Jump to content

Donate Button and List Box Rotation


Recommended Posts

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
Link to comment
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
Link to comment
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

Link to comment
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??

Link to comment
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
 Share

  • Recently Browsing   0 members

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