Joseph Posted April 28, 2009 Share Posted April 28, 2009 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 http://runecrue.awardspace.comhttp://demopros.awardspace.com Link to comment Share on other sites More sharing options...
Spiff59 Posted April 28, 2009 Share Posted April 28, 2009 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 More sharing options...
Valuater Posted April 28, 2009 Share Posted April 28, 2009 $gui = GUICreate("Runescape Free Player Ad Busta", 750, 80, 100, 100, -1, See help for On-Top)The 100, 100 is the location and you might want to set the gui On-Top8) 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