Sign in to follow this  
Followers 0

need help with a command

24 posts in this topic

Posted · Report post

im making a bot and i need to press and hold the leftarrow for a certain amount of time, but i only know how to make it press the leftarrow for a certain amount of strokes. Does any one know how to make the bot press and hold leftarrow key for a certain amount of seconds?

Share this post


Link to post
Share on other sites



Posted · Report post

MouseDown("left")

Sleep(1000) ; sleep one second

MouseUp("left")

Share this post


Link to post
Share on other sites

Posted · Report post

will that work with autoit with v2.xx

Share this post


Link to post
Share on other sites

Posted · Report post

err sorry for the double, but im gonna go try it, thanx

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

err sorry for the double, but im gonna go try it, thanx

nope... this are autoit3 commands... Edited by JdeB

Share this post


Link to post
Share on other sites

Posted · Report post

hmm, is there a way to do with v2?

or can i just recompile with v3?

Share this post


Link to post
Share on other sites

Posted · Report post

where can i get the install for v. 3?

Share this post


Link to post
Share on other sites

Posted · Report post

not sure if its possible but i don't think so.

You cannot just recompile.. the syntax is different. you can however use it next to v2 since it uses the AU3 file ext...

Share this post


Link to post
Share on other sites

Posted · Report post

ok, but i will just start using v.3. It will make it a lil easier if i just use v3

do u know where i can get it?

Share this post


Link to post
Share on other sites

Posted · Report post

thanx, do u use aim, msn messenger, or icq.

if so i would like to add u

u been a great help

thanx

Share this post


Link to post
Share on other sites

Posted · Report post

umm, lol how do i install v3?

Share this post


Link to post
Share on other sites

Posted · Report post

This forum is great to get help... just post here to get help .. mostly enough people on line to help you out...

Share this post


Link to post
Share on other sites

Posted · Report post

nvm i found the install, lol

Share this post


Link to post
Share on other sites

Posted · Report post

ok, thanx again

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

umm, lol how do i install v3?

did you download autoit-v3.0.85-beta.exe and run it ??

It's and installset that does it all for you...

Edited by JdeB

Share this post


Link to post
Share on other sites

Posted · Report post

hey jdbe, it didnt work, i want it to hold leftarrow key, not the left mousekey.

what command sends hold leftarrow key?

Share this post


Link to post
Share on other sites

Posted · Report post

nvm, the new autoit v3 in the help files tell me how, thanx for the help again

autoit v3 is much, even the help files

Share this post


Link to post
Share on other sites

Posted · Report post

hey jdeb, this is what im doing

Run("Notepad.exe")

sleep(1000)

Send("sadgasdgsdgsdagdasgasgasdgsagasg")

sleep("1000")

send("{LWINDOWN}")

sleep("5000")

send("{LWINUP}")

after it types in "asdgasg" the mouse disappears and then it clicks startmenu, the

LWINDOWN and LWINUP isnt working, what am i doing wrong?

Share this post


Link to post
Share on other sites

Posted · Report post

:iamstupid: i misread you initial question... sorry

what would you want the script to do in your example ?

You press the left windowskey down ..

Share this post


Link to post
Share on other sites

Posted · Report post

well i pressed it down, but when i run it, it doesnt do anything buy type "asgdas" in and then waits 5sec and then startmenu comes up.

what am i doing wrong?

Share this post


Link to post
Share on other sites

Posted · Report post

would this work ??

$s = timerstart()

While Timerstop($s) < 5000

send("{left}")

wend

Share this post


Link to post
Share on other sites

Posted · Report post

There isn't any way to hold a "normal" key down.

Hmmm. Maybe I can do something with the {} syntax to do it.

Share this post


Link to post
Share on other sites

Posted · Report post

I appreciate that very much if u could do that jon

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

  • Recently Browsing   0 members

    No registered users viewing this page.