danusko Posted October 27, 2005 Posted October 27, 2005 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
Valuater Posted October 27, 2005 Posted October 27, 2005 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)
danusko Posted October 27, 2005 Author Posted October 27, 2005 oh good i try whatever but this no thank you
Valuater Posted October 27, 2005 Posted October 27, 2005 oh goodi try whatever but this no thank youdid it work... or not???i am confussed by your reply8)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now