Jump to content
  • Sign Up

enbmule

Members
  • Content Count

    11
  • Joined

  • Last visited

About enbmule

  • Rank
    Newbie

Profile Information

  • Gender
    Not Telling
  1. Unfortunately I do use SetActiveWindow. Here's the exact code Im using... // This is the Join Formation sub-macro for the Slave computer // ----------------------------------------------------------------------- // Main Procedure // ----------------------------------------------------------------------- Procedure SubJoinFormation // Join Formation Routine for Ws Window IsWindow Earth & Beyond - $AvatarWs SetActiveWindow Earth & Beyond - $AvatarWs Delay 800 Keys 0 Delay 1500 End // Join Formation Routine for Es Window IsWindow Earth & Beyond - $AvatarEs SetActiveWindow Earth & Beyond - $AvatarEs Delay 800 Keys 0 Delay 1500 End // Join Formation Routine for Ts Window IsWindow Earth & Beyond - $AvatarTs SetActiveWindow Earth & Beyond - $AvatarTs Delay 800 Keys 0 Delay 1500 End // Join Formation Routine for JE Window IsWindow Earth & Beyond - $AvatarJEs SetActiveWindow Earth & Beyond - $AvatarJEs Delay 800 Keys 0 Delay 1500 End // Join Formation Routine for TT Window IsWindow Earth & Beyond - $AvatarTTs SetActiveWindow Earth & Beyond - $AvatarTTs Delay 800 Keys 0 Delay 800 End SetActiveWindow Earth & Beyond - $AvatarWs Delay 500 End It's called from this code in the main file... // Procedure to have Alts Join the Formation Procedure JoinFormation When {GlobalKeys} Contains $TriggerF5 Call SubJoinFormation End // Procedure I even tried just a single instance of the game without it's application title being renamed, no IsWindow check and running from it's own file and it still happens. // This is the Join Formation sub-macro for the Slave computer // ----------------------------------------------------------------------- Constants TriggerF5=116 // F5 End // Main Procedure // ----------------------------------------------------------------------- Procedure SubJoinFormation When {GlobalKeys} Contains $TriggerF5 SetActiveWindow Earth & Beyond Delay 800 Keys 0 Delay 800 End // Executes Global Key Presses // --------------------------------------------------------------------------- While 1 = 1 //Check for special procedures like the one above...see Procedure under help ProcessMessages //Clear so the procedure does not keep on firing unless a key is pressed ClearGlobalKeys //Always keep some delay on uncontrolled infinite loops Delay 300 End For each one, It joins the formation and then leaves the formation because it fires twice.   I've tried everything I could think of. I've played with longer delays, adding in a CommandDelay at the beginning. adding in ClearGlobalKeys at the beginning or end of each IsWindow or at the beginning of the Procedure. I've tried KeyDown, KeyRate.  Nothing I've tried keeps it from firing twice.
  2. Did you turn on Run AC with Test Log?    Found something weird Wabbit... In AC, if I hit F5 while the Commands and Macro, Performance or Debug tabs are active, it will work properly. You'll see just one 4 printed out in the Test Log. Now if I have the Test Log tab active and hit F5, multiple 4s will be generated in the Test Log.  Constants TriggerF5=116 // F5 End CommandDelay 300 // Procedure to set Pipe Formation Procedure JoinFormation When {GlobalKeys} Contains $TriggerF5 //MousePos 50, 50 //Delay 500 //LeftClick Delay 1000 Keys 4 Delay 1000 TimeStamp The hotkey was pressed. End // Procedure // Executes Global Key Presses While 1 = 1 //Check for special procedures like the one above...see Procedure under help ProcessMessages //Clear so the procedure does not keep on firing unless a key is pressed ClearGlobalKeys //Always keep some delay on uncontrolled infinite loops Delay 300 End I took a new video showing it.  Ignore the creepy breathing in background. It's the dog sleeping lol.    https://imgur.com/ZH8v4GH    So whatever condition that causes the keypress to fire twice while the Test Log tab is active, is also happening while the game is running. That's with running the code with just a delay, keys and another delay.  For some reason, adding in the mousepos and left click at the beginning of the procedure, keeps it from happening at all.
  3. Here's a vid of it happening.  I commented out the mouse move and click, saved it and ran it. If I hit F5 while the Test Log tab is active, it fires the key twice.   https://imgur.com/a/OPFLPZK   Â
  4. Weird... it ran fine on the first try today.  Try running this. I commented out the mouse move and left click and saved it. Ran it again and it had the same results as last night. Constants TriggerF5=116 // F5 End CommandDelay 300 // Procedure to set Pipe Formation Procedure JoinFormation When {GlobalKeys} Contains $TriggerF5 //MousePos 50, 50 //Delay 500 //LeftClick Delay 1000 Keys 4 Delay 1000 TimeStamp The hotkey was pressed. End // Procedure // Executes Global Key Presses While 1 = 1 //Check for special procedures like the one above...see Procedure under help ProcessMessages //Clear so the procedure does not keep on firing unless a key is pressed ClearGlobalKeys //Always keep some delay on uncontrolled infinite loops Delay 300 End I'll try and post a video of it happening so you see that I'm not going crazy.
  5. This is driving me nuts. Pretty simple, straight-forward code. I want to execute a few actions when I hit the F5 key like click a target and then a keypress that is a hotkey that executes a skill.  For some reason though, when I hit F5, it executes the keypress twice. it winds up enabling the skill and then immediately disables it because the hotkey is being pressed twice.  Stripped it down to the essentials... Constants  TriggerF5=116       // F5 End CommandDelay 250 // Procedure to Join Formation Procedure JoinFormation When {GlobalKeys} Contains $TriggerF5 MousePos 50, 50 Delay 500 LeftClick  Delay 1000  Keys 4  Delay 1000  TimeStamp The hotkey was pressed. End // Procedure // Executes Global Key Presses While 1 = 1  //Check for special procedures like the one above...see Procedure under help  ProcessMessages    //Clear so the procedure does not keep on firing unless a key is pressed  ClearGlobalKeys    //Always keep some delay on uncontrolled infinite loops  Delay 300 End Here is the Test Log data, It will be one of these two results for every key press... DELAY: 300 DELAY: 300 DELAY: 1000 Keys: 4 4 DELAY: 1000 TimeStamp: 05/14/2019 04:03:04:889 am - Join Group hotkey pressed. or... DELAY: 300 DELAY: 300 DELAY: 1000 Keys: 44 DELAY: 1000 TimeStamp: 05/14/2019 04:03:04:889 am - Join Group hotkey pressed. What am I doing wrong?  For now, I have it just use MousePos and click the actionbar. However, I'd rather use a keypress for certain skills that have keybinds and free up the actionbar slots for something else. Â
  6. Â Ego, sorry no. Forms in AC Tool are displayed and then blocks the running of the rest of the script until the user clicks either the OK or Cancel button. Â Â Â What about calling another file right before the form launches, that delays itself for xx amount of minutes/seconds, then clicks the Cancel button if it's there?
  7. Would love to try this. Could use the functionality of the enhanced setactivewindow command to pull the game/program's PID.  1. Programming work experience: COBOL, CSIS, SQL, Visual Basic and Java in the late 90's and early 2000's. HTML, PHP, JSP, Javascript and ColdFusion around 2005-2012. Still mess around with it occasionally.    Messed around with Visual Basic .NET, Perl & Ruby.    The only gaming experience that I have is with LUA files for WoW.    Databases: SQL Server, Oracle, Essbase and MS Access    Software: Microsoft Office Suite, Bash, Eclipse, Visual Studio, Adobe Photoshop, Fireworks, Illustrator, Dreamweaver, Flash, Borland J Builder, Alphablox, Cognos Impromptu and PowerPlay and InstallShield  2. I did Y2K testing of the MS Office suite for Warner-Lambert. Should be obvious when I did that.      Then I wrote test plans for in-house applications for Merck.  3. OS Versions: Windows 3 - Windows 10  4. OS Bit Versions:  32-bit - Windows 3 - Windows Vista                  64-bit - Windows 7 - Windows 10  5. More than happy to help test.  6. Well-versed in the software development life cycle and will follow all quality assurance testing rules and guidelines that are provided.
  8. The activewindow question was because I've been creating a few Quality of Life macros. One of them is for the alts to join/rejoin the formation when you undock or go through gates like ABB's Accelerator Sphere gates or the Onorom Prison gates.  For now, I Input Director hotkey over to the alt pc and then alt+tab through each one and use the hotkey to join the formation. I was hoping to just use any window-type commands in AC tools for any alts that aren't in formation and keep the code as minimal as possible. However, the Net7MultiClientUnlocker will work. I'll just set the screen positions so that an area of all 3 is always visible and clickable.  I'll also play around with TeamViewer.  Tyvm for the help Ego.
  9. I currently use Input Director to switch control to a different computer/slave. I can manually press the hotkey to switch to the slave and then execute key presses within AC Tools with no issues.  However, when I try to to activate the Input Director slave hotkey within AC Tools, it does not work. There has to be something with how Input Director captures the keypress to switch to the slave.  Does anyone have any experience with using Input Director to switch to a different computer?  Also taking suggestions on any other applications that switches control AND plays well with AC Tools.  Apologies if this is in the wrong forums.
  10. Think this is an issue with Input Director itself and how it handles it's security for the hotkey to pass control to a different pc.  I did some further testing and changed the Input Director hotkey to switch to the slave computer, to Z. It still didn't work. I removed the code from the procedure to activate the Input Director hotkey to switch to the slave, and then used Keys {Z} for another action in E&B and it worked fine.  I also tried using SetActiveWindow Input Director before any attempts to launch the Input Director Slave hotkey and it wouldn't work.  So there has to be something with how Input Director captures the keypress for the Slave hotkey. I tried searching the forums to see if anyone else uses AC Tools with Input Director, however, the search came up empty.  Do you have any advice on an application that plays well with AC Tools that switches control to a different computer? I'll make a seperate post to see if anyone in the community has any suggestions.   That brings up an additional question that I have. If you have multiple instances of E&B open for different accounts, is there any way to open a specific window/account? Unfortunately, the captions for each one are the same. They all say the same thing... Earth & Beyond. Is there another way to distinguish a specific E&B window/account?
  11. Using InputDirect which need to use Left Alt + Z as a hotkey. I use AC-Tools with InputDirect alot and it works flawlessly with single keypresses.  I've tried countless versions but can not get it to work. Each one below is an option that I've tried in procedures and it did not fire off the InputDirect hotkey action...  Keys @Z Keys @ Z Keys {@Z} Keys {@ Z} Alt - @Z Alt - @ Z Keys Alt - @Z Keys Alt - @ Z Keys {Alt - @Z} Keys {Alt - @ Z} Keys Alt - @{Z} Keys Alt - @ {Z} @ Keys {Z} Alt - @ Keys {Z}  Nothing's worked. Read the help section, on special keystrokes, and the few forum posts about them, and they all say that the first one should work.   Any help would be greatly appreciated!   Ty! Mule Keys Alt - @Z @ Keys {Z}
×
×
  • Create New...