Jump to content

FredMP

Members
  • Posts

    8
  • Joined

  • Last visited

FredMP's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. @Chimp Finally got around to fixing this and your suggestion worked, and my 1st script finally works, yesss! Now, I have two questions: 1. I need this script to be on standby the whole time the TTS app is active. So, if I press the hotkey (SPACE) the script will run moving the mouse and clicking at the coordinates and then end. But the next time I press SPACE it should do it again. My question would be is it ok to leave the script running on standby like this for hours on end or is there a more efficient way for the script to run? 2. I need the (SPACE) hotkey to only work in TTS app. So if i go over to a browser window and type SPACE I do not want the script to activate there, only in TTS app. How do I write this into the script? Here is the current script, I welcome any suggestions! #AutoIt3Wrapper_UseX64=n ; In order for the x86 DLLs to work #include "OpenCV-Match_UDF.au3" _OpenCV_Startup();loads opencv DLLs _OpenCV_EnableLogging(True,True,True) ;Logs matches, errors in a log file and autoit console output. HotKeySet( "{SPACE}", "MyFunction") HotKeySet( "{ESC}", "CloseScript") Local $x = 342 ; x is first value of mouse position Local $y = 74 ; y is second value of mouse position While 1 sleep(10) Wend Func MyFunction() #RequireAdmin if winexists("Main@TTS") Then winactivate("Main@TTS") EndIf MouseMove($x, $y, 2) ; moves the mouse pointer do mouse position with speed 2 Sleep(500) ; wait 500 ms half of second ( delay ) MouseClick("left", $x, $y, 2, 2) ; now click left mouse key on mouse position, 2 click with speed 2 EndFunc Func CloseScript() Exit EndFunc
  2. Could you elaborate please? What exactly do I need to try from that post and what will that accomplish. I'm new to this. Thanks! @mLipok
  3. @mylise @BBs19 I have installed OpenCV and am trying to automate a Java x64 app on windows 10 64-bit. My script is not working. I am simply trying to get the cursor to move to screen coordinates and click. for now. Error:include depth exceeded
  4. @faustf Would AssertJ work in tandem with AutoIt? @robertocm Could you elaborate on how I would do this? Someone else suggested using Microsoft UI Automation. So now I have 3 suggestions: AssertJ, OpenCV, and Microsoft UI Automation. Which one is more likely to work and would be easiest to set up? And then assuming I have picked an option, like say AssertJ, what are the steps? what do I need to download and run?
  5. Hello, thanks for chiming in! If you read over my posted workflow I would not be using a hotkey to enter an order. I agree with you there, probably not the best idea. The hotkey trigger would send the ticker to the main window and press enter and that's it. From that point I would be manually placing an order with the platform's hotkey. It would simply be a quick way to send a ticker to the active window. I hope I'm not breaking any forum rules, I could not find any on the subject but I am willing to pay anyone who can provide me with a working script for this if someone would like to help. I simply do not have the time right now but I could really use the functionality. Seems to be doable, with just a few actions in the workflow. I work in IT so any instructions you would have me do, i.e. installing, troubleshooting, etc. I would have no problem doing. As a sidenote, you can download TOS papermoney which is free to use for testing and should have the same interface/menus that I would be using. https://platform.thinkorswim.com/platform/index.html#!/pmregister Pm me if anyone can help, thanks.
  6. I am not sure how to answer that. I need my posted workflow mapped to a hotkey. Java app.
  7. Hey there! No, I would be using AutoIt in Windows 10 pro 64 bit. I just made the screenshots for my post on a mac. Sorry for the confusion!
  8. Hello! I am new to the forums but am interested in what AutoIt has to offer. Ok, so I have a challenging ask for anyone that would like to help. In my TOS Java stock trading program, I have two monitors open. On the left monitor I have a 2x2 grid with a total of 6 charts. Each CELL in the grid has a ticker text box at top left populated with a ticker (i.e. STOCK3) On the right monitor I have my MAIN window with order flow and that's where orders are executed. This window also has a ticker text box at top left to type in a ticker. TOS refers to this as the "symbol entry" or "symbol selector" box. Here is the workflow I'd like to have in place: 1. I hover the cursor on any CELL in 2x2 grid (let's say CELL 3) 2. Trigger: Hotkey 3. Action: Send ticker (STOCK3) in top left of CELL 3 to MAIN window ticker box and press return. I know that "move mouse" commands are generally a last resort so I'd like to get this done with a script. This is a Java program. There is also a right click menu in TOS that accomplishes this workflow that could perhaps be scripted to a hotkey trigger. It goes like this: 1. Click on "Symbol Actions Icon" 2. Mouse over "Send STOCK3 to" 3. Click on [3] BLUE (this is the MAIN window ticker box) I have included pictures to better illustrate the desired workflow automation: Any ideas on how to map this workflow to a hotkey? I really don't know much about writing scripts but if AutoIt can do it I would download the app for sure! Lots of other automation to do as well. Thanks in advance.
×
×
  • Create New...