Sign in to follow this  
Followers 0
Coder_Noob

WinSetTrans help

4 posts in this topic

#1 ·  Posted (edited)

Whats the middle field for?

WinSetTrans("Win Name","This one",Ocapacity 0-255)

Edited by Coder_Noob

Avatar made on Gmod for HL2 by me!Name on Gmod: Oclops

Share this post


Link to post
Share on other sites



If there is text on the window that would make it "unique", it can be left blank in most cases.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Whats the middle field for?

WinSetTrans("Win Name","This one",Ocapacity 0-255)

It helps define which window you are working with... If you had two notepad windows open and the titles were the same, you might be able to match only one of them using some unique text.

Try it - open two notepad windows and type HELP into one of them... look at each with the "AutoIt Window Info" tool. The word HELP should appear undetrr this part of the tool:

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

So you would write the line of code as:

WinSetTrans("Untitled - Notepad","HELP",144)

or

WinSetTrans("Untitled - Notepad","",144)

if you do not care which window gets set

ronsrules beat me to it - because I write too much and too slow :-)


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Ty 2 both of u


Avatar made on Gmod for HL2 by me!Name on Gmod: Oclops

Share this post


Link to post
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
Sign in to follow this  
Followers 0