AU3Newbie Posted January 11, 2007 Posted January 11, 2007 How to define a hotkey and let it send different contents everytime you press it? e.g.1 1st time you press {F8},it send("{1}"); 2nd time you press {F8},it send("{2}"); ... 100 times you press {F8},it send("{100}") e.g.2 $tring="this is a book" 1st time you press {F8},clipput(stringleft($string,4)); 2nd time you press {F8},clipput(stringmid($string,4,8)); 3rd time you press {F8},clipput(stringfight($string,5)); ... BTW,How to make GUIctrlEDIT auto change lines in it,i.e.let it has a V-scrollbar and hasn't a H-scrollbar?
Psibernetic Posted January 11, 2007 Posted January 11, 2007 (edited) Sumthing like this work? CODE $AmmountOfKeyPress=0 #cs | \/ Hotkey action #ce select case $AmmountOfKeyPress=0 ;execute code 1 $AmmountOfKeyPress=$AmmountOfKeyPress+1 case $AmmountOfKeyPress=1 ;execute code 2 $AmmountOfKeyPress=$AmmountOfKeyPress+1 case $AmmountOfKeyPress=2 ;execute code 3 $AmmountOfKeyPress=0 EndSelect Edited January 11, 2007 by Psibernetic [sup]Psibernetic[/sup]My Creations:X-HideSecuracy
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