Jump to content

gui opening placement (webbrowser ad blocker)


Joseph
 Share

Recommended Posts

i'm making this simple program to block the ad of a videogame that i play.. can someone tell me how to make the gui open in a certain place when its opened instead of right in the center of the screen? heres the program code here

CODE
#include <guiconstants.au3>

$gui= GUICreate("Runescape Free Player Ad Busta" , 750,80,-1,-1,-1)

$button1= GUICtrlCreateButton("AdBlockBusta 1.0", 0,0,375,50)

$button2= GUICtrlCreateButton("AdBlockBusta Too", 375,0,375,50)

$ExitId = GUICtrlCreateButton("Exit",0,50,30,25)

GUICtrlCreateLabel("Place This Over Runescape Free Player Advertisement to Block Unwanted Advertising - Courtesy of RSCG 2009",125,50,750,25,0,0)

GUISetState(@sw_show)

winsetontop($GUI, "",1)

while 1

$msg = GUIGetMsg()

Select

Case $msg= $ExitId

GUIDelete()

Exit

case $msg= $button1

msgbox(0,"msgbox","generics")

case $msg= $button2

button2cmd()

EndSelect

WEnd

Func button2cmd()

msgbox(0,"=)","yeeaa ^.^")

endfunc

Link to comment
Share on other sites

Replace some of the -1's in your GUICreate() statement.

You'll have to check the help file under GuiCreate to see which is which.

I always forget the order of the coordinate parameters.

Same parameters apply to message controls, label controls, etc.

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