AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Comandiux - File Properties etc. ... [CMD]

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources
View previous topic :: View next topic  
Author Message
BoBo
Guest





PostPosted: Wed Jan 05, 2005 11:57 am    Post subject: Comandiux - File Properties etc. ... [CMD] Reply with quote

Quote:

Comandiux © treeumph Y2k5.

Comandiux parameters:

On command line type command and its parameters eg: /wnc Notepad "Untitled - Notepad"

General purpose:
/??? - ask, next parameter is text followed by another commands, if answer is NO, program ends
/BEEP - PC speaker beep
/BEPL - play windows default beep
/WAPL - play wav file
/MVOLUME:0-65535 - set master volume
/SAVER - Run Screen Saver
/SHOWDESK - Show Desktop
/RESTDESK - Restore desktop windows

/NMLO - Set Num Lock On (only on WinNT / Win2k / XP)
/NOW file text - Write date, time and text to file ("-" - means no text)

/MOFF! - Turn Monitor OFF. Use Carefully!
/MON! - Turn Monitor ON

/UNTIL 22:30 - Wait until time specified in 24 hour format, continues by next parameter
/VWAIT:120 text - Show Wait window with text, next command follows
/WAIT:5 - Wait 5 seconds, unvisible
/CYCLE:20 - repeat action from next parameter, timeout Seconds/10
not working with file operations (copy, delete, move, run, execute)

/MEMFREE:10 - free 10% or RAM
/.MANIFEST - create Comandiux .Manifest file for Windows XP
/REGISTEREXE - register Comandiux program in registry path
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\Cax.exe
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\Cax.exe

/SVC~I - install Comandiux service, manual start
/SVC~IA - install Comandiux service, automatic start
/SVC~R - run as service
/SVC~U - uninstall Comandiux service
/SVC~NAME:name - service name to install/uninstall
/SVC~DISP:name - service display name to install/uninstall
/SVC~PARAM - parameters used to start service (all strings after this parameter are parsed as service parameters)
/SVC~I /SVC~NAME:MyService /SVC~DISP:"My first service" /SVC~PARAM /svc~r /rumw program.exe parameter_one parameter_two
/SVC~U /SVC~NAME:MyService
in registry \\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService, you can change other service parameters

Windows / machine controlling:
/DWH - Hibernate computer
/DAWH - Hibernate with ask
/DWC - Close Windows
/DAWC - Close windows with ask
/LOCKW - Lock Workstation
/DWL - Log off
/DAWL - Log off with ask
/DFL - Force Log Off
/DAFL - Force Log Off with ask
/DWR - Reboot computer
/DAWR - Reboot computer with ask
/DFR - Force reboot
/DAFR - Force reboot with ask
/DWS - Suspend computer
/DAWS - Suspend with ask
/DWNP - ShutDown, No Power Off
/DHFS - ShutDown Force If Hung
/DAHFS - ShutDown Force If Hung with Ask
/DAFS - Force ShutDown with ask !!!
/DFS - Force ShutDown !!!
/SHUTDOWNINIT - initiate system shutdown: /shutdowninit machine timeout message forceY/N rebootY/N
/shutdowninit SERVER 230 "SERVER will reboot in 230 seconds" N Y
/SHUTDOWNABORT - abort system shutdown: /shutdownabort machine ("-" means local machine)


Message boxes:
/MSG - Messagebox "OK" - returns result
/MSC - Messagebox "OK Cancel"
/MSR - Messagebox "Abort Retry Ignore"
/MSN - Messagebox "Yes No Cancel"
/MSY - Messagebox "Yes No"
/MSRC - Messagebox "Retry Cancel"


Message window:
/MSWT - Show text in message window
/MSWC - Close message window
/MSWU - Add text to message window


