Sign in to follow this  
Followers 0
danusko

more function with one click

4 posts in this topic

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

Share this post


Link to post
Share on other sites



maybe like this

Func MyFunc()

If WinActive ("Nové správy", "") then
    send("{pgdn}")
; do what ever you want
Endif

If Not WinActive ("Nové správy", "") then
    send("{pgup}")
; do what ever you want
Endif

EndFunc

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

oh good

i try whatever but this no B)

thank you

Share this post


Link to post
Share on other sites

oh good

i try whatever but this no B)

thank you

did it work... or not???

i am confussed by your reply

8)


NEWHeader1.png

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