jane88borj Posted February 21, 2008 Share Posted February 21, 2008 (edited) HELLO GUYS!I hope you could help us with this one.-------------------------------------------Without a Trace>WaT is a program that enables you to hide windows with the use of a simple hotkey combination, and can bring them up again easily with another one. WaT is also capable of locking your desktop with password protection>It is an open source software.>The open source software can be found in this site:http://sourceforge.net/project/showfiles.php?group_id=184915>Problem:The first time we run the autoit script, there was a created file named "conf.ini"...Below is a sample output of the file named "conf.ini":-------------------------------------------[main]firstrun=nopass=6912FDAE8F6694655A50F673hide=zshow=xinterface=flock=l-------------------------------------------> This file must then be deleted in order to run again the program for changes in setting hotkeys for hiding and showing application windows,interface displaying, and desktop-locking. Otherwise, nothing happens if the script was double-clicked.>If this is the case, it will always be time-consuming for the users to delete the file. >We can hardly implement how to handle this matter. >That's all. thanks! Edited February 21, 2008 by jane88borj Link to comment Share on other sites More sharing options...
au3scr Posted February 21, 2008 Share Posted February 21, 2008 nice link , thanks Link to comment Share on other sites More sharing options...
martin Posted February 21, 2008 Share Posted February 21, 2008 HELLO GUYS! I hope you could help us with this one. ------------------------------------------- Without a Trace >WaT is a program that enables you to hide windows with the use of a simple hotkey combination, and can bring them up again easily with another one. WaT is also capable of locking your desktop with password protection >It is an open source software. >The open source software can be found in this site: http://sourceforge.net/project/showfiles.php?group_id=184915 >Problem: The first time we run the autoit script, there was a created file named "conf.ini"... Below is a sample output of the file named "conf.ini": ------------------------------------------- [main] firstrun=no pass=6912FDAE8F6694655A50F673 hide=z show=x interface=f lock=l ------------------------------------------- > This file must then be deleted in order to run again the program for changes in setting hotkeys for hiding and showing application windows,interface displaying, and desktop-locking. Otherwise, nothing happens if the script was double-clicked. >If this is the case, it will always be time-consuming for the users to delete the file. >We can hardly implement how to handle this matter. >That's all. thanks! I had a quick look but I haven't tried running the script. The first time you run the script it will show the gui. The next time you run the script it will not show the gui until you use the hot key sequence Ctr Alt f. I don't see that you need to delete the ini file. Maybe I didn't understand your problem though. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
BrettF Posted February 21, 2008 Share Posted February 21, 2008 LOL! Its like spam, and a feature request, and as far as I know, this person wants to steal the code, and then pass it off as his own. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
jane88borj Posted February 21, 2008 Author Share Posted February 21, 2008 I had a quick look but I haven't tried running the script.The first time you run the script it will show the gui. The next time you run the script it will not show the gui until you use the hot key sequence Ctr Alt f. I don't see that you need to delete the ini file. Maybe I didn't understand your problem though.Thanks for your tym and effort to take a visit at the link.Anyway, you're right that the first time you run the script it will show the gui. Then, there are three tabs..The next time you run the script it will not show the gui until you use the hot key sequence Ctr Alt f. Then, for example, you want to change the hotkeys you set at first, there's a need to delete the conf.ini in order for you to run the script and so that the gui will show..Otherwise, nothing happens. The conf.ini file was created in the same place to where the autoit script was stored.If you have time and run it, please let me know...Thanks Link to comment Share on other sites More sharing options...
martin Posted February 21, 2008 Share Posted February 21, 2008 Thanks for your tym and effort to take a visit at the link.Anyway, you're right that the first time you run the script it will show the gui. Then, there are three tabs.. The next time you run the script it will not show the gui until you use the hot key sequence Ctr Alt f. Then, for example, you want to change the hotkeys you set at first, there's a need to delete the conf.ini in order for you to run the script and so that the gui will show..Otherwise, nothing happens. The conf.ini file was created in the same place to where the autoit script was stored. If you have time and run it, please let me know... ThanksStill haven't run the script. The problem is, I think, that when you change the hotkeys they are saved to the ini file but they don't come into effect untill the next time you run the script or, as the message box says, after a reboot. I might be wrong, but in case I'm not then this version of the RegisterHotkeys function should fix it. Func RegisterHotkeys() ;first unregister the old hotkeys HotKeySet($hk_hide) HotKeySet($hk_show) HotKeySet($hk_interface) HotKeySet($hk_lock) ;read the new hotkeys and save the new settings To Ini file If Not BitAND(GUICtrlRead($c_combo1), 0) Then $hk_hide = GUICtrlRead($c_combo1) $hk_show = GUICtrlRead($c_combo2) $hk_interface = GUICtrlRead($c_combo3) $hk_lock = GUICtrlRead($c_combo4) IniWrite($confini, "main", "hide", $hk_hide) IniWrite($confini, "main", "show", $hk_show) IniWrite($confini, "main", "interface", $hk_interface) IniWrite($confini, "main", "lock", $hk_lock) WinSetOnTop("WaT - 'Without A Trace'", "", 0) MsgBox(0, "WaT - 'Without A Trace'", "Hotkeys are set now") WinSetOnTop("WaT - 'Without A Trace'", "", 1) EndIf ;now set the hotkeys again HotKeySet($hk_hide, "hide") HotKeySet($hk_show, "unhide") HotKeySet($hk_interface, "gui") HotKeySet($hk_lock, "lockout") EndFunc ;==>RegisterHotkeys Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
jane88borj Posted February 23, 2008 Author Share Posted February 23, 2008 Still haven't run the script. The problem is, I think, that when you change the hotkeys they are saved to the ini file but they don't come into effect untill the next time you run the script or, as the message box says, after a reboot. I might be wrong, but in case I'm not then this version of the RegisterHotkeys function should fix it. Func RegisterHotkeys() ;first unregister the old hotkeys HotKeySet($hk_hide) HotKeySet($hk_show) HotKeySet($hk_interface) HotKeySet($hk_lock) ;read the new hotkeys and save the new settings To Ini file If Not BitAND(GUICtrlRead($c_combo1), 0) Then $hk_hide = GUICtrlRead($c_combo1) $hk_show = GUICtrlRead($c_combo2) $hk_interface = GUICtrlRead($c_combo3) $hk_lock = GUICtrlRead($c_combo4) IniWrite($confini, "main", "hide", $hk_hide) IniWrite($confini, "main", "show", $hk_show) IniWrite($confini, "main", "interface", $hk_interface) IniWrite($confini, "main", "lock", $hk_lock) WinSetOnTop("WaT - 'Without A Trace'", "", 0) MsgBox(0, "WaT - 'Without A Trace'", "Hotkeys are set now") WinSetOnTop("WaT - 'Without A Trace'", "", 1) EndIf ;now set the hotkeys again HotKeySet($hk_hide, "hide") HotKeySet($hk_show, "unhide") HotKeySet($hk_interface, "gui") HotKeySet($hk_lock, "lockout") EndFunc ;==>RegisterHotkeys > Thanks for replying. Anyways, there's a need for a reboot. But, our problem is on how to change the keys set to hide, show , desktop locking,and showing of interface even without a need for reboot. > Is this possible? > Thanks again! Link to comment Share on other sites More sharing options...
martin Posted February 23, 2008 Share Posted February 23, 2008 But, our problem is on how to change the keys set to hide, show , desktop locking,and showing of interface even without a need for reboot.> Is this possible?That is exactly what the function I posted was intended to do. Did you try it? Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
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