pieczi
Joined: 08 Mar 2008 Posts: 5
|
Posted: Sat Mar 08, 2008 4:17 pm Post subject: function call problem |
|
|
| Code: |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetDefaultMouseSpeed, 20
;Undock
Ux:=22
Uy:=761
Wydokowanie(option)
{
if option=1
{
SendEvent {Click %Ux%, %Uy%}
}
;if option=2
}
loop
{
Wydokowanie(1)
sleep, 10000
} |
it wont change option via function call;/ |
|