Gordoni Posted January 31, 2009 Share Posted January 31, 2009 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 Link to comment Share on other sites More sharing options...
nfaustin Posted January 31, 2009 Share Posted January 31, 2009 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] Link to comment Share on other sites More sharing options...
Gordoni Posted January 31, 2009 Author Share Posted January 31, 2009 Try HotKeySet..huh ? Still need help Link to comment Share on other sites More sharing options...
AwAke Posted January 31, 2009 Share Posted January 31, 2009 (edited) 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 January 31, 2009 by AwAke Link to comment Share on other sites More sharing options...
Gordoni Posted January 31, 2009 Author Share Posted January 31, 2009 {SHIFTDOWN} no Shift Down but thanks Need that to work with only WindowName Link to comment Share on other sites More sharing options...
AwAke Posted January 31, 2009 Share Posted January 31, 2009 Why not try; AutoItSetOption("WinTitleMatchMode", 4) $hwnd = WinGetHandle($windowname, "") ControlSend($hwnd, "", "", "{SHIFTDOWN}") Link to comment Share on other sites More sharing options...
nfaustin Posted January 31, 2009 Share Posted January 31, 2009 huh ? Still need helpAre 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] Link to comment Share on other sites More sharing options...
Gordoni Posted January 31, 2009 Author Share Posted January 31, 2009 (edited) 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 January 31, 2009 by Gordoni Link to comment Share on other sites More sharing options...
AzKay Posted January 31, 2009 Share Posted January 31, 2009 Try ControlSend("WindowName", "", "", "{LSHIFT DOWN}") # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Gordoni Posted January 31, 2009 Author Share Posted January 31, 2009 (edited) Try ControlSend("WindowName", "", "", "{LSHIFT DOWN}")Dont wanna work with my start/stop script but thanks waiting for help Edited January 31, 2009 by Gordoni Link to comment Share on other sites More sharing options...
AwAke Posted January 31, 2009 Share Posted January 31, 2009 Perhaps posting your code so we can see what you have atm? Link to comment Share on other sites More sharing options...
Gordoni Posted January 31, 2009 Author Share Posted January 31, 2009 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. Link to comment Share on other sites More sharing options...
AzKay Posted January 31, 2009 Share Posted January 31, 2009 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- # Link to comment Share on other sites More sharing options...
bobchernow Posted January 31, 2009 Share Posted January 31, 2009 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] Link to comment Share on other sites More sharing options...
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