Sign in to follow this  
Followers 0
Wallfire

Tooltip Is Right Clicking?

6 posts in this topic

in my code i have 4 lines of "send" commands and for some reason the last line causes a right click action on the IE browser. it happens really fast, but i managed to get a screenshot of it just incase no one belives me. if you think it is my code doing it i provide a copy of the code also. if i comment out the 4th send command line, the right-click goes away. even if i copy/paste a working send command ontop of the 4th one i still get a right click. its really weird and i cant figure out what i can do to make it stop. for now i just have to limit myself to 3 lines. anyone know what could be causing this? here is a code sniplet:

send("@gr2@wall-bot's taxi service is now leaving fally. {ENTER}")  
    send("@gr2@wall-bot's taxi service: next stop varrock {ENTER}")
    sleep(400)
;send("@gr2@follow for a free ride to varrock!!! {ENTER}")
    send("{ENTER}")

the 4th line un-commented will make it right click as soond as it types in 'free ride'. the screen shot i have shows this quite well.

the screen shot is a bmp so its big, heres a ziped version: HERE

( yes it is for a game :whistle: )


:cheer: awww...wheres the chick?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You do realize that sending the ! is sending alt-keystrokes and not that character, right? That could be causing problems...

Edited by Valik

Share this post


Link to post
Share on other sites

Looking at your screenshot, that IS what's going on. That's not a right-click menu, that's the system menu you can get by clicking the icon in the upper left of almost every window. The shortcut key to activate that is Alt+Space. Right after you have !!! in your script, there is a space.

Share this post


Link to post
Share on other sites

You should send raw data when you use !+ or ^, then change to normal when you want it to send special keys.

send("@gr2@wall-bot's taxi service is now leaving fally. ",1)
send("{ENTER}")
send("@gr2@wall-bot's taxi service: next stop varrock",1)
send("{ENTER}")
sleep(400)
send("@gr2@follow for a free ride to varrock!!!",1)
send("{ENTER}")

Send ( "keys" [, flag])

keys The sequence of keys to send.

flag [optional] Changes how "keys" is processed:

  flag = 0 (default), Text contains special characters like + and ! to indicate SHIFT and ALT key presses.

  flag = 1, keys are sent raw.


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

hmm...your right. i forgot about that. atleast now i have a logical reason for why it was messing up, i was goin nuts earlier trying to figure out what was wrong.

thanks!

or should i say...

send("thanks!",1)


:cheer: awww...wheres the chick?

Share this post


Link to post
Share on other sites

The alternative is to enclose the special keys in curly brackets { }.

send("@gr2@wall-bot's taxi service is now leaving fally. {ENTER}")
send("@gr2@wall-bot's taxi service: next stop varrock {ENTER}")
sleep(400)
;send("@gr2@follow for a free ride to varrock{!}{!}{!} {ENTER}")
send("{ENTER}")

Also, when you send the same key several times, you can put it in curlies and put a number afterwards, like:

send("@gr2@wall-bot's taxi service is now leaving fally. {ENTER}")
send("@gr2@wall-bot's taxi service: next stop varrock {ENTER}")
sleep(400)
;send("@gr2@follow for a free ride to varrock{! 3} {ENTER}")
send("{ENTER}")

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0