Aplication / windows:
/WNC - Close window (class name or "-") {window name}
/WNT - Destroy window
/WNH - Hide window
/WNS - Show window
/WND - Disable window
/WNE - Enable window
/WNM - Minimize window
/WNX - Maximize window
/WNR - Restore window
/WINLIST - show applications windows
/WINLISTA - show applications windows including windows without caption / text
/WINPRIO1-6 - set process by window priority /winprio3 Calculator (1-6 = idle, below, normal abowe, high, realtime){2,4 only on win2k, XP}
/WINTRANSP - set window transparency (0=transparent, 255 = opaque) /wintransp 180 Calc*
/WINTRCL - set window color transparent (colorvalue, prefix $0 means HEX) /wintransp $0c0c0c0 Calculator
/WINCLOSE - close all windows title matches parameter /winclose "Untitled - Notepad"
/WINDESTROY - destroy all windows title matches parameter /windestroy Untitle*
/CLASSPRIO1-6 - set process by window priority /classprio3 SciCalc (1-6 = idle, below, normal abowe, high, realtime){2,4 only on win2k, XP}
/CLASSTRANSP - set window transparency by class name (0=transparent, 255 = opaque) /classtransp 255 SciCalc
/CLASSTRCL - set window color transparent by class (colorvalue, prefix $0 means HEX) /wintransp $0c0c0c0 SciCalc
/CLASSCLOSE - close all windows class matches parameter /classclose *pad
/CLASSDESTROY - close all windows class matches parameter /classdestroy winh*
/WINMSGSEND - Send message to window and shows result(WindowName, Message, Wparam, Lparam) /WinMsgSend Calculator 16 0 0
/WINMSGPOST - Post message to window (WindowName, Message, Wparam, Lparam) /WinMsgPost Calculator 16 0 0
/CLASSMSGSEND - Send message to window and shows result(WindowClass, Message, Wparam, Lparam) /ClassMsgSend SciCalc 16 0 0
/CLASSMSGPOST - Post message to window (WindowClass, Message, Wparam, Lparam) /ClassMsgPost SciCalc 16 0 0

Program / process:
/RUN - Run apl normal
/RUM - Run apl minimized
/RUH - Run apl hidden
/RUX - Run apl maximized
/RU?W - run as previous, but wait for program ends
/VERB: - verb for ShellExecute, specify before "/RUN", (cax.exe /verb:print "c:\myfile.txt"), default is 'OPEN'
/ASUSER - run as an user, (specify: user_name domain password file) parameters eg.: /asuser myusername mydomain PaSsWoRd "C:\Program Files\Angeliux\Cax.exe /prclist"
/PRCLIST - show all running processes
/PRCSCAN - scan for all processes
/PRCPRIO1-6 - set process priority /prcprio3 calc.exe (1-6 = idle, below, normal abowe, high, realtime){2,4 only on win2k, XP}
/KILLPRC file - kill first process matches parameter /killprc notepad.exe
/KILLALL - kill all processes matches parameter /killall winh*
/KILLLAST - kill last process matches parameter /killlast *pad
/KILLID id - kill by process ID /killid 00f3
/KILLUSER name - kill all processes by user name /killuser Administ*


File, disk:
/PROP - Display properties of object
/DDEL - Delete file or dir (to Recycle Bin)
/DEL - Delete file or dir with ask (to Recycle Bin)
/REM - Remove file or dir with ask
/DREM - Remove file or dir
/CPY - Copy file or directory, (/CPY source target)
/CPA - Copy with ask
/CPD - Copy directly (no ask for overwrite, etc..)
/CPH - Copy hidden
/MVE - Move file or directory
/MVA - Move with ask
/MVD - Move directly (no ask for overwrite, etc..)
/MVH - Move hidden
/RNM - Rename file or directory
/RNA - Rename with ask
/RND - Rename directly (no ask for overwrite, etc..)
/RNH - Rename hidden
/NETA - Add network connection eg.: \\server\disk1 s:
/NETD - Delete network connection s:
/REPLACE - Replace file on next reboot, user must be in an administrator's group (/REPLACE sourcefile new_name)
/DSKEJ:x - Eject drive X:
/DSKFEJ:x - Force Eject drive X:
/DSKCL:y - Close drive Y:
/DSKFCL:y - Force Close drive Y:
/DRVLIST - List all drives in system, with network user name
/GETNETUSER - get user name for network resource (\\192.168.0.1\ipc$, \\computer\share)


*******************************************************************
Angeliux controlling:
Following commands requires Angeliux loaded in memory [Shareware].

