Git Product home page Git Product logo

Comments (9)

zmilla93 avatar zmilla93 commented on September 24, 2024

Couple of questions.

  • What operating system and language setting are you using?
  • Clicking the whisper button is what causes POE to light up on the task bar, correct? Does the game popup or focus at all after that?
  • Does the quick paste work when using a hotkey?

Thanks for the report!

from slimtrade.

videnfost avatar videnfost commented on September 24, 2024

I am using Windows 10 Pro with English setting.

Clicking the whisper button is what causes PoE to light up on the task bar, yes. The game does not popup or focus at all.

I will have to test if the hotkey is bugged as well. I will update when I find out!

from slimtrade.

Kattsallad avatar Kattsallad commented on September 24, 2024

I had similar issues today when i ran Slimtrade. I would get the notification for an item selling but i was not able to use any of the macro buttons to respond. It would copy the text to clipboard but never actually send them through the chat.

I updated Java to the latest version but still no changes, i also noticed that whenever i would go out from PoE the overlay would go away and it wouldnt come back until i opened the Slimtrade options from the taskbar icon.

However when i ran Slimtrade through powershell with the -jar command it would work as inteded. So i assumed it was some new windows nonsense since they released an update recently. I ended up writing a script that opened Slimtrade with elevated permissions with a powershell script and skip the debugging window. I am the only user on the computer and i have full admin rights, so there was no reason for this to make a difference but it did.

Running Windows 10 Pro English, no modifications or additions.

from slimtrade.

videnfost avatar videnfost commented on September 24, 2024

Yes the hotkey version seems to work just fine. I click on the trade text, then press the hotkey and the game focuses and sends the whisper. But the automatic one is the one that is getting stuck trying to focus back into the game and lighting up the taskbar.

Kattsallad any chance you can share that script with me? It would help a lot :)

from slimtrade.

Kattsallad avatar Kattsallad commented on September 24, 2024

@videnfost Sure

@echo off

:: BatchGotAdmin
:-------------------------------------
REM  --> Check for permissions
    IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
) ELSE (
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
)

REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
    echo Requesting administrative privileges...
    goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    set params= %*
    echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params:"=""%", "", "runas", 1 >> "%temp%\getadmin.vbs"

    "%temp%\getadmin.vbs"
    del "%temp%\getadmin.vbs"
    exit /B

:gotAdmin
    pushd "%CD%"
    CD /D "%~dp0"
:--------------------------------------    

start YOURSLIMTRADEPATH
Exit

If you dont know how to run this just copy the code into a txt file and save it, then change the file extention to be .bat instead of .txt

Make sure to edit the path to your slimtrade at the bottom of the script, if you run the script in the same directory as your slimtrade.jar you can just type "SlimTrade.jar" without the quotes.

from slimtrade.

zmilla93 avatar zmilla93 commented on September 24, 2024

@videnfost Strange that the hotkey works and the automated version doesn't as it calls the same code. The fact that POE lights up in the tray indicates it starts that mutual process, but since POE is never focused it just times out. You could try running SlimTrade from the command line to see if there is any errors, although I would be surprised based on what you described. Will continue to investigate.

@Kattsallad Very strange issue. Did SlimTrade ever work correctly for you, or was it only when you last updated Windows? Also if just running the program from the command line fixes the issue, wouldn't it be enough to just use start java -jar SlimTrade.jar in your bat file instead of modifying permissions? This would actually be really useful to know since I have an idea for a fix if it does work that way.

I found a very small bug in the code that interfaces with POE, but honestly not sure if it will address either problem. Feel free to try and report the results. I'm hoping to release a new version of SlimTrade in the next week or so that will generate log files to help with debugging more.

SlimTrade Test Fix

from slimtrade.

Kattsallad avatar Kattsallad commented on September 24, 2024

@zmilla93 Its my first time trying slimtrade. I did use mercurytrade prior but decided it was time to swap since its not maintained anymore but mercurytrade worked without any problems. Problem with running it through Java runtime is that it opens up a debug window, using my script will open the program normally with elevated permissions.

I tried the test fix and i have the same behavior when not running elevated or with "java -jar SlimTrade.jar"

from slimtrade.

zmilla93 avatar zmilla93 commented on September 24, 2024

Oh right, you should be able to change that to javaw -jar to prevent the console window from opening.

I'm working on an automated update system that uses a launcher model to update and run the main program, so that may very well fix it. If the problem persists after that update is released then please open a new issue, as I think it is a different bug that what causes the quick paste issue.

from slimtrade.

zmilla93 avatar zmilla93 commented on September 24, 2024

Fixed in v0.3.0.

from slimtrade.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.