Jump to content
Sign in to follow this  
Gordoni

Using Key in minimalized window

Recommended Posts

Gordoni

Hello .Looking for help with use key in minimalized window - SHIFTDOWN

I was try to use

ControlSend($WindowName, "", "", "{SHIFTDOWN}")

but it doesnt work for me or my script.

Can any 1 give me any another ideas ?

Gordoni


Share this post


Link to post
Share on other sites
nfaustin

Try HotKeySet..


[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]

Share this post


Link to post
Share on other sites
Gordoni

Try HotKeySet..

huh ? :)

Still need help


Share this post


Link to post
Share on other sites
AwAke

Try putting a space between the 'SHIFTDOWN' --> Shift Down.

Perhaps use LSHIFT or RSHIFT?

Not sure if that would matter, you could also use WinGetHandle and use the handle in there instead :/ maybe that would work?

Edited by AwAke

Share this post


Link to post
Share on other sites
Gordoni

{SHIFTDOWN} no Shift Down but thanks

Need that to work with only WindowName


Share this post


Link to post
Share on other sites
nfaustin

huh ? :)

Still need help

Are you trying to minimized a window when SHIFTDOWN is pressed or send a keystroke of SHIFTDOWN to that window?


[font="Palatino Linotype"][size="2"]*** The information contained in this post should be considered and certified WORKS ON MY MACHINE ***[/size][/font][font="Palatino Linotype"][size="2"] [/size][/font]

Share this post


Link to post
Share on other sites
Gordoni

Are you trying to minimized a window when SHIFTDOWN is pressed or send a keystroke of SHIFTDOWN to that window?

I wanna send a keystroke of SHIFTDOWN to that window for any time ( example 100000 miliseconds )

or only keystroke of SHIFTDOWN to that window but must be used for a script time ( Example me holding keyboard button with SHIFTDOWN and dont do SHIFTUP )

Btw Send("{SHIFTDOWN}") Works but need to use that in minimalized window

Edited by Gordoni

Share this post


Link to post
Share on other sites
AzKay

Try

ControlSend("WindowName", "", "", "{LSHIFT DOWN}")

# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites
Gordoni

Try

ControlSend("WindowName", "", "", "{LSHIFT DOWN}")
Dont wanna work with my start/stop script but thanks

waiting for help

Edited by Gordoni

Share this post


Link to post
Share on other sites
AwAke

Perhaps posting your code so we can see what you have atm?

Share this post


Link to post
Share on other sites
Gordoni

While  1 
    $T_INIT = TimerInit()
    Do
        ControlSend($WindowName, "", "", "{SHIFTDOWN}")
Until TimerDiff($T_INIT) >= 800000000 ;3000  miliseconds = 3 seconds
    Sleep(100)
WEndoÝ÷ Ø:²{p¢¹ØZºÚ"µÍÙ[
    ][ÝÞÔÒQÕÓI][ÝÊ

works ok but need to hold button in minimalized window.


Share this post


Link to post
Share on other sites
AzKay

Might want to relook your TimerDiff() anyway;

Returns the time difference (in milliseconds) from a previous call to TimerInit().

>= 800000000ms?


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites
bobchernow

Might want to relook your TimerDiff() anyway;

Returns the time difference (in milliseconds) from a previous call to TimerInit().

>= 800000000ms?

I am new to this but I thought that you had to provide a ControlID to the ControlSend function. You might want to use the AutoIt3Info utility to get the ControID and then use that in your ControlSend.

Bob


--------------------bobchernow, Bob ChernowWhat a long strange trip it's beenUDFs: [post="635594"]Multiple Monitor Screen Resolution Change[/post]

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  

×