DanielLaCosta Posted February 22, 2012 Share Posted February 22, 2012 Hello. I need a script that is pre-written script for a certain program / in-game run. For example, if I am writing a script, which is 25 seconds by pressing the "w", where such a program in which I want the script to work lay in the tray, and watch the Firefox or any other program then there should not interfere with the writing and so on. So then only the specified program to detect a button press, if it runs in the background. I hope you can help me with this. Sorry for bad English, I used google translator. This is a simple markup should be put to the program in which I choose a running. (Some of the code is written in Hungarian. the msgbox parts.) ; ; AutoIt Version: 3.0 ; Language: HUN ; Platform: WinXP ; Author: Daniel La Costa (daniel_la_costa@hotmail.com) ; ; Script Function: ; Opens Notepad, types in some text and then quits. ; ; Prompt the user to run the script - use a Yes/No prompt (4 - see help file) Local $answer = MsgBox(4, "SA:MP Auto mower v0.1", "Ez a Program automatikusan lenyomja 25mp-enként a (w) gombot." & @CRLF & "-Indítsd a SA:MP-ot" & @CRLF & "-Csatlakozz a szerverhez, majd lépj be a karakteredhez" & @CRLF & "-Bújj el vele, majd nyomj ALT+TAB-ot" & @CRLF & "-Majd nyomj az Igen-re és lépj vissza a játék ablakra" & @CRLF & "Indítsam?" & @CRLF & "Készítette: Daniel") ; Check the user's answer to the prompt (see the help file for MsgBox return values) ; If "No" was clicked (7) then exit the script If $answer = 7 Then MsgBox(0, "SA:MP Auto mower v0.1", "OK. Bye!") Exit EndIf While 1 Send("w") sleep(25000) ; 2500000 sec Wend ; Finished! Link to comment Share on other sites More sharing options...
1RV34 Posted February 22, 2012 Share Posted February 22, 2012 I'm sorry but we're not allowed to discuss game automation here.www.autoitscript.com/forum/forum-9/announcement-13-forum-rulesDo not discuss automating games here. MsgBox(0x40040, "", "Hello Forum!") Link to comment Share on other sites More sharing options...
DanielLaCosta Posted February 22, 2012 Author Share Posted February 22, 2012 "I'm sorry but we're not allowed to discuss game automation here." That is no automating game. That is a simple on step mower/helper, for the game server no kick out when i am AFK. this script every 25 seconds by pressing the (W). This is only a single utility. Link to comment Share on other sites More sharing options...
1RV34 Posted February 22, 2012 Share Posted February 22, 2012 Well I don't know if the mods here consider it automation or not but to be safe I'm not gonna give you info to automate it in AutoIt. A slight suggestion I might could do is if the game as an ingame console maybe you can use that to do something like alias loop "+forward;wait 10;-forward;wait 750000;loop" Try to use that in-game method because even tho it is a simple W press it is still ingame and an automation :/ MsgBox(0x40040, "", "Hello Forum!") Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 22, 2012 Moderators Share Posted February 22, 2012 DanielLaCosta, I was asked to look at this thread as a possible "game automation" rule breaker. As far as I can see you are coding something to keep a connection alive and not interacting with the game itself. Unless someone can show me that sending "w" at 25 sec intervals is an interaction to your advantage within the game I am happy that this specific question is legal. But please do not post any subsequent questions concerning the automation of the game proper. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted February 22, 2012 Share Posted February 22, 2012 So we can automate games as long as we only make our character go forward. That makes sense What happened with zero tolerance? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted February 22, 2012 Moderators Share Posted February 22, 2012 AdmiralAlkex, Rather than post sarcastic comments why not do what I asked above and tell me that, in your opinion, this is game interaction? I do not play games - I find my real life quite exciting enough - and so rely on others to help out in cases like this. Next time please could you do so in a manner more befitting an MVP. DanielLaCosta, It appears that sending "w" does interact with the game - so I am locking the thread. Do not start another one. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts