mijaysen Posted August 9, 2010 Posted August 9, 2010 (edited) Hi allIm trying to make a script that runs a instance of my program completely hidden . The only problem i am facing is that the program are showed at the processline. I am using this script:#RequireAdmin Run("QemuManager.exe") WinWait("Qemu Manager") WinSetState("Qemu Manager","Hardware",@SW_HIDE) Edited August 9, 2010 by mijaysen
PsaltyDS Posted August 9, 2010 Posted August 9, 2010 Why is that a problem? It's unobtrusive, out of the way, and being minimally visible makes it at least less likely to be malicious. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
mijaysen Posted August 9, 2010 Author Posted August 9, 2010 Why is that a problem? It's unobtrusive, out of the way, and being minimally visible makes it at least less likely to be malicious.Becuse as the headline says "Run completly HIDDEN exe" and this is not completly hidden. I just want to know how to make it completly HIDDEN, if possible ofcourse ....
mijaysen Posted August 9, 2010 Author Posted August 9, 2010 Yes this is possible. check out hide.exeWhat is hide.exe ? And how du i use it ?
Bert Posted August 9, 2010 Posted August 9, 2010 Look at making a GUI in the helpfile. You can use Opt...to do what you need. The Vollatran project My blog: http://www.vollysinterestingshit.com/
Developers Jos Posted August 9, 2010 Developers Posted August 9, 2010 (edited) What is hide.exe ? And how du i use it ?Have you even looked at what was posted and tried to read what is described there?Anyway, doubt if that will do anything for you when the program you run is not a console program.So why are you so hot in making QemuManager.exe run hidden? Edited August 9, 2010 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
mijaysen Posted August 9, 2010 Author Posted August 9, 2010 (edited) Have you even looked at what was posted and tried to read what is described there?Anyway, doubt if that will do anything for you when the program you run is not a console program.So why are you so hot in making QemuManager.exe run hidden?I have been searhing, reading and trying to learn this, and i just want it for learning porpuse ... Edited August 9, 2010 by mijaysen
Ascend4nt Posted August 9, 2010 Posted August 9, 2010 mijaysen, when you say 'processline' do you mean hidden from the Taskbar or hidden from Task Manager's processes list? Its confusing because the picture you show points to a window button/tab on the Taskbar. If all you want is to hide THAT, then applying @SW_HIDE will of course hide that icon. If it doesn't seem to be working, you should make sure you are getting a window handle first (use WinGetHandle(), check the result - maybe get rid of the 2nd param "Hardware"). Otherwise, hiding a process so that it doesn't even show in Task Manager is a whole different can of worms that you really shouldn't mess with. My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code)
mijaysen Posted August 10, 2010 Author Posted August 10, 2010 mijaysen, when you say 'processline' do you mean hidden from the Taskbar or hidden from Task Manager's processes list? Its confusing because the picture you show points to a window button/tab on the Taskbar. If all you want is to hide THAT, then applying @SW_HIDE will of course hide that icon. If it doesn't seem to be working, you should make sure you are getting a window handle first (use WinGetHandle(), check the result - maybe get rid of the 2nd param "Hardware").Otherwise, hiding a process so that it doesn't even show in Task Manager is a whole different can of worms that you really shouldn't mess with.Yes i only mean at the TaskBar ... I think its becuse that qemumanager.exe also automaticly run qemu.exe with parameters ...The @SW_HIDE do hide the window but as shown in picture it dossent hide from the taskbar ...?
lordicast Posted August 10, 2010 Posted August 10, 2010 This is like when Yoda shook his head when they wanted to teach anakin the ways of the force.. [Cheeky]Comment[/Cheeky]
Bert Posted August 10, 2010 Posted August 10, 2010 Grasshopper - I made an error in showing you what you needed. Let me correct my mistake. The following example will show you what you need. #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt("TrayIconHide", 1) $Form1 = GUICreate("Form1", 296, 175, 192, 114, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE)) $Button1 = GUICtrlCreateButton("Click to close me", 104, 88, 89, 33) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 Exit EndSwitch WEnd The Vollatran project My blog: http://www.vollysinterestingshit.com/
mijaysen Posted August 11, 2010 Author Posted August 11, 2010 Grasshopper - I made an error in showing you what you needed. Let me correct my mistake. The following example will show you what you need. #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt("TrayIconHide", 1) $Form1 = GUICreate("Form1", 296, 175, 192, 114, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE)) $Button1 = GUICtrlCreateButton("Click to close me", 104, 88, 89, 33) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 Exit EndSwitch WEnd What is this ? And how do i use it ?
Bert Posted August 11, 2010 Posted August 11, 2010 You asked how to run your GUI and hide it on the task bar. The example I provided does exactly that. When you ask "What is this?" I'm answering you with an example of how to do what you originally ask for in your first post. When you ask "How do I use it", well, unless you post your code of your project, I can't help you much more. The only thing I can tell you is look at is $Form1 = GUICreate("Form1", 296, 175, 192, 114, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE)) and you will see how I set the extended style. You will need to read the helpfile to understand more. If you are new to AutoIt, and you act like you are, then take the AutoIt 1 2 3 class located in example scripts. The Vollatran project My blog: http://www.vollysinterestingshit.com/
mijaysen Posted August 11, 2010 Author Posted August 11, 2010 You asked how to run your GUI and hide it on the task bar. The example I provided does exactly that. When you ask "What is this?" I'm answering you with an example of how to do what you originally ask for in your first post. When you ask "How do I use it", well, unless you post your code of your project, I can't help you much more. The only thing I can tell you is look at is $Form1 = GUICreate("Form1", 296, 175, 192, 114, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE)) and you will see how I set the extended style. You will need to read the helpfile to understand more. If you are new to AutoIt, and you act like you are, then take the AutoIt 1 2 3 class located in example scripts.I have postet my coded . Its at the top ... But i try yo play a little with it ...
mijaysen Posted August 11, 2010 Author Posted August 11, 2010 I have ried to just use this " Opt("TrayIconHide", 1) " no error but dont works ? Isnt that what u want me to do ?
Bert Posted August 11, 2010 Posted August 11, 2010 (edited) Simple question - Did you make the program you are trying to hide in AutoIt? Yes or No.edit - In other words do you have the source code to QemuManager.exe? Yes or noI see what QemuManager.exe does after I googled it. What you have in mind is change how the window is shown. You want it to be shown in toolbar mode instead of the normal mode. The only thing I can suggest and I will not be of much further help is looking at the command _WinAPI_SetWindowLong Edited August 11, 2010 by MPH The Vollatran project My blog: http://www.vollysinterestingshit.com/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now