Sign in to follow this  
Followers 0
danusko

hot key click or double click

4 posts in this topic

Hi everybody,

please i want to do a script

i want make with one hot key , f.e. win+a - two function , f.e. when i press once win+a it will makes "up" and when i press win+a twice it makes "down"

is it possible?

thanks for your advise

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

global boolean

Ok

but, where i define my two function?

i see only one possibility to define a function. Or?

thanke you

this doesnt works

;)

$g_bSet = 0

HotKeySet("^a","sendkey")

While 1

Sleep(10)

WEnd

Func sendkey()

send ("{up}")

send ("{down}")

EndFunc

Edited by danusko

Share this post


Link to post
Share on other sites

Hi!

The trick should be to define one function (connected to the hotkey) and then divide inside of this margin func to two different funcs which you can easily call depending of the result of your calcualtions.

Good luck, peethebee


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Share this post


Link to post
Share on other sites

I have it

look:

$g_bSet = 0

HotKeySet("^!+","MyFunc")

While 1

Sleep(10)

WEnd

Func MyFunc()

$g_bSet = Not $g_bSet

if $g_bSet= "true" then

send("^!{end}")

else

send("^!{home}")

endif

EndFunc

thanke you guys

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