Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Iaccessible object #22

Open
yaronelh opened this issue Aug 15, 2019 · 19 comments
Open

Invalid Iaccessible object #22

yaronelh opened this issue Aug 15, 2019 · 19 comments

Comments

@yaronelh
Copy link

Hi Drugoy

Tried to run the AccViewer script today, it gives an error
(Invalid Iaccessible object) when you try to select something in line 508 when you try to select something, Do you know about it? is it something on my end?

image

@yaronelh
Copy link
Author

Sorry didn't know the action was hold and release, probably happened because I've released the mouse button immediately after pressing it

@Drugoy
Copy link
Owner

Drugoy commented Aug 15, 2019

Well, I'm glad you figured that out on your own!

@Drugoy Drugoy closed this as completed Aug 15, 2019
@yaronelh
Copy link
Author

Still fighting with trying to do anything with the acc

Can even make it press buttons

@Drugoy
Copy link
Owner

Drugoy commented Aug 15, 2019

Oh, I thought the issue got resolved.
Try to ask here: https://www.autohotkey.com/boards/viewtopic.php?f=6&t=26201
Probably the AccViewer my repo has is outdated.
Honestly, as you can see this repo got almost 0 development for quite some years... because I've switched from Windows.

@Drugoy Drugoy reopened this Aug 15, 2019
@yaronelh
Copy link
Author

I actually asked around in discord, and some more experienced developers said acc library is very hit-and-miss and largely untroubleshootable. I couldn't make it even click one object. such a shame since Something like this could help me a lot,. :/

@Evotron
Copy link

Evotron commented Feb 23, 2021

Honestly, as you can see this repo got almost 0 development for quite some years... because I've switched from Windows.

Excuse me, Drugoy, I don′t want to derail the thread, but my curiosity is bugging me. You switched from Windows to another OS?
Why is that? What do you use now?

I′m curious because a big part of me wants to switch, but I really, really like AHK. Do you ever miss AHK?

Again, sorry to derail your thread and repository, but I am very curious.

@Drugoy
Copy link
Owner

Drugoy commented Feb 23, 2021

First to FreeBSD, then to Linux (XUbuntu 18.04 LTS for now).
I switched mainly because microsoft became unacceptably aggressive (I used Windows 7) in their decision of forcing updates and EOLing w7.

Their aggression with forcing updates was exhibited in quite multiple ways:

  • since they wanted users to update to Win10 quite badly, none of the shiny new features were to get backported to w7, w7 was announced to be EOLed soon (irregardless of the fact that it was more popular than w10 (and, trust me, more mature) than w7 at that time);
  • they changed their approach in developing OS: w10 was announced to be 'the last windows', meaning they appropriated rolling release strategy (which is what many linux distros did for years by that time). This is acceptable for linux world (since everything is free + there are LTS branches), but in the world of bloody proprietary enterprise (Windows) it just meant that regular users would become microsoft's own army of beta-testers (in real world, being a tester - is an honest job and people get paid for working it, with windows it would be vice-versa);
  • from what I've heard (but had never experienced myself, since I was staying on w7) they broke UX pretty badly multiple times with stuff like:
    • all those back and forth with removing/restoring the 'start' button;
    • re-hashing all the control panel and other OS 'wizards' to the point where I'd have to re-learn stuff / change some habits;
    • they decided (or were those just rumors? I dunno) to change licensing model to service-like (paying over time);
  • they started hiding what comes with the updates (that process was never transparent, to begin with, but it still got worse);
  • they decided to promote themselves to the ultimate decision makers in matters of when OS running on MY hardware needs to start installing their blobs (and sometimes it was telemetry!) and when it needs to reboot. This was so unacceptable to me that I decided to disable windows update services completely (along with some other services that I learned used to talk to their 'mothership') and after a year of living so I realized that my OS becomes more and more vulnerable over time and there was no way it would get better (w7 got EOLed).
    Instead of updating to w10 I decided to just switch my main OS to some unix-like OS.

