Comments (14)
First response was updated with details to help setting Autostart
from altsnap.
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
- Download this AltDrag-task.zip file.
- Extract its content: AltDrag.xml
- In the Task Scheduler, select Action->Import Task... and select the AltDrag.xml file
- Go into Actions, double click on the path to AltDrag.exe and Update it.
SOLUTION 2: Manual config
Good parameters for the task:
from altsnap.
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.
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.
Does the same thing happen with the original AltDrag?
from altsnap.
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.
Currently on OS build: 19042.928 of Windows 10 Home
from altsnap.
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.
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.
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.
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.
from altsnap.
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.
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.
"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.
Ah okay, that's really good to know! Thanks so much for the help, I really appreciate it.
from altsnap.
Related Issues (20)
- Windows always snap, no matter AltSnap settings.
- Feature Request : Autoborderless zone-snapped windows (minus blacklist) ? HOT 1
- Resize windows from center - like osx [Feat] HOT 5
- Cant seem to clear shortcut keys - keyboard tab [v1.63] HOT 8
- Feature request : Somehow be able choose overlapping zones ? HOT 8
- Feature request : reload config explicitly option in systray context menu HOT 2
- [bug?] Snapping after Alt-Tab doesn't work. HOT 3
- Fix minimize action HOT 1
- [question] how to bring window to front after Alt-Click-MouseMove? HOT 2
- Intermittently stops interacting with windows HOT 3
- Move to left/right/top/bottom zoone limitation HOT 2
- Compatibility with Komorebi HOT 5
- Add UIAccess flag to allow managing admin windows without running as admin HOT 10
- Chocolatey packaget not updating HOT 10
- PiercingClick doesn't work on windows11? HOT 5
- Cursor can't left-click until a right-click is issued HOT 22
- Centering a window is misaligned
- A separate blacklist for showing Window lists/Changing Windows
- Highlight selected zones before snapping HOT 1
- Allow resizing while alt+left click held down HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from altsnap.