Forum Discussion

Ashishp_1's avatar
Ashishp_1
Contributor
15 years ago

holding down esc key

Hi,



   I have one problem.....



I want to drag some items with continuous pressing esc key...I am using scenario below.. But its not working..... 



 1)holding down esc key2) dragging some object 3) releasing esc key



function Test38()

{

  Aliases["Home"]["Keys"]("[Hold][Esc]");

  Aliases["Home"]["Drag"](360, 156, 100, 100);          

  Aliases["Home"]["Keys"]("[Esc][ReleaseLast]");

}
Am I going wrong OR do u have any another solution?
Thanks
Ashish





 

4 Replies

  • Jhansee's avatar
    Jhansee
    Occasional Contributor
    Hi,



    I didn't get your problem exactly.

    If you want to select multilple Items You can use "Shift_Press" and "Shift_Release" functions



    Correct me if I am wrong.



    Thank You

    K.Jhansi
  • Hi Jhansi,



       In my project there is some child screen that I want to move, but it can move only after keep pressing esc key then- hold left mouse key and drag then- release esc key.



    eg..when u r using paint, u have cut some part then that part u can move anywhere in paint.



    Note: I want to use only Esc key not other like shift or Ctrl.


    If u still have problem, Plz let me know !



    Thanks 

    Ashish


  • Hi Jared,



        Many many thanks for helping me ....It works as I expect.



    Once again thanks......

    Ashish