I had some very little experience with FreeBSD at work, it looked hardcore and I wanted to go somewhat hardcore, so at first I decided to go with it. I chose XFCE as DE as it looked windows-like + was very simple (I don't need no widgets and all that visual bullshit).
The next few years were quite a struggle.
IMO, FreeBSD is for masochistic idealists or for people that want to learn 'unices' 'the hard way' (both quotes are intentional), because either you have very little of stuff that works or you've spent (and continue to regularly spend) enough time to configure more of the stuff to work.
But then I switched a job and was now working with servers running linux and I decided I wanted to learn Docker.
Docker simply doesn't run on FreeBSD (linuxulator is a failure).
And it's not just docker, I wanted to be able to use some proprietary stuff like Skype which, again, requires struggling with the package if you want to make it work.
Once I caught myself realizing that I work for the OS too much (and it is supposed to be the other way around!) and my struggles were getting more and more masochistic than teaching, so it made sense to switch to Linux, at least to try it.
I chose Ubuntu as it was popular/mainstream and I value such things (because it means the higher chances of googling a ready solution for a problem I am to stumble upon) and since I was pretty content with XFCE as DE I chose to go with it again.
Linux world is full of different kinds of distros and there are distros like Xubuntu (which is Ubuntu, but with XFCE as DE instead of Gnome) and Kubuntu (Ubuntu w/ KDE), so I chose Xubuntu, especially that it is maintained by the Canonical itself.

In unix world there is a killer feature that Windows lacks: it's package distribution. Since most of the new modern software is opensource and usually crossplatform - Linux is a first class citizen.
Luckily I've never been into stuff that would vendor lock me to Windows (like maybe some Adobe products?) and modern trends that there are less and less programs that are windows-only and have no linux-compatible analogs that could be used as replacements.

As for AHK and scripting in general - well, I'd say I've suffered some small death here, because I loved AHK and nothing ever compares to it anywhere (no, really) in terms of it's general (and quite wide) application (it can work with windows of other programs, work with file systems, work with keyboard and mouse input (hotkeys, binds, triggers, etc.)) and the ease of use.
But all things come to pass, and death of a lovely scripting/programming language - is one of them.
I started to learn bash and working in terminals and had advanced a bit with that, to the point where I now can script something with networking (generally or on the level of sending http requests), with file system (this stuff is the most trivial), with parsing texts/strings (a bit uncomfortable, but definitely possible).
As for working with windows of applications - I realized that it's easier to just use what's available already and just not ask for more.
Basically, same with hotkeys/hotstrings.
There is AHK-like project for linux: autokey but, unfortunately, it sucks ass in terms of quality and probably will never get better (it is semi-abandoned already).

Switching to Windows at home is just not an option for me anymore (again, mainly because I don't have trust to microsoft).
I even play games now on linux, rather than boot into windows (I still have w7 installed somewhere, but I don't really remember the last time I used it, maybe 1-2 years ago?).
At my current job I am forced to use Windows (10). But since I basically work in browser, terminal (yay WSL!) and text editor (yay AkelPad!) - it is pretty bearable, although I'd still prefer to switch to Linux there as well (mainly because of docker and my current preference of linux over windows in general) at my current job.

Don't hold yourself - just try to live a few weeks/months in the unix world and you'll figure out whether you like it or not.

To me - it's not just efficiency with computers, it's also money: I morphed into ops/devops and it's all linux everywhere (and this is not going to change), so the more I know - the better I am, the more I get paid.
Really, just knowing linux good enough - already secures you a good career.

@yaronelh
Copy link
Author

wow.. that's super detailed.
Although I didn't ask the question was very interesting thanks @Evotron, and of course @Drugoy

@Drugoy
Copy link
Owner

Drugoy commented Feb 24, 2021

Oh wow how it blew up, judging by all those emoji reactions!
😲

@jatin-code777
Copy link

@Drugoy it's on this reddit post! :)

@JeffVeit
Copy link

JeffVeit commented Feb 24, 2021

FYI Autokey (Qt) is the one to go for on Linux. The hard work is done by Python. UI could be better, but it's still much better than entering the same thing over and over as you debug an issue. Later the learning can be translated into a test.

@yaronelh
Copy link
Author

@NeLaurynas chill man, it's just an opinion
You are writing this like you're debunking a statement of fact, while it's good in some scenarios you could be more casual would it
the breakdown is overkill, nobody thought every statement made was factual rather a subjective point of view.

@Evotron
Copy link

Evotron commented Feb 25, 2021

I was afraid of sharing @Drugoy′s wonderful post because I felt like some people would get angry and attack him. As a long-time Windows user, I am 1000‰ on board with what Drugoy said. A few weeks ago I found that Windows had installed Xbox software on my computer. I don′t even game! And now night light and my audio are acting up when they worked okay months ago.

I have heard from various artists who use Windows that their tablets have begun acting up lately. Wanna know why? Windows is messing around installing crap all over the place. And it will never stop pestering me about using Edge.

Anyway, I had to ask Drugoy why he switched because he was a master AHK user, and I had a hard time believing an AHK master could switch operating systems easily. I wanted to know what he was thinking and his experiences. That′s all. I was curious. He responded honestly, and his actions match what he believed. This thread is about a problem with an AHK script and AccViewer. We have derailed it too much. Respect the developer, the repository, and the issue. Do not continue this further, @NeLaurynas.

@yaronelh
Copy link
Author

@NeLaurynas hahaha.... man you went there, straight to "fake news" 😂
thanks for the laugh, it's always nice to meet a person that thinks everybody else is stupid, thanks for coming to our rescue

What would us adults do without all the people "saving" us from misinformation, and fake news

@yaronelh
Copy link
Author

@NeLaurynas there's nothing to correct, not because you're right or wrong.
Because it's a casual conversation of people expressing their opinions,

it's not to say you haven't added value to the conversation by adding your take on the matter, it is the way you did.
I got no idea what shitposting is, probably something meant to insult, it doesn't matter because you need to choose to get insulted, and I never do it's a waste of time.

not everything in life is a fight :)

and I also not implying that I don't think that people like you are significantly important, people that are passionate about truth yet have issues with social signals. the conversation was 3 and you took it to 10 unnecessarily.

You should probably think why you needed to do that, it's more about you.

@yaronelh
Copy link
Author

yaronelh commented Feb 25, 2021

@NeLaurynas I appreciate your passion but you're using the word lie, which implies intent, think about it
was there and intent to lie in the original post? our was it incomplete information, lack of specific knowledge etc.?

NeLaurynas I'm glad there are people like you, and really not as an insult
it's hard to be that person that points inaccuracies in other people's speech, please don't stop doing that
it makes for a shity world, when nobody has the courage to speak.

I would just not go straight to 10

have a great one

Repository owner deleted a comment from NeLaurynas Feb 25, 2021
Repository owner deleted a comment from NeLaurynas Feb 25, 2021
Repository owner deleted a comment from NeLaurynas Feb 25, 2021
Repository owner deleted a comment from NeLaurynas Feb 25, 2021
@MichaelTunnell
Copy link

@Drugoy this was a very interesting read to see your experience with switching to Linux and how it has worked out for you. Thanks you for sharing that! It also seems to have gone a bit viral since it was posted on r/linux subreddit recently 😎 (that's how I saw this)

I agree that AHK was great when I was using Windows and I wish AutoKey was close to what AHK can do but for general purposes it seems fairly decent. There are some other options with detecting secondary keyboards which is kind of cool such as Keebie and macrodevice. I am not saying these are solutions for AHK replacements but they are kind of cool in that you can have 2 keyboards with one functioning totally separately.

@gb-dursley
Copy link

I'm 73 and a retired computer professional whose career started in 1968. Back then all operating systems were proprietary to computer manufacturers, usually unique to a computer 'series'. Every manufacturer did their own thing, 8-bit 'bytes' were an IBM invention, elsewhere 'words' could be 12, 16, 24 bits long. IBM was not just the biggest computer company, but bigger than all the rest put together! There used to be a saying "Nobody ever got fired for choosing IBM". Just like Microsoft today.

Long exasperated by Microsoft's attitudes in general, and particularly using paying customers as unwitting and perpetual Beta-testers. Vista was the final straw personally; so slow and unreliable on my expensive new laptop. Embarrassing and expensive for a self-employed IT consultant with project management deadlines to meet.
My conversion to Linux and Open-Source was a gradual process. Faced with the need to rescue/convert vital client data from Works to MS-Office, someone suggested going via Open Office. That led to looking for other Open-Source solutions for Windows-created problems like data-recovery, leading to a dual-boot W98/Ubuntu setup on an 'obsolete' but powerful tower (486 with 512Mb of RAM!). I spent a wet Sunday backing up the Vista laptop (including a disc image for absolute safety), and dual-booting it with Ubuntu. Within days I was a complete convert; cold-boot in under 60 seconds, shut-down in 10s (updates while making a cuppa) and best of all, 100% up-time. After a year or so, Vista broke itself completely. This was about the time that Canonical climbed into bed with Google prompting a switch to Mint.

I bought my current laptop (unused, ex-lease, 3 year-old, Toshiba Portege) just before I finally retired in 2014. It's (2nd) battery is knackered but otherwise runs like a dream (Mint 18.3 soon to be upgraded to 19.3). Still dual-boot as I need W7 to update my TomTom SatNav; when the latter finally dies, W7 will get the chop.

Apologies for wandering off the original topic. Found this interesting thread looking for information for a new project.

@TFWol
Copy link

TFWol commented Nov 12, 2022

I'm glad I stumbled across this issue. Was not expecting to see such an interesting conversation while debugging scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants