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 

new to IF function and need some minor help

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



Joined: 23 Feb 2006
Posts: 22

PostPosted: Tue May 23, 2006 3:21 pm    Post subject: new to IF function and need some minor help Reply with quote

I am new to IF functions. How do i set the contents of the clipboard as a variable? I am trying to write it so that it goes to a specific spot on a web page and copies a number. If the number is less than 4, it should click one spot and if not it should click a different spot. Any chance someone could post a simple example?
_________________
Matt P Cluever
Back to top
View user's profile Send private message
Greg



Joined: 22 Dec 2005
Posts: 246

PostPosted: Tue May 23, 2006 3:24 pm    Post subject: Reply with quote

No. You ask three different questions. And you don't provide enough information to create a sample script. Please elaborate exactly what you want.
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Tue May 23, 2006 3:40 pm    Post subject: Reply with quote

"If" isn't a function, but a "flow of control" command...
"Clipboard" is already a variable.
Syntax (check the If manual page for details) looks like:
If (clipboard = 4)
{
; Do this
}
Else
{
; Do that
}

_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
mpcluever



Joined: 23 Feb 2006
Posts: 22

PostPosted: Tue May 23, 2006 6:01 pm    Post subject: Reply with quote

perfect! i just needed to know how to word it. thanks!
_________________
Matt P Cluever
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