Jump to content

Repeat the script


Recommended Posts

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

Link to comment
Share on other sites

@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!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
Share on other sites

  • Moderators

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?

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • Moderators

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

 

Link to comment
Share on other sites

  • Moderators

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

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

​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.

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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.

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...