Omega-Beta Script

  • Omega-Beta Script

     wiild-dog updated 2 days, 2 hours ago 7 Members · 40 Posts
  • Tbar

    Fleet Admiral
    January 1, 2020 at 6:26 am

    What does this script do?

    It farms Omga Particles for you the ez way. Written by one of our ToW fleet members. According to the author if farms about 100 within the hour.

    WARNING: If you don’t KNOW what the script does… DONT USE IT

    WARNING: This is beta

    WARNING: STO probably has some RULE about using scripts.. so its not a good idea to send this script to anyone else. Use for private use only. So don’t tell anyone where you found it. It was on a USB drive in an old dilapidated abandoned shuttle craft as far as anyone knows ?

    ** REQUEST **: If you use this script, please provide feedback here. Trouble shooting or whatever. If the author wants to contact you direct he will do so via this site.

    NOTE: The script would not be here if we thought it would or could cause you any harm. Read the material and install if you feel comfortable… but remember it is BETA .. and its secret!

    INSTRUCTIONS

    There’s a link below to a shared folder with 2 things you’ll need, plus a demo video.

    Download the installer for an application called “AutoHotKey” and the script file “omega-beta2.ahk” (save the script

    to your desktop).

    Install AHK. Right click the script file, and you’ll see an icon in the system tray that’s a green box with a white ‘H’. That means the script is active. While in game, press Ctrl+Alt+5(number pad) to start the script hunting for delicious particles. You don’t have to do anything except keep an eye on it.

    NOTE: Sometimes the loot critter pop-up or the pop to start the mini game will come up and obscure one of the rows and you have to click when the pointer is not on that button to shift the focus back to the mini game. That might not make sense, but once it happens, you’ll

    know what I mean. That’s pretty much it for the overall use .

    Caveats:

    You will have to do the following, or it’s not going to work without some customization.

    >>> Set your desktop resolution to 1920×1080

    >>> Set the game screen to be Windowed, Maximized

    >>> DO NOT move the mini game from its default position in the middle of the screen. * I cannot stress how critical this bit is

    >>> NOTE: the “Discovery” color scheme triggers the script, so I don’t recommend using that while this is running

    Download Link:

    https://drive.google.com/drive/folders/1oB3cGLlYygsUJ4JtI3VhBLRlOVAtxTfa?usp=sharing


  • Caveman

    Cadet
    January 1, 2020 at 7:16 pm

    These are the display settings to use

  • kain

    Cadet
    January 1, 2020 at 7:18 pm

    I RUN A 50” 4K TV anduse windoed mode and had to set it to hud scale 1.01 for it to line up right and iv knotest a cople of bugs it starts to turn the swcript on if u open the system map and on varrius windows ingame but its relly usefull  🙂

  • Caveman

    Cadet
    January 1, 2020 at 8:33 pm

    I RUN A 50” 4K TV anduse windoed mode and had to set it to hud scale 1.01 for it to line up right and iv knotest a cople of bugs it starts to turn the swcript on if u open the system map and on varrius windows ingame but its relly usefull

    Yeah, that was something Tbar clued me in on. Since you two had opposite ends of the exact same issue, I’m going to make a how-to for customizing to your resolution(s). It’s going to be a continuing issue, so the document is worthwhile

  • Caveman

    Cadet
    January 1, 2020 at 8:41 pm

    Customizing script:

    You’ll need to get the mini game up and running and take a full size screenshot. Then open that image in Paint.
    Set the Paint window on one side and open your script file in Notepad.
    Use the included image for reference, and mouse over the indicated ares to get the screen coordinates for that point.

    Update the corresponding sections of the script with the new coordinates.
    If it’s not as straightforward as it sounds in my head, let me know and I’ll try to clarify

     

  • Caveman

    Cadet
    January 1, 2020 at 8:43 pm

    UPDATE:
    Version 3 (omega-beta3.ahk) is in the shared folder and now features a ‘kill switch’

     

    If you need to stop the script to fix a twitchy mouse or whatever, use the new version (with your customizations from above if needed) and use Ctrl+Alt+NumPad6 to stop

    You resume with Ctrl+Alt+NumPad5 as you normally would

  • kain

    Cadet
    January 1, 2020 at 8:43 pm

    SEAMS TO WORK WELL no bugs as of yet on my end but i do have a sugestun that may make it more usefull have it auto click on the gather omega partical button and click on start game thin after games done click take  all buttons to make it truly an afk farmer even if it only ran for about an hr or so :)

     

    but any way in its current state its been a 200% improvement on my end on getting the partitcals i normly average 500 points with out it and with it its about 2700

     

    keep up the great work

  • cellic

    Cadet
    January 1, 2020 at 8:44 pm

    Well i have tried to get it to run but to no avail,i keep getting an error it keeps telling me the file is damaged.please help ty

  • Caveman

    Cadet
    January 1, 2020 at 8:47 pm

    SUPER IMPORTANT!!!

    The download link has changed

  • Caveman

    Cadet
    January 1, 2020 at 8:48 pm

    SEAMS TO WORK WELL no bugs as of yet on my end but i do have a sugestun that may make it more usefull have it auto click on the gather omega partical button and click on start game thin after games done click take  all buttons to make it truly an afk farmer even if it only ran for about an hr or so but any way in its current state its been a 200% improvement on my end on getting the partitcals i normly average 500 points with out it and with it its about 2700 keep up the great work

    That can (has) been done. It’s still waaaaay tricky. If the base model is buggy for you, the full farm-bot might go apeS—.
    But I can let you try it if’n you want…

  • Caveman

    Cadet
    January 1, 2020 at 8:49 pm

    Well i have tried to get it to run but to no avail,i keep getting an error it keeps telling me the file is damaged.please help ty

    Try downloading from the new link (above) and if it’s still reporting damaged, try a different browser. And which file is damaged? Did AHK install correctly?

  • kain

    Cadet
    January 1, 2020 at 8:50 pm

    That can (has) been done. It’s still waaaaay tricky. If the base model is buggy for you, the full farm-bot might go apeS—.
    But I can let you try it if’n you want…

    ied sure like to try it 🙂

  • Caveman

    Cadet
    January 1, 2020 at 8:51 pm
  • kain

    Cadet
    January 1, 2020 at 8:52 pm

    will after runnign it a few times is seams to get to 1700 points and it seams to start the next oprashion of clicking clact b4 the mini game finishes

  • Sayle

    Cadet
    January 1, 2020 at 8:53 pm

    Customizing script:

    You’ll need to get the mini game up and running and take a full size screenshot. Then open that image in Paint.
    Set the Paint window on one side and open your script file in Notepad.
    Use the included image for reference, and mouse over the indicated ares to get the screen coordinates for that point.

    Update the corresponding sections of the script with the new coordinates.
    If it’s not as straightforward as it sounds in my head, let me know and I’ll try to clarify

    Could you specify what pixel #2 should be? I’ve been trying to adapt this to a 768 screen and the game itself starts jumping the cursor all over the place.

  • kain

    Cadet
    January 1, 2020 at 8:53 pm

    im a compleet noob at programing lol and i do have ther hud and buttions ingame set to there defoults it just starts the clat reword prosces b4 the miniy games done like its miss timeing an oprashion

  • Caveman

    Cadet
    January 1, 2020 at 8:54 pm

    heard all around.
    Kain, try this:
    Reload the script, so it’s inactive. Get in-game and bring up the mini game so the “Begin” button is there. Trigger the script (Ctrl+Alt+Num5) and click the begin button as soon as you trigger.
    (There needs to be no more than 3 seconds between trigger and clicking begin)

    The workflow (for the full on farmbot) is as follows:

    Collection loop starts, and runs for 60 seconds. (This is the original that we know and love (I hope))
    * the new loop also sends a click whenever it hits the top position to bring it into focus if a dialog ha popped up

    After the collection loop (while the collect rewards button is there), it delays for a couple seconds and clicks the mini game window to set the focus, then clicks the collect button for you
    It then waits another few seconds, and moves the cursor to the dialog to start the next one and slides the cursor to the right slightly to highlight the dialog and then sends a click

    Another click on the mini game window to get focus and clicks the begin button

    Collection loop resumes.
    Ctrl+Num+6 ends the loop, but I’ve not gotten the full timing to reset yet, so you’ll have to reload the script from the system tray

    Sayle, think of points 1 and 2 as opposing corners of a rectangle. Kinda like the things you drag around if you want to crop a photo on your phone. If those points don’t line up like a triangle, it’ll do some weird S—. Just get a good screen capture and use Paint. I like Paint for this because it’s built into Windows and will give you the cursor point with no hassle. And I’ll definitely take a look at what you have. Mine doesn’t do a logon, but given how much time is left for this to be useful, it might have to go in the one for next year

    Let me know how it goes everyone

  • kain

    Cadet
    January 1, 2020 at 8:54 pm

    iv got the program running fine now with the timeing for the game but it stell seams to miss the clicks on the reword screen it seams to miss the clact all biuttion and click off in the distince on a randome object im useing the 1920 x 1080 res with it aswell and defoult hud config

     

    the window below is the 1 its derping out on

    X111.png

  • Caveman

    Cadet
    January 1, 2020 at 8:55 pm

    OH!

    go into your game settings and find the one about auto collect all loot. I can’t remember the exact wording, but I’d forgotten all about that

  • Caveman

    Cadet
    January 1, 2020 at 8:56 pm

    Could you specify what pixel #2 should be? I’ve been trying to adapt this to a 768 screen and the game itself starts jumping the cursor all over the place.

    Also, here’s an expansion of the script. Includes:

    1. Unselects pop-up window on login.

    2. Scans omega particle

    3. Starts game

    4. Collects rewards

    5. Checks you’re logged in and haven’t been disconnected

    6. If you’re not logged in, logs you in and logs into your last character (you need to open it in notepad and write your password where it says PASSWORD).

    7. Loops back to 1.

     

     

  • kain

    Cadet
    January 1, 2020 at 8:56 pm

    OH!

    go into your game settings and find the one about auto collect all loot. I can’t remember the exact wording, but I’d forgotten all about that

    That seams to have fixed 1 of the bugs but it now seams to not click on the next omega particial buttion and it clicks on a toon in the backgrouns insted

    was how ever able to get it to run 2 back to back whin it was working right 🙂

  • kain

    Cadet
    January 1, 2020 at 8:57 pm

    will after probly derping up the code i was able to get it to run 4 back to back on a string but it seams to stell both in the unedited and my atimpt to fix it vershions seams to have a hard time clicking the omega particial buttion to start the proces over for a new game

  • kain

    Cadet
    January 1, 2020 at 8:57 pm

    will i think after heavly tweeking and adding in rows of repeeting tasks for a cople of the parts derping out it seams to work compleetly now i ran threw about 20 games and it dident derp this time if u want i can send u a copy of the edited vershion i have

  • Tbar

    Fleet Admiral
    January 1, 2020 at 8:58 pm

    Post the script Mr Kain… right here.


  • kain

    Cadet
    January 1, 2020 at 9:00 pm

    #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
    SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
    ^!NumPad5::
    KeepLoop=1
    CoordMode, pixel,screen
    CoordMode, mouse,screen
    time := A_Now
    time += 60, Seconds
    Loop
    {
    if (KeepLoop=0)
    Return
    else
    PixelSearch, Px, Py, 935, 483, 949, 720, 0x3497CB, 10, Fast RGB
    if !ErrorLevel
    {
    MouseMove, 1000, 501, 0
    Sleep, 10
    Send {Click}
    }
    else
    Sleep, 0

    PixelSearch, Px, Py, 935, 483, 949, 720, 0x323C9B, 10, Fast RGB
    if !ErrorLevel
    {
    MouseMove, 1000, 560, 0
    Sleep, 10
    }
    else
    Sleep, 0

    PixelSearch, Px, Py, 935, 483, 949, 720, 0x47E0D2, 10, Fast RGB
    if !ErrorLevel
    {
    MouseMove, 1000, 618, 0
    Sleep, 10
    }
    else
    Sleep, 0

    PixelSearch, Px, Py, 935, 483, 949, 720, 0x6C3FC1, 10, Fast RGB
    if !ErrorLevel
    {
    MouseMove, 1000, 681, 0
    Sleep, 10
    }
    else
    Sleep, 0

    if (A_Now = time)
    {
    MouseMove, 1015, 420, 0
    Sleep, 500
    MouseClick
    Sleep, 200
    MouseMove, 969, 624, 0
    Sleep, 500
    MouseClick
    Sleep, 200
    MouseMove, 836, 700, 0
    MouseMove, 845, 700, 5
    Sleep, 500
    Click, Down
    Sleep, 10
    Click, up
    Sleep, 100
    Click, Down
    Sleep, 10
    Click, up
    Sleep, 100
    Click, down
    Sleep, 10
    Click, up
    Sleep, 100
    MouseMove, 836, 700, 0
    MouseMove, 845, 700, 5
    Sleep, 500
    Click, Down
    Sleep, 10
    Click, up
    Sleep, 100
    Click, Down
    Sleep, 10
    Click, up
    Sleep, 100
    Click, down
    Sleep, 10
    Click, up
    Sleep, 100
    MouseMove, 836, 700, 0
    MouseMove, 845, 700, 5
    Sleep, 500
    Click, Down
    Sleep, 15
    Click, up
    Sleep, 100
    Click, Down
    Sleep, 15
    Click, up
    Sleep, 100
    Click, down
    Sleep, 15
    Click, up
    Sleep, 100
    MouseMove, 836, 700, 0
    MouseMove, 845, 700, 5
    Sleep, 500
    Click, Down
    Sleep, 15
    Click, up
    Sleep, 100
    Click, Down
    Sleep, 15
    Click, up
    Sleep, 100
    Click, down
    Sleep, 15
    Click, up
    Sleep, 100
    MouseMove, 1015, 420, 0
    Sleep, 500
    MouseClick
    Sleep, 500
    MouseMove, 975, 585, 0
    Sleep, 500
    MouseClick
    Click, down
    Sleep, 10
    Click, up
    MouseMove, 1015, 420
    Click
    Sleep, 10
    Click
    sleep, 10
    MouseMove, 1015, 420, 0
    Sleep, 500
    MouseClick
    Sleep, 500
    MouseMove, 975, 585, 0
    Sleep, 500
    MouseClick
    Click, down
    Sleep, 10
    Click, up
    MouseMove, 1015, 420
    Click
    Sleep, 10
    Click
    Send {Click}
    time := A_Now
    time += 60, Seconds
    }
    }
    return

    ^!NumPad6::
    KeepLoop=0
    Return

    i had to dlooplacate some of the oprashions inorder to make sure the clicks were registerd ingame but whin its running it seams to know whin i dosent need extra clicks and will some times skip oprashiions if there not needed atleast it dos this on my end lol may need refined a bet for outters espechly if thay have smaller screens / resulushions

  • Tbar

    Fleet Admiral
    January 1, 2020 at 9:02 pm
    {
    if (KeepLoop=0)
    Return
    else
    PixelSearch, Px, Py,    935, 483, 949, 720, 0x3497CB, 10, Fast RGB
    if !ErrorLevel 
      {
        MouseMove, 1000, 501, 0
        Sleep, 10
        Send {Click}
      }
    else
        Sleep, 0
    
    PixelSearch, Px, Py,    935, 483, 949, 720, 0x323C9B, 10, Fast RGB
    if !ErrorLevel 

    Kain.. above is how to do it… 🙂


  • Tbar

    Fleet Admiral
    January 1, 2020 at 9:07 pm

    NOTE .. this is for resolution 1680 x 1050

     

    My script:

     

    #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
    SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
    ^!NumPad5::
    KeepLoop=1
    CoordMode, pixel,screen
    CoordMode, mouse,screen
    Loop
    {
    if (KeepLoop=0)
    Return
    else
    PixelSearch, Px, Py,    818, 464, 832, 701, 0x3497CB, 10, Fast RGB
    if !ErrorLevel
      {
        MouseMove, 883, 489, 0
        Sleep, 10
      }
    else
        Sleep, 0

    PixelSearch, Px, Py,    818, 464, 832, 701, 0x323C9B, 10, Fast RGB
    if !ErrorLevel
      {
        MouseMove, 883, 552, 0
        Sleep, 10
      }
    else
        Sleep, 0

    PixelSearch, Px, Py,    818, 464, 832, 701, 0x47E0D2, 10, Fast RGB
    if !ErrorLevel
      {
        MouseMove, 883, 611, 0
        Sleep, 10
      }
    else
        Sleep, 0

    PixelSearch, Px, Py,    818, 464, 832, 701, 0x6C3FC1, 10, Fast RGB
    if !ErrorLevel
      {
        MouseMove, 883, 668, 0
        Sleep, 10
      }
    else
        Sleep, 0
    }
    return

    ^!NumPad6::KeepLoop=0
    Return


  • kain

    Cadet
    January 28, 2020 at 8:16 am

    about to test to see if mine stell works headded to colony now 😀

    edit stell works for the 1 i edited for slower pcs and anti lagg lol but you need a 1920 – 1080 display ratio 

    • This reply was modified 3 weeks, 1 day ago by  kain. Reason: edited for answer to test
  • kain

    Cadet
    January 28, 2020 at 12:56 pm

    will after hrs of testing i cant get the script to work on my outter computer somethings not letting it run even tho i have the same script and ahk installed the triger script buttion dosent start the prosece and dont know why it works on my main but not my backup pc thats got the same resulishion and ui config with the dame program and script im missing something thats not listed above …

  • kain

    Cadet
    January 29, 2020 at 12:51 am

    manged to get it working agin and after that i found out the bone heads at cryptic desided to make it so we cant sell the omega particals wtf ther gos my ec for the year and i wont put money into the game intell thay fix it !

  • wiild-dog

    Cadet
    January 31, 2020 at 6:16 pm

    Heya. Might be a good idea to add a GUI element showing what the current state of the scripts is (scanning for particle, inactive, start nuw minigame, etc.

    • Tbar

      Fleet Admiral
      February 1, 2020 at 12:57 pm

      We are lucky to have what we have 🙂

      Seriously… lots of stuff would be nice. Caveman we have not seen for a long time… miss that guy.


  • wiild-dog

    Cadet
    February 5, 2020 at 11:29 pm

    So i’ve been playing arounc a bit with the script. I’m a programmer, although i’ve never used AutHotkey before. I’ve implemented the text functionality myself.:

    ; Put the below in the auto-execute section of your script, that is at the top. There can be no "hotkey::" command, no return, and no hotstring above this, or it won't get activated.</p><p>OSDColour2 = EAAA99 ; Can be any RGB color (it will be made transparent below).</p><p>Gui, 2: +LastFound +AlwaysOnTop -Caption +ToolWindow ; +ToolWindow avoids a taskbar button and an alt-tab menu item.</p><p>Gui, 2:Font, s128, Times New Roman ; Set a large font size (32-point).</p><p>Gui, 2:Add, Text, vOSDControl cBlue x0 y0, XXXXXXYYYYYY ; XX & YY serve to auto-size the window; add some random letters to enable a longer string of text (but it might not fit on the screen).</p><p>Gui, 2:Color, %OSDColour2%</p><p>WinSet, TransColor, %OSDColour2% 110 ; Make all pixels of this color transparent and make the text itself translucent (150)</p><p>Gui, 2:Show, NoActivate, OSDGui</p><p>Gui, 2:Show, Hide</p><p>#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.</p><p>SendMode Input ; Recommended for new scripts due to its superior speed and reliability.</p><p>;CoordMode, pixel, screen</p><p>CoordMode, mouse, screen </p><p>^!NumPad5::</p><p>OSD("Bot In search mode", "Red", "500", "Arial", "14")</p><p>KeepLoop=1</p><p>time := A_Now</p><p>time += 60, Seconds</p><p>Loop</p><p>{</p><p>if (KeepLoop=0)</p><p>Return</p><p>else</p><p>PixelSearch, Px, Py, 935, 483, 949, 720, 0x3497CB, 10, Fast RGB</p><p>if !ErrorLevel </p><p> {</p><p> OSD("Detect 1", "Red", "500", "Arial", "14")</p><p> MouseMove, 1000, 501, 2</p><p> Sleep, 10</p><p> Send {Click}</p><p> }</p><p>else</p><p> Sleep, 0</p><p>PixelSearch, Px, Py, 935, 483, 949, 720, 0x323C9B, 10, Fast RGB</p><p>if !ErrorLevel </p><p> {</p><p> OSD("Detect 2", "Red", "500", "Arial", "14")</p><p> MouseMove, 1000, 560, 2</p><p> Sleep, 10</p><p> }</p><p>else</p><p> Sleep, 0</p><p>PixelSearch, Px, Py, 935, 483, 949, 720, 0x47E0D2, 10, Fast RGB</p><p>if !ErrorLevel </p><p> {</p><p> OSD("Detect 3", "Red", "500", "Arial", "14")</p><p> MouseMove, 1000, 618, 2</p><p> Sleep, 10</p><p> }</p><p>else</p><p> Sleep, 0</p><p>PixelSearch, Px, Py, 935, 483, 949, 720, 0x6C3FC1, 10, Fast RGB</p><p>if !ErrorLevel </p><p> {</p><p> OSD("Detect 4", "Red", "500", "Arial", "14")</p><p> MouseMove, 1000, 681, 2</p><p> Sleep, 10</p><p> }</p><p>else</p><p> Sleep, 0</p><p> </p><p>if (A_Now = time)</p><p> {</p><p> OSD("Bot In Reaccept Cycle", "Red", "500", "Arial", "14")</p><p> MouseMove, 1015, 420, 2</p><p> Sleep, 500</p><p> MouseClick</p><p> Sleep, 1000</p><p> MouseMove, 969, 624, 2</p><p> Sleep, 500</p><p> MouseClick</p><p> Sleep, 3000</p><p> MouseMove, 836, 700, 2</p><p> MouseMove, 845, 700, 5</p><p> Sleep, 500</p><p> Click, down</p><p> Sleep, 10</p><p> Click, up</p><p> Sleep, 1500</p><p> MouseMove, 1015, 420, 2</p><p> Sleep, 500</p><p> MouseClick</p><p> Sleep, 500</p><p> MouseMove, 975, 585, 2</p><p> Sleep, 500</p><p> MouseClick</p><p> Click, down</p><p> Sleep, 10</p><p> Click, up</p><p> MouseMove, 1015, 420</p><p> Click</p><p> Sleep, 10</p><p> Click</p><p> Send {Click}</p><p> time := A_Now</p><p> time += 60, Seconds</p><p> }</p><p>}</p><p>return</p><p>^!NumPad6::</p><p>OSD("Bot Inactive", "Red", "500", "Arial", "14")</p><p>KeepLoop=0</p><p>Return</p><p>; Put the below anywhere in your script that is not part of a subroutine. Not at the point where you want the actual text to appear on screen: just at the bottom of your script is fine.</p><p>OSD(Text="OSD",Colour="Blue",Duration="300",Font="Times New Roman",Size="128")</p><p>{ ; Displays an On-Screen Display, a text in the middle of the screen.</p><p>Gui, 2:Font, c%Colour% s%Size%, %Font% ; If desired, use a line like this to set a new default font for the window.</p><p>GuiControl, 2:Font, OSDControl ; Put the above font into effect for a control.</p><p>GuiControl, 2:, OSDControl, %Text%</p><p>Gui, 2:Show, % "x" A_ScreenWidth-300 " y" A_ScreenHeight-130 " NoActivate", OSDGui, ; NoActivate avoids deactivating the currently active window; add "X600 Y800" to put the text at some specific place on the screen instead of centred.</p><p>SetTimer, OSDTimer, -%Duration%</p><p>Return </p><p>}</p><p>OSDTimer:</p><p>Gui, 2:Show, Hide</p><p>Return

  • kain

    Cadet
    February 6, 2020 at 4:12 am

    were woud i put thin in to my custom auto farmer XD put it at the end of mine and it spit out an error

  • wiild-dog

    Cadet
    February 15, 2020 at 2:28 am

    My previous post was the whole script with my modifications. To modify what you already have, do the following:

    ; Put the below in the auto-execute section of your script, that is at the top. This is the initalisation part that prepares some settings. There can be no "hotkey::" command, no return, and no hotstring above this, or it won't get activated.</p><p>OSDColour2 = EAAA99 ; Can be any RGB color (it will be made transparent below).</p><p>Gui, 2: +LastFound +AlwaysOnTop -Caption +ToolWindow ; +ToolWindow avoids a taskbar button and an alt-tab menu item.</p><p>Gui, 2:Font, s128, Times New Roman ; Set a large font size (32-point).</p><p>Gui, 2:Add, Text, vOSDControl cBlue x0 y0, XXXXXXYYYYYY ; XX & YY serve to auto-size the window; add some random letters to enable a longer string of text (but it might not fit on the screen).</p><p>Gui, 2:Color, %OSDColour2%</p><p>WinSet, TransColor, %OSDColour2% 110 ; Make all pixels of this color transparent and make the text itself translucent (150)</p><p>Gui, 2:Show, NoActivate, OSDGui</p><p>Gui, 2:Show, Hide<br><br><br></p><p>; Put the below anywhere in your script that is not part of a subroutine. Not at the point where you want the actual text to appear on screen: just at the bottom of your script is fine. This is the logic that will get called whenever you want to display some text.</p><p>OSD(Text="OSD",Colour="Blue",Duration="300",Font="Times New Roman",Size="128")</p><p>{ ; Displays an On-Screen Display, a text in the middle of the screen.</p><p>Gui, 2:Font, c%Colour% s%Size%, %Font% ; If desired, use a line like this to set a new default font for the window.</p><p>GuiControl, 2:Font, OSDControl ; Put the above font into effect for a control.</p><p>GuiControl, 2:, OSDControl, %Text%</p><p>Gui, 2:Show, % "x" A_ScreenWidth-300 " y" A_ScreenHeight-130 " NoActivate", OSDGui, ; NoActivate avoids deactivating the currently active window; add "X600 Y800" to put the text at some specific place on the screen instead of centred.</p><p>SetTimer, OSDTimer, -%Duration%</p><p>Return </p><p>}</p><p>OSDTimer:</p><p>Gui, 2:Show, Hide</p><p>Return<br><br><br>; you can now put something on screen by inserting 'OSD()' into your code where you want the message to trigger. the inputs are: OSD(text<text>, text_colour<text_colour>, duration<display_duration>, font<font>, font_size<font_size>)<br>For example: <br><br>OSD("Detect 2", "Red", "500", "Arial", "14")<br></font_size></font></display_duration></text_colour></text><span>MouseMove, 1000, 560, 2<br></span></p><p><span>Sleep, 10

    • This reply was modified 4 days, 15 hours ago by  wiild-dog.
    • This reply was modified 4 days, 15 hours ago by  wiild-dog.
  • wiild-dog

    Cadet
    February 15, 2020 at 2:36 am

    Ignore me, just a little test. Luckily, no problem here

    • This reply was modified 4 days, 15 hours ago by  wiild-dog. Reason: pen testing
    • This reply was modified 4 days, 15 hours ago by  wiild-dog.
    • This reply was modified 4 days, 14 hours ago by  erich.
    • This reply was modified 4 days, 14 hours ago by  erich.
  • erich

    Fleet Admiral
    February 15, 2020 at 3:22 am

    Hey @wiild-dog, you can wrap your code by wrapping the code in tilde  `

  • wiild-dog

    Cadet
    February 17, 2020 at 12:35 am

    code snipet test
    1
    2
    3

    • This reply was modified 2 days, 17 hours ago by  wiild-dog.
    • This reply was modified 2 days, 17 hours ago by  wiild-dog.
    • This reply was modified 2 days, 16 hours ago by  wiild-dog.
  • erich

    Fleet Admiral
    February 17, 2020 at 2:05 am

    @wiild-dog ,

    Sorry about that! I actually meant the “tilde key” but not the “tilde”. I guess you call that key a “single quote”

  • wiild-dog

    Cadet
    February 17, 2020 at 3:05 pm

    Second code test
    1
    2
    3
    I have to say, the comment functionality is not that convenient. I can't escape the code block in editing for example.

    • This reply was modified 2 days, 2 hours ago by  wiild-dog.
    • This reply was modified 2 days, 2 hours ago by  wiild-dog.

Log in to reply.

Original Post
0 of 0 posts June 2018
Now