Jump to content

Recommended Posts

Posted

As the title says, it probably sounds extremely simple to all of you super techies, but allow me to say this first. I'm no computer whiz. I just like playing games, although I don't have much time for it. (Which is why I'm looking into making this).

I'd really like some help, and if someone does just outright do the 5 seconds of work I'm sure you guys could do this in (which would take me like 5 days to even begin to attempt) that would be great, but I would also appreciate a more human like walkthrough in making something simple such as this. I did read a good deal of the helpfile, but a lot of it I just didn't understand. I don't know any "languages" or any fancy computer stuff. I'm a complete newbie.

I've even tried making a script that just changes windows to the window I want the key pressed on, but for some reason when I ran it as a script nothing happened :/ not sure what I did wrong.

Anyways here's the details on the script : I want it to of course swap to the window so the key pressing works on that window, then I want it to press a single keyboard key once every 5 minutes and 30 seconds. (I'll probably be at work, class, or sleeping while this is happening).

That's it. So yeah, it sounds super easy, but I can't find anything to do it for me, nor can I make it.

Really appreciate any help the nice people of this community could give to me :) Thanks!

Posted (edited)

  On 12/19/2012 at 7:23 AM, 'LoganWitt said:

As the title says, it probably sounds extremely simple to all of you super techies, but allow me to say this first. I'm no computer whiz. I just like playing games, although I don't have much time for it. (Which is why I'm looking into making this).

I'd really like some help, and if someone does just outright do the 5 seconds of work I'm sure you guys could do this in (which would take me like 5 days to even begin to attempt) that would be great, but I would also appreciate a more human like walkthrough in making something simple such as this. I did read a good deal of the helpfile, but a lot of it I just didn't understand. I don't know any "languages" or any fancy computer stuff. I'm a complete newbie.

I've even tried making a script that just changes windows to the window I want the key pressed on, but for some reason when I ran it as a script nothing happened :/ not sure what I did wrong.

Anyways here's the details on the script : I want it to of course swap to the window so the key pressing works on that window, then I want it to press a single keyboard key once every 5 minutes and 30 seconds. (I'll probably be at work, class, or sleeping while this is happening).

That's it. So yeah, it sounds super easy, but I can't find anything to do it for me, nor can I make it.

Really appreciate any help the nice people of this community could give to me :) Thanks!

while 1

sleep (330000)

winactivate ("title of window")

send ("key here")

wend

like that or something?

why don't you post the script that you have...

Edited by tp9191
Posted (edited)

Now I know what winactive and send do, but what are the while 1 and sleep 330k and wend for?

So far I just have

WinActivate ( "title" )

Not sure where to go from there, but once I understand the above question I think I can finish it :)

Edited by LoganWitt
Posted (edited)

while 1 and wend are to loop the script so that it repeats.

while 1 is at the beginning of what you want to loop.

wend stands for while end, obviously it is where you want the script to stop looping.

sleep pauses the script. in your case you want it to pause for 5 minutes and 30 seconds. you need to convert that to milliseconds... so that comes out to 330000.

i'm also somewhat a newbie so i'm not sure if you can just use minutes/seconds form instead of milliseconds for sleep.

Edited by tp9191
Posted

Please make sure to read the forum rules and you will learn that any kind of game automation isn't allowed here.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)

Ooh, you're obviously smarter than me since you've already figured all this out!

Thanks for the tips, I'll give it a try with the lines you gave me and see if I can get it working.

How would I send just a single letter? Is there a code for it? I couldn't find that in the help file.

Also sorry Water, didn't know that. D: Can't really edit it now to say something else though.

Edited by LoganWitt
Posted

  On 12/19/2012 at 7:47 AM, 'LoganWitt said:

Ah darn, I'm sure others are here doing the same :P they were just smarter in how they worded their post xD

I doubt it. The truth always comes out in the end via posting code.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Moderators
Posted

LoganWitt,

  Quote

I'm sure others are here doing the same they were just smarter in how they worded their post

Probably an accurate assessment - but as you have essentially admitted the offence...... :naughty:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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