AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

function call problem

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
pieczi



Joined: 08 Mar 2008
Posts: 5

PostPosted: Sat Mar 08, 2008 4:17 pm    Post subject: function call problem Reply with quote

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;/
Back to top
View user's profile Send private message
Oberon



Joined: 18 Feb 2008
Posts: 458

PostPosted: Sat Mar 08, 2008 4:26 pm    Post subject: Reply with quote

Code:
Wydokowanie(option)
{
  global
if option=1
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group