Jump to content

Recommended Posts

Posted

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

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
Posted

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

Posted

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

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...