DiGiTal Posted August 8, 2017 Share Posted August 8, 2017 Hi.For example this : how, can i get the x,y,width,height ??? wdwLogin = guiCreateWindow(X, Y, Width, Height, "Please Log In", true) Link to comment
NeXuS™ Posted August 8, 2017 Share Posted August 8, 2017 Those are variables, you can type in 0-1 if you have that true at the end, if it's false, you can enter a number which will represent pixels. Link to comment
DiGiTal Posted August 8, 2017 Author Share Posted August 8, 2017 (edited) @NeXuS™ you didn't understand, How i get those pixels. 20 minutes ago, NeXuS™ said: Those are variables, you can type in 0-1 if you have that true at the end, if it's false, you can enter a number which will represent pixels. you didn't understand, How i get those pixels. Edited August 8, 2017 by Ridden Link to comment
NeXuS™ Posted August 8, 2017 Share Posted August 8, 2017 Do you mean how to get the width and the height of that GUI? Link to comment
NeXuS™ Posted August 8, 2017 Share Posted August 8, 2017 local sX, sY = guiGetScreenSize() local X, Y, Width, Height = 0.1, 0.1, 0.2, 0.2 local guiW = guiCreateWindow(X, Y, Width, Height, "Test", true) local pixelX, pixelY, pixelWidth, pixelHeight = X*sX, Y*sY, Width*sX, Height*sY Try this one. Link to comment
DiGiTal Posted August 8, 2017 Author Share Posted August 8, 2017 thx. otherone question 0.1, 0.1, 0.2, 0.2 wht does it mean ??? Link to comment
NeXuS™ Posted August 8, 2017 Share Posted August 8, 2017 Read the wiki tutorial about this. Link to comment
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