Giter Club home page Giter Club logo

Comments (14)

RamonUnch avatar RamonUnch commented on August 20, 2024 1

First response was updated with details to help setting Autostart

from altsnap.

RamonUnch avatar RamonUnch commented on August 20, 2024

Try to add a 10s delay in the task scheduler.
Have a look to #15 and stefansundin/altdrag#77

EDIT:
SOLUTION 1: Use my config

  1. Download this AltDrag-task.zip file.
  2. Extract its content: AltDrag.xml
  3. In the Task Scheduler, select Action->Import Task... and select the AltDrag.xml file
  4. Go into Actions, double click on the path to AltDrag.exe and Update it.

SOLUTION 2: Manual config
Good parameters for the task:

  1. Run as Users and highest priviledge
    image

  2. Enable AltDrag autostart even whe disconnected from AC Poser:
    image

  3. Do not kill AltDrag After 3 days!
    image

  4. Add a 10s delay to startup
    image

from altsnap.

logarythmic avatar logarythmic commented on August 20, 2024

I saw that and gave it a try, but that also led to an instance of 1.3 MB instance that did not work. There was also a bat file I tried to run that killed any running instances before launching it again after a delay. The file path I'm using in Task Scheduler is C:\Users\Logarythmic\AppData\Roaming\AltDrag\AltDrag.exe

from altsnap.

RamonUnch avatar RamonUnch commented on August 20, 2024

Strange, so you mean that when you lunch AltDrag from the autostart it does not work.
Does it work at least when you lunch it by doubleclick after a clean restart?
I think this old bat served to kill a AltDrag when it was stuck in an infinite loop that has been fixed a while back now.

I have no idea what could cause the problem then.
Just in case give me your ini file (you can zip it and attach it in a post).
Which version of windows are you using?
I guess you are trying to lunch AltDrag as admin?

from altsnap.

RamonUnch avatar RamonUnch commented on August 20, 2024

Does the same thing happen with the original AltDrag?

from altsnap.

logarythmic avatar logarythmic commented on August 20, 2024

Anytime I manually launch or double click it works perfectly. I actually switched to your version in the hopes of fixing this. It only happened in the past week while trying to task schedule my way out of the annoying UAC prompt. Everything but autostart works perfectly, it's really weird.

(AltDrag.zip)

Currently on OS build: 19042.928 of Windows 10 Home

from altsnap.

RamonUnch avatar RamonUnch commented on August 20, 2024

Ok, I will try to get a deeper look into this.
I guess I will make a version that logs out all the possible information.

You mean that the "normal" autostart (that can be checked in the config dialog) does not work either?
The only problem is when using the task scheduler?

It is true that I did not test much using the task scheduler. As I said I will investigate more because there seems to be some reproducible problems around here...

from altsnap.

logarythmic avatar logarythmic commented on August 20, 2024

Awesome thank you! I'm really curious to see what the issue is. I've been experimenting with having autostart on and off in tandem with task scheduler with no success. I'll let you know if I can think of anything else that might lead you in the right direction.

from altsnap.

RamonUnch avatar RamonUnch commented on August 20, 2024

Try with this combo AltDrag.exe+Hooks.dll:
AltDrag_log.zip

rename the old altdrag.exe+Hooks.dll in something different and copy the new ones.
AltDrag should create a ad.log in its dirrectorry when lunched, thus:
Try to lunch AltDrag by double-click, in this case everything should work fine.
then exit AltDrag,
then rename the ad.log in ad-normal.log, you ca give it a read if you like.
Then keep AltDrag off, set up the autostart in your tasks, restart and rename the new ad.log in ad-sched.log, then send me both logs and we will see.

from altsnap.

logarythmic avatar logarythmic commented on August 20, 2024

I think I did this right, take a look and let me know if that's what you were looking for. It did the thing it usually does, so I hope it was accurately captured.

Logs.zip

from altsnap.

RamonUnch avatar RamonUnch commented on August 20, 2024

Could you try again a restart with the scheduled task?
The log should logically always start with ALTDRAG STARTED WITH HINSTANCE 0x... something.
Even if AltDrag does not work I except this message because it is the first one. It seems the ad-sched.log you gave me was taken in the midle of the execution.
So just leave ad.log alone, and restart with the scheduled task again, Quit AltDrag and send me again the new ad.log.
the ad-normal.log does contain all the info and finishes at Starting AltDrag message loop... which is what should be the only display until AltDrag is exited.

from altsnap.

logarythmic avatar logarythmic commented on August 20, 2024

I think I just figured it out after googling a bit about the task scheduler. I changed it from to "Run weather user is logged on or not" to "Run only when user is logged on" which fixed it at least for this current restart. No idea why the autostart within the app itself wasn't working, but at least there is a workaround for the moment.

Here is ad for when I exited out and manually ran the task:
ad-nousertsched.log

from altsnap.

RamonUnch avatar RamonUnch commented on August 20, 2024

"Run only when user is logged on"

This is actually expected, AltDrag can not do anything for the current user if he is not logged on.
AltDrag is not like a driver and only hooks the keyboard and mouse of the current user, this mean that there are no interactions with other users even if you use elevated mode.
AltDrag also needs for the proper display of the tray icon that the taskbar is lunched.
I guess This is why it was not working. I thought that this option was the default and I did not think about it, but it make sense.

Anyway your probles should be fixed. It should not be possible for AltDrag to work if the option is "Run weather user is logged on or not" and there is no possible way to make it work like this.
However the "normal" autostart should be fixed still.
I will add to the txt file the details on how to prepare this scheduled task

EDIT: This Also explains why the log file was partial, because it contained only the messages triggered by the Logon to the system with altdrag already running.

from altsnap.

logarythmic avatar logarythmic commented on August 20, 2024

Ah okay, that's really good to know! Thanks so much for the help, I really appreciate it.

from altsnap.

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.