oemript Posted April 29, 2018 Share Posted April 29, 2018 I would like to know on how to logon different window user using AutoIT. 1) window > switch to user (AccountB) under existing user (AccountA) 2) Logon AccountB 3) window > switch to user (AccountA) under existing user (AccountB) Does anyone have any suggestions? Thanks in advance for any suggestions Link to comment Share on other sites More sharing options...
orbs Posted April 29, 2018 Share Posted April 29, 2018 short answer: you can't. unless you're talking about a GUI-oriented VM viewer, and even then it's not always possible. and considering what you are asking falls short of malicious (bypass Windows security), i doubt you'll get any help before you are asked to provide more information. long answer: you don't need to. whatever goal you are trying to achieve, there is probably a better to do it without secondary logon. Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 29, 2018 Moderators Share Posted April 29, 2018 oemript, 2 hours ago, orbs said: considering what you are asking falls short of malicious (bypass Windows security), i doubt you'll get any help before you are asked to provide more information Too right. A detailed explanation of what you are trying to do is required before this thread goes any further. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
oemript Posted April 29, 2018 Author Share Posted April 29, 2018 2 hours ago, Melba23 said: oemript, Too right. A detailed explanation of what you are trying to do is required before this thread goes any further. M23 A program can only be run under 1 user account for 1 instance only, so I need to run a program under different user account, which can be done on 2 separated PCs without any problem, but if I would like to run 2 programs at the same time under a single PC, which requires to logon 2 different user accounts. Another user account need to be logon manually everyday, if any approach to logon another account to solve this manual task, that would be great. Does anyone have any suggestions? Thanks, to everyone very much for any suggestions (^v^) Link to comment Share on other sites More sharing options...
Subz Posted April 29, 2018 Share Posted April 29, 2018 Have you looked at the RunAs functions? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted April 29, 2018 Moderators Share Posted April 29, 2018 oemript, Quote I need to run a program under different user account And just why exactly? Your explanation was very detailed on what you want to do, but I want to understand why. Subz, In future, when a Mod is querying a thread please stay out until the all-clear is given. Thanks in advance for your cooperation. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
aa2zz6 Posted April 29, 2018 Share Posted April 29, 2018 5 hours ago, oemript said: A program can only be run under 1 user account for 1 instance only, so I need to run a program under different user account, which can be done on 2 separated PCs without any problem, but if I would like to run 2 programs at the same time under a single PC, which requires to logon 2 different user accounts. Another user account need to be logon manually everyday, if any approach to logon another account to solve this manual task, that would be great. Does anyone have any suggestions? Thanks, to everyone very much for any suggestions (^v^) If I'm reading this correctly, I tried creating multiple users on a simple machine thinking I could possible run a single script on a certain program but I was disappointed finding out that it was impossible. I resorted to using VMware Workstation to run multiple sessions. Link to comment Share on other sites More sharing options...
oemript Posted June 2, 2018 Author Share Posted June 2, 2018 I would like to switch user from User_A to User_B and would it be possible to implement using AutoIT? The task involved as shown below 1) switch user under window 2) select User_B 3) input password and click for logon Does anyone have any suggestions? Thanks in advance for any suggestions Link to comment Share on other sites More sharing options...
orbs Posted June 2, 2018 Share Posted June 2, 2018 and how is this different from your previous topic? Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 2, 2018 Moderators Share Posted June 2, 2018 oemript, I agree with orbs. And seeing how you posted this in a lesser frequented section of the site (perhaps hoping that no-one would notice?) and have still failed to offer any sensible reason as to why this is required I am locking the thread. Do NOT start another one on the same subject. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts