bobheart Posted July 14, 2004 Posted July 14, 2004 What and where do I put code to make the gui open to the top left corner ?
CyberSlug Posted July 14, 2004 Posted July 14, 2004 GUICreate("title", width, height, left, top)Hope that helps Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
bobheart Posted July 14, 2004 Author Posted July 14, 2004 Not sure ? looks diff to me . #cs - ### Generated by AutoBuilder 0.4 -- do not modify ### 759 46 0 11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 button $button_1 snapit 10 10 50 20 0 0 button $button_2 Button 2 70 10 60 20 0 0 button $button_3 Button 3 140 10 60 20 0 0 button $button_4 Button 4 210 10 60 20 0 0 button $button_5 Button 5 280 10 60 20 0 0 button $button_6 Button 6 350 10 60 20 0 0 button $button_7 Button 7 420 10 50 20 0 0 button $button_8 Button 8 480 10 50 20 0 0 button $button_9 Button 9 540 10 50 20 0 0 button $button_10 Button 10 600 10 50 20 0 0 button $button_11 Button 11 670 10 50 20 0 0 #ce - ### End of Dump ### ;Script generated by AutoBuilder 0.4 Opt("GUICoordMode", 1) Opt("GUINotifyMode", 1) GuiCreate("MyGUI", 757,41,(@DesktopHeight-757)/2, (@DesktopHeight-41)/2 , 0x04CF0000)
CyberSlug Posted July 14, 2004 Posted July 14, 2004 Opt("GUICoordMode", 1)Opt("GUINotifyMode", 1)GuiCreate("MyGUI", 757, 41, 0, 0) Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
bobheart Posted July 14, 2004 Author Posted July 14, 2004 --------------------------- AutoIt Error --------------------------- Line 22 (File "E:\Programss\mini manager.au3"): GuiCreate("MyGUI", 757,41,0,0,(@DesktopHeight-757)/2, (@DesktopHeight-41)/2 , 0x04CF0000) ^ ERROR Error: Incorrect number of parameters in function call. --------------------------- OK ---------------------------
pekster Posted July 14, 2004 Posted July 14, 2004 You replace the position you want with the one the autobuilder generated for you... in your code you added them in, and GuiCreate doesn't take that many paramaters. [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.
Developers Jos Posted July 14, 2004 Developers Posted July 14, 2004 ---------------------------AutoIt Error---------------------------Line 22 (File "E:\Programss\mini manager.au3"):GuiCreate("MyGUI", 757,41,0,0,(@DesktopHeight-757)/2, (@DesktopHeight-41)/2 , 0x04CF0000)^ ERRORError: Incorrect number of parameters in function call.---------------------------OK ---------------------------Bob,this bit " (@DesktopHeight-757)/2, (@DesktopHeight-41)/2" makes a calculation to come up with the correct X and Y to center the window. REPLACE it with 0,0 to move the windo to left top.GuiCreate("MyGUI", 757,41,0,0, 0x04CF0000) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
bobheart Posted July 14, 2004 Author Posted July 14, 2004 (edited) I was thinking that might be it but waited to see what someone said here first .This what I was making. Edited July 14, 2004 by bobheart
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