Jump to content

more function with one click


danusko
 Share

Recommended Posts

Hi all

i have a script which make ctrl+home or ctrl+end. I have it set on my mouse. When i click first time it goes up and second down. But now i want insert other function in this script. Now it works so. I send hot key with my mouse and script is define - when i press this hot key, it makes up or down. Now i need insert, except this 2 func. other. When the concrete window is active, do other function, f.e. PageDown, and when is other windo active is PageUp.

Pls. is it posible?

thanke you for your advise

my script but it doesnt works right:

AutoItSetOption ( "SendKeyDelay", 50 )
$g_bSet = 0
HotKeySet("^!+p","MyFunc")

sleep(10)

Func MyFunc()

if WinActive ("Nové správy", "") then
send("{pgdn}")
endif

$g_bSet = Not $g_bSet
if $g_bSet= "true" then
send("^{end}")
ToolTip("VVV DOLU VVV", 450,500)
sleep(600)
ToolTip("")
else
send("^{home}")
ToolTip("!!!!!!!!!!!!!!!!! hore !!!!!!!!!!!!!!!!!", 400,300)
sleep(600)
ToolTip("")
endif
EndFunc


While 1

Sleep(1)

 Wend

exit
Link to comment
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
 Share

  • Recently Browsing   0 members

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