Sign in to follow this  
Followers 0
TomCat

How to store things in ini file?

3 posts in this topic

Hi if written an little script:

HotKeySet("{F2}", "_Pause")

GLobal $Paused, $Count
$Count = 0

Func _Pause()
 ; Pause the script
            $Paused = NOT $Paused
            While $Paused
                sleep(100)
            WEnd
EndFunc;==> Pause

hotkeyset('q', "stop")

func stop()
while 1
sleep (1)
wend
endfunc

hotkeyset('w', "_Func")

While 1
Sleep(1)
WEnd

Func _Func()
    
    


While 1;Repeat for ever....
Send("{1 DOWN}")
Sleep (10)
Send("{1 UP}")
Sleep (50)
Send("{2 DOWN}")
Sleep (10)
Send("{2 UP}")
Sleep (50)
Send("{3 DOWN}")
Sleep (10)
Send("{2 UP}")
Sleep (50)
Send("{4 DOWN}")
Sleep (10)
Send("{4 UP}")
Sleep (50)
Send("{5 DOWN}")
Sleep (10)
Send("{5 UP}")
WEnd;Go back to top

EndFunc

now i want to store the keys to send the sleep time and die activation keys in an ini file but i dnot know to do this can somebody help me with an example ? :whistle:

Share this post


Link to post
Share on other sites



Hi if written an little script:

HotKeySet("{F2}", "_Pause")

GLobal $Paused, $Count
$Count = 0

Func _Pause()
; Pause the script
            $Paused = NOT $Paused
            While $Paused
                sleep(100)
            WEnd
EndFunc;==> Pause

hotkeyset('q', "stop")

func stop()
while 1
sleep (1)
wend
endfunc

hotkeyset('w', "_Func")

While 1
Sleep(1)
WEnd

Func _Func()
    
    
While 1;Repeat for ever....
Send("{1 DOWN}")
Sleep (10)
Send("{1 UP}")
Sleep (50)
Send("{2 DOWN}")
Sleep (10)
Send("{2 UP}")
Sleep (50)
Send("{3 DOWN}")
Sleep (10)
Send("{2 UP}")
Sleep (50)
Send("{4 DOWN}")
Sleep (10)
Send("{4 UP}")
Sleep (50)
Send("{5 DOWN}")
Sleep (10)
Send("{5 UP}")
WEnd;Go back to top

EndFunc

now i want to store the keys to send the sleep time and die activation keys in an ini file but i dnot know to do this can somebody help me with an example ? :whistle:

The help file can help you!

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.

Share this post


Link to post
Share on other sites

tnx i found it :whistle:

Share this post


Link to post
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
Sign in to follow this  
Followers 0