Jump to content

Matters on conf.ini...


Recommended Posts

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!

Edited by jane88borj
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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

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
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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...