Jump to content

How to hold a button indefinately


Guest snoopykoo
 Share

Recommended Posts

Guest snoopykoo

It seems like it'd be simple, but I can't get this to hold down Tab indefinately. Basically I just want something to hold tab when I run the script and to let go of it whenever I close the script. I spent about 45 minutes searching the help section for any posts about this but didn't run across anything similar enough to really help me (it probably doesn't help that I'm new to this kind of thing, either >_>). Any help is greatly appreciated.

Link to comment
Share on other sites

It seems like it'd be simple, but I can't get this to hold down Tab indefinately. Basically I just want something to hold tab when I run the script and to let go of it whenever I close the script. I spent about 45 minutes searching the help section for any posts about this but didn't run across anything similar enough to really help me (it probably doesn't help that I'm new to this kind of thing, either >_>). Any help is greatly appreciated.

<{POST_SNAPBACK}>

Pseudo-code:

While 1 = 1

WinActivate

WinWaitActive

Send

WEnd

Read the help file for the correct syntax for each function listed in the Pseudo-code above.

Have fun....

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

Try a {TAB DOWN}..then Func OnAutoItExit() should contain a Send("{TAB UP}")..or smth similar..that's all I can think of..

EDIT: Better give u a sample:

Opt("OnExitFunc","close")
Send("{TAB DOWN}")
while 1
Sleep(1)
wend
Func close()
Send("{TAB UP}")
EndFunc

That's how it should look I think..hope that helps..cheers..

Edited by VicTT
Quote

Together we might liveDivided we must fall

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...