-
I'm trying to use a button on my site that you can only open (for novelty, not security) by holding down "`" and clicking. Is this possible? I tryed this:
Code:
on (release, keyPress "`") {
getURL("http://www.mysite.com/mypage.php", "_self");
}
But, either the click OR the keypress opens mypage.php. Is there a way to say ONLY with release and the keypress to getURL? Thanks for any help!
Brando
-
on (release && keypress "'") {
statements
}
might work
-
That didn't work.
-
Any other ideas?
-
-
Code:
on (release) {
if (Key.isDown(192)) {
getURL("http://www.mysite.com/mypage.php", "_self");
}
}
192 is the key code for the ` (backstick).
-
Thank you! Works great!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|