Change focus?
Forum rules
This is a sub-forum for things specific to MicroMacro.
This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
This is a sub-forum for things specific to MicroMacro.
This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
- 3cmSailorfuku
- Posts: 354
- Joined: Mon Jan 21, 2008 6:25 pm
Change focus?
I haven't found any useable function in the micromacro documentation, so I wonder if theres a function to change the current focus, like focusWindow("Mozilla Firefox");.
- Administrator
- Site Admin
- Posts: 5313
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Change focus?
Great idea. I've added this and uploaded it to the main page (built with LuaCoco -- since it appears stable enough).
The function is showWindow(window, command)
Where window is obtained with findWindow(), and command is one of the following:
The function is showWindow(window, command)
Where window is obtained with findWindow(), and command is one of the following:
- sw.show -- activate (show and set focus to) the window
sw.shownormal -- activate and restore to original size and position
sw.hide -- hide the window
sw.forceminimize -- forcefully minimize (also hides the window)
sw.minimize -- minimize the window
sw.maximize -- activate and maximize the window
sw.restore -- activate the window and restore to original size and position (used after minimizing)
Re: Change focus?
i was searching forum, but didnt find,
so is there comand for set window size and position?
so is there comand for set window size and position?
Life is a journey, not destination
Re: Change focus?
for MM you can use
values are in characters, so if you do 40,40 it won't look like a square because characters are taller than they are wide.
For any window you can use this for its position
setWindowPos(window, wx, wy, ww, wh, t)
info on it here
http://www.solarstrike.net/wiki/index.p ... wPos.28.29
Code: Select all
setConsoleAttributes(Width,Height)
For any window you can use this for its position
setWindowPos(window, wx, wy, ww, wh, t)
info on it here
http://www.solarstrike.net/wiki/index.p ... wPos.28.29
Remember no matter you do in life to always have a little fun while you are at it
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Who is online
Users browsing this forum: No registered users and 1 guest