• Breaking News

    Sunday, September 12, 2021

    Please take the time to learn how to ask a question Ask Programming

    Please take the time to learn how to ask a question Ask Programming


    Please take the time to learn how to ask a question

    Posted: 12 Sep 2021 06:06 AM PDT

    A thing you will have to do a lot in your journey as a developer is asking questions: please understand that it's your responsibility to make it as easy as possible for people to help you.

    This holds true in general, as well as in this subreddit.

    The person on the other side of the screen has no idea of the context of what you are trying to do, your goal, your constraints, your specification: you have to be clear about all of those when asking a question

    I see questions that are borderline like:

    "why doesn't my code work?" (copypaste of the code)

    So here's a few things you should ask yourself before you ask for help

    1. Do you understand what the error is? Because if you don't understand it, you can't communicate it. You have to have a clear idea of what the expected behavior is, what the actual behavior is, and communicate both
    2. Did you try googling the error before asking? A lot of questions I answered on this sub were just copy pasting from the first result of stack overflow
    3. Is all of the code you're posting necessary for the comprehension of the problem? If not, it's probably a good idea to strip away some parts of the code, and only leave what is essential
    4. Did you try solving the issue for at least 10 minutes on your own before asking?
    5. Is the form in which the question is formulated essential and direct? Is the code properly formatted? Maybe you should consider pasting a link to a codesandbox / jsFiddle instead?
    6. By reading your question, would a stranger be able to have a good idea of what I was expecting to happen, and what is happening instead?
    7. Most problems can have plenty of possible solutions. In the body of your question, please provide examples of ways you've already tried solving the issue

    As for the rest, just use common sense

    Thanks for coming to my ted talk

    submitted by /u/DudeSlude95
    [link] [comments]

    Please take time to learn how to answer a question

    Posted: 12 Sep 2021 09:27 PM PDT

    In response to this front page post, I felt it important to give the other side.

    Yes, it is absolutely important to learn how to ask a question.

    However, no matter how you try, if you're asking that likely means that you need help and aren't really knowledgeable in the area.

    So, as long as you aren't asking hard/impossible to answer things like "why isn't my code working?!?", we should assume the best of you.

    So, for those of you answering questions, I wanted to create a convenient guide to help those who really are trying their best, despite many gatekeepers making them feel inadequate with how they ask.

    1. Assume the best of the asker. They likely don't know any better and need your help.

    2. Don't gatekeep. If your intention is to arrogantly come in and say that a beginner should have a mastery of awk and sed, don't respond to the question, you clearly don't have as good of a mastery as you think that you do. I have met world masters in coding and they are as humble as they are smart. Strive to be like them.

    3. On that note, if you couldn't teach a child in their terms how to do what you think that know, then you might opt to not answer questions until you have a better understanding and mastery of that given area of programming. A true master can communicate concisely and clearly even to someone with little to no knowledge.

    4. Assume that the person has tried their best to solve the problem and has already searched around for help. My best buddy and I have been coding since the early 90s and we almost never ask for help because we focus super intently on solving it ourselves. This is not normal. Assume the best of your asker.

    5. Above all else, remember: If you don't have something useful to say, don't say anything at all.

    6. Remember what it was like when you were there. Also remember that the ritualistic hazing that you went through sucked and was unwarranted. Don't perpetuate that toxic culture.

    This is not a comprehensive guide, it is up to you to apply empathy and sympathy or just not respond.

    I distinctly remember how terrible and exclusive the bash scripting communities were back in the 90s and 00s and I only succeeded despite their jabs and demeaning responses, not because of the

     

    Lastly, if you don't like the message in here, look at point 5.

     

    Who am I to say this? Self-taught Silicon Valley programmer from the 80s-now. I taught myself everything from basic to JavaScript, PHP to python, and so much in between. However, I also teach, and I realize that the community puts the blame on the askers instead of getting better at answering. It is actually both sides that need to improve, with you experts among us needing to humbly lead the way.

     

    Edit: hotfix - this post isn't perfectly worded but the recommendations in it apply to it too. If you're confused, please feel free to ask any questions for clarity. If you just want to showboat or be opinionated, gatekeep or be arrogant, please go enjoy another place. This post is meant to help those who want to be better question answerers. If you don't fit into they category, it's ok, but I ask you to not try to answer questions from new people, they need help.

    submitted by /u/nowthengoodbad
    [link] [comments]

    Bit let down aftee job interview questions, looking for courses

    Posted: 12 Sep 2021 04:24 PM PDT

    TL:DR: econ student let down after a more programming heavy job interview, looking for online courses that explain webscraping, sitemaps, using JSON file to pandas dataframe, and importing/cleaning excel files before getting them to pandas. (All python)

    Im an econ student, trying to learn programming as best as I can alone, due to my course not providing much. I had some R/vba classes but thats all.

    I did some sql/python courses provided by morgan stanley, and also automated some excel with vba and pandas during an internship.

    Recently I applied to a slightly more technical role, where I got a 4hour takeaway exercise as part of the interview.. And thats when I realised how little I know, and got my confidence put in place. I couldve done the exercise if I had a few days for it, but in 4 hours I did terrible.

    It was mostly about webscraping, using site maps, and creating pandas df from JSON formats, which was new to me. Are there any good courses regarding these topics? Udemy/coursera anything?

    submitted by /u/Lightdrinker_Midir
    [link] [comments]

    First project - building a basic website for friend. Need tips.

    Posted: 12 Sep 2021 04:02 PM PDT

    How much JavaScript?

    📷

    Hey guys, hope all is well.

    I am currently in college for software engineering, with aspirations to become a full-stack engineer.

    I have been itching to build my first real project, and have finally found it: My good friend owns a barbershop and needs a website.

    I do not plan on charging any money, just want the project for my resume and I wanted to do a cool thing for a friend.

    My question is this: I am proficient in HTML and CSS, but have very basic Javascript knowledge. I plan on changing that soon, but was wondering how much JavaScript is needed for a simple website, and are those things I can learn individually with a basic understanding of JavaScript?

    I just want to build something very simple, get him hosted on a hosting provider and send him on his way.

    Thank you!

    submitted by /u/SourceCodeDad
    [link] [comments]

    People who actually work in C, why are your variable names so short?

    Posted: 12 Sep 2021 01:48 AM PDT

    It's generally recommended to have variable names that are as expressive as possible, and it's not rare to see longAssVariableNames in languages like Java

    But when I look at some C code (mostly remembering from my CS degree), variable names tend to be as short as possible

    Why is that the case?

    submitted by /u/DudeSlude95
    [link] [comments]

    Sorting data to make a program?

    Posted: 12 Sep 2021 06:24 PM PDT

    How do you go from a word problem to a program?

    I know it sounds simple but often I will have two pages of directions from a class assignment and I feel overwhelmed by the example and all the different parts.

    I've heard of stepwise refinement and I use it, but I was curious if anyone had any other insight?

    Thanks

    submitted by /u/A_tedious_existence
    [link] [comments]

    Fastest way with knight C++

    Posted: 12 Sep 2021 05:53 PM PDT

    Hi, could someone please help me with this C++ code? Everything works but I would like it to print also all the steps of the knight not just how many there are. Thank you :)

    #include <iostream> #include <set> #include <queue> #include <climits> using namespace std; // Below arrays detail all eight possible movements // for a knight int row[] = { 2, 2, -2, -2, 1, 1, -1, -1 }; int col[] = { -1, 1, 1, -1, 2, -2, 2, -2 }; // Check if (x, y) is valid chessboard coordinates. // Note that a knight cannot go out of the chessboard bool isValid(int x, int y, int N) { return (x >= 0 && x < N) && (y >= 0 && y < N); } // A queue node used in BFS struct Node { // (x, y) represents chessboard coordinates // `dist` represents its minimum distance from the source int x, y, dist; // Node constructor Node(int x, int y, int dist = 0): x(x), y(y), dist(dist) {} // As we are using struct as a key in a `std::set`, // we need to overload `<` operator`. // Alternatively, we can use `std::pair<int, int>` as a key // to store the matrix coordinates in the set. bool operator<(const Node& o) const { return x < o.x || (x == o.x && y < o.y); } }; // Find the minimum number of steps taken by the knight // from the source to reach the destination using BFS int findShortestDistance(int N, Node src, Node dest) { // set to check if the matrix cell is visited before or not set<Node> visited; // create a queue and enqueue the first node queue<Node> q; q.push(src); // loop till queue is empty while (!q.empty()) { // dequeue front node and process it Node node = q.front(); q.pop(); int x = node.x; int y = node.y; int dist = node.dist; // if the destination is reached, return distance if (x == dest.x && y == dest.y) { return dist; } // skip if the location is visited before if (!visited.count(node)) { // mark the current node as visited visited.insert(node); // check for all eight possible movements for a knight // and enqueue each valid movement for (int i = 0; i < 8; i++) { // get the knight's valid position from the current position on // the chessboard and enqueue it with +1 distance int x1 = x + row[i]; int y1 = y + col[i]; if (isValid(x1, y1, N)) { q.push({x1, y1, dist + 1}); } } } } // return infinity if the path is not possible return INT_MAX; } int main() { // N x N matrix int N = 8; // source coordinates Node src = {0, 7}; // destination coordinates Node dest = {7, 0}; cout << "The minimum number of steps required is " << findShortestDistance(N, src, dest); return 0; } 

    submitted by /u/amariana2545
    [link] [comments]

    How do I record and display the output of an EXE Window into another EXE Window

    Posted: 12 Sep 2021 04:23 PM PDT

    So for example let's say I have a game running, I want to grab the image output of the game and display it onto another window I have, so I would have two identical looking windows, one with the game itself, and one with the output of it. I want this to be done with LUA if possible.

    submitted by /u/certifiedcoomer
    [link] [comments]

    Is there a way to make this while loop infinitely loop?

    Posted: 12 Sep 2021 03:24 PM PDT

    Say I have a for loop: sorry for the title confusion

    int records = 10;

    for (int i = 0; i < records; i++)

    {

    //do something

    }

    The only thing I am allowed to do is edit the records variable.

    I am able to make that records variable equal to anything.

    Is there a way I can make that variable equal to SOMETHING so that the loop will be infinite? I am just asking this out of curiosity.

    submitted by /u/Icy-Run2694
    [link] [comments]

    An odd issue in Visual Studio 2017 while creating a Windows Forms project in C#: drawn lines disappearing while scrolling through the panel they`re in with scrollbars

    Posted: 12 Sep 2021 01:00 PM PDT

    I`m creating a program that makes block diagrams in Windows Forms and I`ve run into a bit of an odd issue.

    Basically, the block diagram consists of RichTextBoxes with text and arrows made out of Graphics lines connecting them, all located within a Panel element with Autoscroll enabled. When I use the scrollbars to scroll through the contents of said panel the arrows that are off screen just disappear and they reappear when I make the window fill the screen or shrink back with the rectangle button in the top right corner.

    Does anyone have a solution to this problem?

    Video demonstration in case my explanation wasn`t clear: https://imgur.com/a/IuiRswX

    Code in the Form1.cs file:

    using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ErrorReporter_2._0 { public partial class Form1 : Form { public string[] ErrorMsgs = {"test1", "test2", "test3", "test4", "test5", "test6", "test7"}; public bool z=true; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { int x, y, a; x = 180; y = 100; a = ErrorMsgs.Length; for (int i = 0; i < a; i++) { RichTextBox txtbx = new RichTextBox(); txtbx.ReadOnly = true; txtbx.Height = 128; txtbx.Width = 128; txtbx.Text += ErrorMsgs[i]; txtbx.Location = new Point(x*i, y); txtbx.BackColor = Color.LightBlue; txtbx.Tag = i; panel1.Controls.Add(txtbx); } } private void button1_Click(object sender, EventArgs e) { Application.Exit(); } private void panel1_Paint(object sender, PaintEventArgs e) { int b = ErrorMsgs.Length; Pen pen = new Pen(Color.FromArgb(255, 0, 0, 255)); for (int i = 0; i < b; i++) { e.Graphics.DrawLine(pen, 128+180*(i-1), 164, 180+180*(i-1), 164); e.Graphics.DrawLine(pen, 180 + 180 * (i - 1), 164, 170 + 180 * (i - 1), 170); e.Graphics.DrawLine(pen, 180 + 180 * (i - 1), 164, 170 + 180 * (i - 1), 158); } if (z==true) { e.Graphics.DrawLine(pen, 128 + 180 * (b - 1), 164, 128 + 180 * (b - 1) + 60, 164); e.Graphics.DrawLine(pen, 128 + 180 * (b - 1) + 60, 164, 128 + 180 * (b - 1) + 60, 310); e.Graphics.DrawLine(pen, 128 + 180 * (b - 1) + 60, 310, 64, 310); e.Graphics.DrawLine(pen, 64, 310, 64, 228); e.Graphics.DrawLine(pen, 64, 228, 70, 238); e.Graphics.DrawLine(pen, 64, 228, 58, 238); } } } } 
    submitted by /u/Admiralbenbow123
    [link] [comments]

    What steps should i take to learn programming, specifically for video games?

    Posted: 12 Sep 2021 04:14 AM PDT

    I know almost nothing about programming but want to start, what are the things one would need to learn to work for a video game company, and what are the steps i should take?

    submitted by /u/RENCHI--
    [link] [comments]

    How do you know if your hireble?

    Posted: 12 Sep 2021 12:47 PM PDT

    As a self-taught developer how do you know when you're hireble? Like what do you have to know before starting to apply? How good do you have to be to compete with people with a degree etc?

    submitted by /u/CalligrapherStreet46
    [link] [comments]

    How to use ControlSend to input text with a comma - AutoHotKeys

    Posted: 12 Sep 2021 12:25 PM PDT

    I'm simply making a script to automatically update my GitHub repo through the command prompt in Windows.

    The first line of code after the command prompt is open won't send, unfortunately. I believe it is because the string includes commas, but I can't find the right syntax for making "pushd D:\Media Lists\Website, Blog, and Wordpress_thefloodplains\thefloodshark.Github.io" send as a string before inputting {Enter} like in the below code:

    run cmd.exe WinWait, ahk_exe cmd.exe ; ControlSend, , pushd D:\Media Lists\Website, Blog, and Wordpress\_thefloodplains\thefloodshark.Github.io{Enter}, ahk_exe cmd.exe sleep, 2000 ControlSend, , git add .{Enter}, ahk_exe cmd.exe sleep, 2000 ControlSend, , git commit -m auto{Enter}, ahk_exe cmd.exe sleep, 2000 ControlSend, , git push{Enter}, ahk_exe cmd.exe sleep, 3000 Exit 

    As it stands, the script runs, but it won't input that first line with my GitHub repo location. The rest of the ControlSend inputs work, though.

    Any and all ideas would be deeply appreciated.

    submitted by /u/the_crabnebula
    [link] [comments]

    I am writing an article about reactive programming

    Posted: 12 Sep 2021 08:36 AM PDT

    So I'm on my final CS year in university and I'm writing a paper on a pretty general topic Reactive programming in web development. I though to ask reddit community for some suggestions or to share your experience, how to narrow this topic down to something specific.

    I was thinking maybe I could compare reactive programming with other kinds of programming used in web development, as event driven for example?

    Maybe I could also compare different versions of reactive programming, or different technologies as rxjs?

    What do you guys think would be a good topic to write a paper on it, so that it would be sufficient and interesting, I'm open to any suggestions :)

    submitted by /u/maartin_
    [link] [comments]

    What could I do in assembly, but not portable C?

    Posted: 12 Sep 2021 11:55 AM PDT

    For example, most CPUs allow for some kind of self modifying code, but I don't think there's any way to do that in C, or do that directly in any mainstream programming language. (JIT compilers that generate, then execute code, are slightly different).

    As another example, in some CPUs you can switch the endianness of the CPU partway through an instruction stream.

    I know you can drop to assembly in C, which is why I specify "portable"- I'm interested in what kinds of things are usually possible in a CPU, but which I couldn't get a standard C compiler to emit.

    submitted by /u/the_real_borramakot
    [link] [comments]

    Need help with some homework

    Posted: 12 Sep 2021 09:24 AM PDT

    I havent coded in about a year so im completely lost.

    Its to make a battleship game with encryption. "What we want is a way of communicating where your ships are located that the enemy won't understand. Your task is to create an encryption scheme that allows you to describe where your ships will be placed without the enemy understanding it "

    I literally have no idea where to start and its due for tomorrow

    submitted by /u/Xefo69
    [link] [comments]

    I've just started to learn python (on YouTube). I need some tips about anything like where do I start, which software should I use (or anything related to it)etc.

    Posted: 12 Sep 2021 09:08 AM PDT

    It would mean a lot if you would help :)

    submitted by /u/Any-Inspection-4726
    [link] [comments]

    Please help me with this project. I have it due tonight.

    Posted: 12 Sep 2021 09:05 AM PDT

    Please help me with some approaches for this project I need to turn in by tonight. Here are the details:

    SOFTWARE DEVELOPMENT

    Let us consider a case where the user sends a text or file from his phone to his friend. The risk of data being accessed by a third party is high when the data enters the cloud platform. Hence a new method to secure the messages/file is to be done either by building a new algorithm or by modifying the existing one which can give more security and consume less time. The identity of the user must also be verified by using the authentication, verification and validation methodologies.

    Tasks:

    1. Try to build or change an existing algorithm to secure message sent by the user based on efficiency

    2. Confirm the identity of the user by entity authentication using verification and validation.

    submitted by /u/lolsapnupuas
    [link] [comments]

    What the diff between coding and programing?

    Posted: 12 Sep 2021 09:01 AM PDT

    I'm quite new to coding and have been asking such questions on this sub. It would mean a lot if you would help :)

    submitted by /u/Any-Inspection-4726
    [link] [comments]

    How do you remember any code you learn?

    Posted: 12 Sep 2021 08:21 AM PDT

    Like i always forget a lot of the code i learn, is there any tips or exercises you could recommend that would help me with remembering?

    submitted by /u/EmotionaI_Ad
    [link] [comments]

    Need Help with OOP/my PyQt5 project, trouble understanding how things "connect" and work together.

    Posted: 12 Sep 2021 03:15 AM PDT

    Hey everyone,

    I'm very new to PyQt5 and not that good at Python either as you will see momentarily. Let me walk you through the idea and then post my code (and this code is just a simple "sketch" so to say.. to get familiar with the different things):

    You have a Main Menu. One of the buttons you can press there is the "Skill Tree"-button which opens up another window.
    In there you can allocate a total of 110 skill points.
    Each skill has its own button that you can press.. and by doing so, you invest 1 skill-point. So it knows which button has been pressed.

    It should also distinguish between left- and right-click (as left will spend points, right will subtract them) and allow shift+left/right-click to allocate or subtract 5 pts.

    I can get each of these to work by themselves.. but not together (with the buttons).
    And that's where my lack of OOP and PyQt5 knowledge comes into play.

    Not really grasping when to instantiate, what to pass as parameters, if my button (which is of class QPushButton/AbstractButton) can even use the members/functions(?) of other PyQt5 Classes etc.
    The Last class in the code below isn't called/instantiated btw, just to demonstrate what I'd like to do/connect.

    import sys from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QApplication, QLabel, QMainWindow, QPushButton, QVBoxLayout from PyQt5.QtWidgets import QWidget from functools import partial class MainWindow(QMainWindow): def __init__(self): super().__init__() self.initUI() def initUI(self): self.setObjectName("MainWindow") self.resize(1052, 804) self.setStyleSheet("background-color: rgb(24, 23, 24)") self.button1 = QPushButton(self) self.button1.setGeometry(100, 100, 100, 100) self.button1.setStyleSheet("background-color: white") self.button1.clicked.connect(self.is_clicked) def is_clicked(self): self.r = MainWindowTwo() self.r.show() class MainWindowTwo(QMainWindow): def __init__(self): super().__init__() self.initUIB() def initUIB(self): self.setGeometry(200, 200, 800, 600) self.label = QLabel(self) self.label.move(350, 80) self.button2 = QPushButton(self) self.button2.setGeometry(100, 100, 180, 180) self.button3 = QPushButton(self) self.button3.setGeometry(300, 300, 180, 180) self.button2.clicked.connect(partial(self.clicked, "Button 2")) self.button3.clicked.connect(partial(self.clicked, "Button 3")) def clicked(self, value): if value == "Button 2": self.button2.setText("I am Button 2") if value == "Button 3": self.button3.setText("I am Button 3") def mousePressEvent(self, e): if e.button() == Qt.LeftButton: self.label.setText("Left Button pressed.") if e.button() == Qt.RightButton: self.label.setText("Right Button pressed.") class MyWidget(QWidget): def __init__(self): super().__init__() self.intUIC() def intUIC(self): self.layout = QVBoxLayout(self) self.button2 = QPushButton(self) self.button2.clicked.connect(self.handleButton) self.button2.setText("Click me!") self.layout.addWidget(self.button2) self.setLayout(self.layout) def handleButton(self): self.modifiers = QApplication.keyboardModifiers() if self.modifiers == Qt.ShiftModifier: print("shift-click") if self.modifiers == Qt.ControlModifier: print("ctrl-click") if self.modifiers == (Qt.ShiftModifier | Qt.ControlModifier): print("shift+control-click") if self.modifiers != Qt.ShiftModifier and self.modifiers != Qt.ControlModifier and self.modifiers != (Qt.ShiftModifier | Qt.ControlModifier): print("mouseclick") if __name__ == "__main__": def run(): app = QApplication(sys.argv) m = MainWindow() m.show() sys.exit(app.exec_()) run() 

    Would be nice if someone could help me out & explain it a little.. and maybe even (if you find the time) edit the code so it does what I just described. Not so I can copy it, but so I have it in front of me and can follow the explanation/understand it better.

    I really want to grasp this and get better. Thanks

    submitted by /u/needhelpwithoop
    [link] [comments]

    UnitTesting parameters in testing methods

    Posted: 12 Sep 2021 05:46 AM PDT

    Hello. I am trying to use UnitTesting on these methods : Methods - Pastebin.com

    I call them in static void main in the same project like this : calling + definition - Pastebin.com

    Now in the different project with added reference to the first one, I am trying to test the methods like this : testing methods - Pastebin.com

    In WcTest there is a problem with the tools.Wc (line4). Error - Argument 2 cannot convert from int to UnixConsole.CountWhat

    I know I can not convert that, any idea how to fix that ?

    In GrepTest everything looks fine, I tried to check the contents of the both lists and they are same, but it still types NO to the CMD.

    Why is that so ? Thanks for help !

    submitted by /u/David39578
    [link] [comments]

    I started using idle but when I write a code I can't go to the second line. When ever I click enter it just runs the code.

    Posted: 12 Sep 2021 04:23 AM PDT

    What do I do?

    submitted by /u/Any-Inspection-4726
    [link] [comments]

    C# UI Automation API with multiple virtual desktops on Windows 10

    Posted: 12 Sep 2021 03:59 AM PDT

    Warning, I'm coming into this problem as someone who had never used C# before a couple of days ago...

    I'm trying to write a "simple" program that scrapes text from a targeted window and displays it on a 2x20 VFD display. I've learned about using the Microsoft UI Automation API, and have had some success in using it to accomplish my goal.

    However, if the target window is on a different virtual desktop it seems that using TreeWalker on the AutomationElement.RootElement will not find the target.

    The code I'm using now to get my target window (while it's on the same virtual desktop):

     public static AutomationElementCollection FindByMultipleConditions(AutomationElement anElement) { if (anElement == null) { throw new ArgumentException(); } Condition conditions = new AndCondition( new PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Pane), new PropertyCondition(AutomationElement.IsContentElementProperty, true), new PropertyCondition(AutomationElement.IsControlElementProperty, true), new PropertyCondition(AutomationElement.IsKeyboardFocusableProperty, false), new PropertyCondition(AutomationElement.IsEnabledProperty, true), new PropertyCondition(AutomationElement.ClassNameProperty, "Chrome_WidgetWin_0") ); AutomationElementCollection elementCollection = anElement.FindAll(TreeScope.Children, conditions); return elementCollection; } 

    I'm passing a:

     AutomationElement desktopAE = AutomationElement.RootElement 

    to this method, and this seems to be granular enough to always target the specific window I'm interested in, but it returns nothing if my target window is moved to a different virtual desktop.

    Is this a limitation of using the UI Automation API to accomplish my task? Is there a way to iterate through each virtual desktop while searching for my target window or should I try a different way of approaching this?

    Thanks!

    EDIT: I asked this question on StackOverflow and it seems I have 2 options at getting the desired functionality -

    a) Use this Github repo to have my program switch virtual desktops if the target application is not found on the current virtual desktop

    b) Open my program on the same virtual desktop as the target application every time

    I was hoping there was another way to do this but it seems that the UI Automation API .RootElement method will only return a hierarchy of the current virtual desktop, not all virtual desktops as a hierarchy.

    submitted by /u/blown-upp
    [link] [comments]

    No comments:

    Post a Comment