1
Quoz2
21d

first of all sorry for my english, its not my first language
hello, i am an aspiring programmer and im honestly just a really big newbie, im learning vb dot net and ran into an issue that i had. So basically i was using the WinActivate function from autoit with FindWindow(using the title of the window) to supply WinActivate the hwnd. Heres my issue: When the window is NOT minimized so selected or behind other windows the WinActivate function works completely fine, but when the window is minimized it doesnt work, i have read on the documentation that neither function cares wether the window is minimized or not so i came to the conclusion that it might have a different title when minimized? The window is the league of legends client by the way. What can i do to solve/debug this issue, perhaps spy++ could help me? how would i use this, i could upload the visual studio project if someone wants to help me out in that way. WinActivate((FindWindow(Nothing, "League of Legends"))) this is what it looks like.

Comments
  • 5
    I would advise you to switch to C#. Microsoft is no longer supporting VB.net.
  • 0
    @SortOfTested i have been thinking of doing so for a while now, i dont want to waste my time learning vb, whatever they are similar anyways do you suppose you have an idea what my issue is or how i could solve it? I've been frustrated for a while now :/
  • 4
    Hey man, you're not going to want to hear this, but your issue is that you're using vb.net and you're probably trying to run before you can walk. You have to slow WAY down and try something simple and easy. Learning how to learn this one particular method will only help you once, you need to learn fundamentals that apply everywhere.

    Maybe you can buy a course and follow along with the instructor.? Best investment you'll ever make~
  • 6
    @ArtOfBBQ @Quoz2 buying a course could be the best investment you can make - except if you buy it for vb.net. Just don't. The language is dead as a programming language can be. Especially if you aspire to became a game dev one day (like I kind of read between the lines from your profile). Dotnet ecosystem is a good one to learn, because it's popular, useful and quite beginner friendly, but I'd switch to C# yesterday if I were you (it's also thee scripting lang in Unity).
  • 0
    @SortOfTested Didn't actually realise that - but completely unsurprising. More surprised they didn't make the change 5 years ago.
  • 1
    @100110111 that's great advice <3
  • 0
    @100110111 Thank you for your answers and the useful advice surrounding dot net, vb, unity, and c#, looking at all the comments I have received I will certainly switch over before I get too invested in vb. If there is a guide/ course that you could recommend to me I would be happy to try it. I am aware that I am a beginner and maybe I was a bit too confident in my skills, I just thought it would motivate me more if I worked on a project that I have interest in, etc. (I'm not planning on becoming a game dev). Otherwise, the fashion of all these comments is giving me the impression I am doing something wrong, that is ridiculously obvious. Could someone help me out? :)
  • 1
    @Quoz2 I am not very good at pointing you to good learning materials, as I learned my C# & .NET chops at work by reading code and just figuring it out, using Google-fu and/or my esteemed colleagues' knowledge-base whenever I felt lost - but others may know of great resources. Udemy, Coursera and Pluralsight may be good places to look for. Also I think Microsoft had in their free learning materials some C# courses for beginners - you might actually want to check those out first.
  • 2
    @AlmondSauce
    Microsoft's history is littered with instances of applying enormous effort to support marginal user groups. They routinely assumed that, because the number of office users was high, so to was the number of VB programmers.
  • 1
    @SortOfTested In fairness, general office knowledge into the early 2000's probably included some level of VB / VBA knowledge, as it was often the only way to get things done. These days though... not so much. And hasn't been like that for some time.
  • 1
    @Quoz2

    There's something here:
    https://dotnet.microsoft.com/learn/...
    ...but this is what I was talking about:
    https://docs.microsoft.com/en-gb/...

    Also at least all the 3 learning platforms I mentioned (Udemy, Coursera, Pluralsight) have a plethora of courses on the subject, and I would imagine other platforms do too.
  • 1
    @AlmondSauce
    They should have given up in 2006 when there was < 2% adoption. It was obvious even then that the VB.net team was holding things back.
Add Comment