Jump to content

Recommended Posts

Posted

I want to send 5 times ALT+END keys and 1 time ALT+HOME

I have tried a lot of variations like etc:
 

Send("{ALTDOWN}")

Send("{END}")

Send("{ALTUP}")

// other

Send("{!END}")

Send("!{END}")

// other

Send("{ALT DOWN}")

Sometimes it worked one time pressed, but it must be send 5 times.

Posted
Posted
33 minutes ago, TheXman said:

Did you try

Send("!{END 5}")
Send("!{HOME}")

 

I made function by hotkey. It use ALT+END one time and no use ALT+HOME. Sometimes it uses ALT+HOME only

; Press Esc to terminate script, Pause/Break to "pause"

#include <Color.au3>
#include <MsgBoxConstants.au3>


HotKeySet("{ESC}", "Terminate")
HotKeySet("{F1}", "Zooming")

;;;; Body of program would go here ;;;;
While 1
    Sleep(10)
WEnd
;;;;;;;;

Func Zooming()
    

        ;Send("{ALTDOWN}")
       ; Send("{HOME}")
        ;Sleep(150)

        Send("!{END 5}")
        Sleep(100)
        Send("!{HOME}")






EndFunc   

Func Terminate()
    Exit 0
EndFunc   ;==>Terminate

 

Posted

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...