Sign in to follow this  
Followers 0
AU3Newbie

HotKeySet() & GUICtrlEDIT 2 problems

2 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Psibernetic

[sup]Psibernetic[/sup]My Creations:X-HideSecuracy

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  
Followers 0