Jump to content
woodsha

Repeat the script

Recommended Posts

woodsha

I want to run the following scrip every 1 min. please help

WinWait, RealTime Feeder | RealTime`, IEOD and EOD Data Provider., 
IfWinNotActive, RealTime Feeder | RealTime`, IEOD and EOD Data Provider., , WinActivate, RealTime Feeder | RealTime`, IEOD and EOD Data Provider., 
WinWaitActive, RealTime Feeder | RealTime`, IEOD and EOD Data Provider., 
MouseClick, left,  249,  289
Sleep ,100

Share this post


Link to post
Share on other sites
SadBunny

AutoHotKey have a forum too: http://www.autohotkey.com/board/


Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites
UEZ

@SadBunny: maybe he wants to do it with AutoIt.

@woodsha: please provide some more information about the application using e.g. AU3Info which can be found in AutoIt dir or just call it from SciTE (Ctrl + F6).

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
JLogan3o13

AutoHotKey have a forum too: http://www.autohotkey.com/board/

​I don't understand what made you think this was a worthwhile addition to this thread. Yes, there is an AHK forum, just as there is a VBScript forum, a javascript forum, a python forum, etc. etc. etc. The OP is posting on this forum, which language would common sense lead you to think he wants to automate this task with?


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
Melba23

JLogan3o13,

​I don't understand what made you think this was a worthwhile addition to this thread

Possibly the AHK syntax of the script the OP posted?

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:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
JLogan3o13

My take on the OP was that, having tried it unsuccessfully in AHK, he was posting here for a solution.

Perhaps you are correct and I am mistaken. Mea Culpa


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
TheDcoder

It would be nice if the OP uses code tags :)


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) mean to do that to anybody!!!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites
ViciousXUSMC

Here is how I would do this, sans of course translating your AHK Script to AutoIT

;Register a function and run it every XXXXX Miliseconds 60000 = 1 Minute
AdlibRegister("MyFunc", 60000)

;Loop script to keep it running, small sleep to reduct CPU load
While 1
    Sleep(100)
WEnd

;Your function (Replace MsgBox with your function you want to run)
Func MyFunc()
    MsgBox(0, "", "time")
EndFunc

 

Share this post


Link to post
Share on other sites
SadBunny

​I don't understand what made you think this was a worthwhile addition to this thread.

​Well, OP posted AHK code, did not mention AutoIt, and his question was (at least as I interpreted it) how to put a loop around script. Not how to port it to AutoIt. Which made me think it was an honest mistake (one that has been made before) and that OP actually meant to ask help for an AHK loop. So for once in my life I kept my answer under 3000 words and posted a link to the forum that he was probably looking for. My sincere apologies for my earlier ambiguously formulated post (let's blame it on English being only my third language?), but that was what I meant. To OP: if you're actually looking for help porting this script to AutoIt, please clarify.

Edited by SadBunny

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites
iamtheky

while we are all randomly guessing,  I hope this a bot for the most boring game ever where you feed animals, in real time.

Edited by boththose

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites
SadBunny

@Boththose: crossed my mind as well, but probably not: http://www.tradermate.in/p/software.html


Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites
TheDcoder

:shocked: Software for feeding animal!? :x


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

If I have hurt or offended you in anyway, Please accept my apologies, I never (regardless of the situation) mean to do that to anybody!!!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites
woodsha

Sorry friends, its my mistake which i thought autoit and autohotkey both are same...did posted in ahk forum as per sadbunny suggestion and got the output...really nice of all you guys on taking part in this discussion..lets close it here.

Share this post


Link to post
Share on other sites
SadBunny

Thanks for explaining Woodsha, honesty and feedback both appreciated :)


Roses are FF0000, violets are 0000FF... All my base are belong to you.

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

×