/U - Unload Angeliux from Memory
/RLD - Reload Angeliux
/WTM - Angeliux minimize
/HLT - Angeliux halt
/WTR - Angeliux restore
/WTH - Angeliux hide
/WBS - Show Blank Screen
/WTS - Show Task Window
/WAS - Show Applications Window
/IR - Set Angeliux to Load on MS Windows start
/-IR - Disable Angeliux Load on MS Windows start
/IN - Show Configuration and Create Shortcuts
/IS - Make Shortcuts in Start Menu
/-IS - Remove Shortcuts from Start Menu
/-UI - Uninstall
/SFL - Log Off
/SFD - ShutDown
/SFR - ShutDown and Reboot
/FSL - Force Load
/FSR - Force Reboot
/SHD - Hide Desktop
/SHS - Hide Start Menu
/SHB - Hide Start Button
/SSD - Show Desktop
/SSS - Show Start Menu
/SSB - Show Start Button
/SKD - Disable System Keys
/SKE - Enable System Keys
/SDT - Destroy TaskBar & StartMenu
/DCT - Set Desktop icons captions transparent
/DCS - Show Desktop Contents
/MS - Stop CD
/ME - Eject CD
/MP - Play CD


*******************************************************************

"-" means Empty parameter in some case
"\n" new line (CRLF)
"\t" TAB

HWND_BROADCAST = $FFFF

[Ctrl + F11] - show messages


Any comment / question? Contact author!

Email: Comandiux@scot.sk
Comandiux home: http://Comandiux.scot.sk

Warning! We are not guarantee any damage caused these programs!

Warning! Some features are different, depends of platform or development status!


Now, Comandiux can run as SERVICE! You can also easy create and delete any service from command line (srvany, instsrv). Just download and try.

--------------------------------------------------------------------------------
[Download]: Comandiux 1.6.4.126 (100 kB) Freeware



@ Chris & friends
Quote:
Free license of Angeliux Binarix!
Schools, public libraries, non profit organizations, freeware, GPL and OpenSource developers can register Angeliux free! For more information contact angeliux@scot.sk


Cool
Back to top
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Thu Jan 06, 2005 12:48 am    Post subject: Reply with quote

I can name a good portion of those that I could already do, but this is less hacky and oh-so-cool. Thx, BoBo! This is probably the most useful util yet!
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Wed Jan 12, 2005 5:02 pm    Post subject: Reply with quote

Heh, slight newb question here. I know what registering it in the App paths does, but what's the .Manifest, what does it do exactly, and what does running/installing it as a service do? Rolling Eyes
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Wed Jan 12, 2005 5:59 pm    Post subject: Reply with quote

Quote:
send / post any message to window or class .manifest file for Windows XP


all I've found so far ... Rolling Eyes

Quote:
and what does running/installing it as a service do


I guess I've lost you here ... Embarassed

Quote:
Unlike a Windows®-based application, services usually do not have any direct user interaction. Developers often tell me that some piece of code works from their Windows-based application but not from their service. The major problem is a lack of understanding in the "environmental" differences. The service's "environment" or outlook is very different from the "environment" a Windows-based or console application launched by the user encounters. What I mean by "environment" refers not only to the environment variables for the process; you also have to include window stations and desktops, registry hives, and loads of security.
Many Win32® technologies, such as MFC, ODBC and MAPI, can behave differently in a service, owing to the differences in the service's "environment." Let's explore why these different technologies appear to misbehave in a service.
Before I explain the "environmental" differences, let's go over what a service is, exactly. [More]
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Wed Jan 12, 2005 5:59 pm    Post subject: Reply with quote

My vague impression of the manifest is that it allows Windows XP and later to discover the OS features the app is designed to support. One of the most noteworthy is whether the app should obey XP visual styles in its GUI (an app without a manifest will use the Classic Theme visual styles even if the user is running a theme such as Luna/XP).
Back to top
View user's profile Send private message Send e-mail
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Wed Jan 12, 2005 6:21 pm    Post subject: Reply with quote

Thanks... guess I'll just go experiment a little more here.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Utilities & Resources All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group