Sign in to follow this  
Followers 0
zzxxzzxx

Unfocus a window

8 posts in this topic

hi, is there any commands that allows me to unfocus a window? so that it is in the background.

or just simply put, focus on desktop itself.

i tried WinSetState but did not work.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Opt("WinTitleMatchMode",4)
WinActivate("classname=Shell_TrayWnd")

Or

WinActivate("Program Manager")

Hope that helps. You should really be looking at the help file though.

Edited by AznSai

Share this post


Link to post
Share on other sites

oh thanks. i tried winactivate b4, but dunno what i should put inside.

the help file dint give any clue ^^

thks, been a great help.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

huh??

sorry dint catch what you are trying to ask.

-edit1-

Oh, one more question, cos i cant set {LCTRL} as a hotkey.

so is there any other way to do that?

pressing ctrl while doing work is sort of hampering my game play in the background.

so i'll like it to be doing other thing while i press ctrl. usually just left ctrl.

-edit2-

i've seen some codes like

Send ("!{DOWN}")

what does the exclamation(!) mark do?

still learning more codes.

Edited by zzxxzzxx

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

oh, ok. thanks.

opt1: what are the possible ways for getting ctrl or lctrl to be set as hotkeys.

opt2: detecting ctrl or lctrl is being pressed, then do a command.

for my previous "edit1", lets say i want to use "If" command and wait for the ctrl button to be pressed, what can i do so 'capture' that keystroke?

eg:

If 'ctrl is pressed', send (" ", 1)

something like that..... how to i change 'ctrl is pressed' to autoit commands...

Edited by zzxxzzxx

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