Jump to content

Trying update script


Recommended Posts

$sStr = "True"
$bStr = _StringToBoolean($sStr)

ConsoleWrite(StringFormat("IsBool($sStr) = %i\nIsBool($bStr) = %i\n", IsBool($sStr), IsBool($bStr)))

Func _StringToBoolean($sString)
    Switch $sString
        Case "True"
            Return True
        Case "False"
            Return False
    EndSwitch
    
    Return SetError(1, 0, -1)
EndFunc

?

:D

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

whenever i run my code it says Unknown function name pointing to _StringToBoolean. im running the latest beta. this code generated 6 errors, btw

Func _nTrialCheck_Proc()
; key in registry
Global Const $trialKey = "whatever"

; Number of days to allow
Global Const $timeLimit = 14

RegRead($trialKey,"id")
If @ERROR Then
    RegWrite($trialKey,"id","REG_BINARY",StringToBinary(_BooleanToString(false)))
EndIf

$expired = _StringToBoolean(BinaryToString("0x"&RegRead($trialKey,"id")))
If $expired Then
    Global $trialexpired = True
    About()
EndIf

; Check if registry key for first run exists; if not, create it with current date and time
RegRead($trialKey,"fiRun")
If @ERROR Then
    RegWrite($trialKey,"fiRun","REG_BINARY",StringToBinary(_NowCalc()))
EndIf

; Retrieve first run time
$fiRun = BinaryToString("0x"&RegRead($trialKey,"fiRun"))
; Compare first run time with current time & date; if negative (current date is earlier than first run)
$timeDiff = _DateDiff('s',$fiRun,_NowCalc())
If $timeDiff < 0 Then
    RegWrite($trialKey,"id","REG_BINARY",StringToBinary(_BooleanToString(true)))

    Global $trialexpired = True
    Register()
EndIf
; Calculate number of days the script has been used; if >= the time limit
$daysUsed = _DateDiff('d',$fiRun,_NowCalc())
If $daysUsed >= $timeLimit Then
    RegWrite($trialKey,"id","REG_BINARY",StringToBinary(_BooleanToString(true)))
    Global $trialexpired = True
    About()
EndIf

; Calculate how many days remain
Global $daysRemaining = $timeLimit - $daysUsed

; Check if registry key for last run exists; if not, create it with current date and time
RegRead($trialKey,"lRun")
If @ERROR Then
    RegWrite($trialKey,"lRun","REG_BINARY",StringToBinary(_NowCalc()))
EndIf

; Compare last run time with current time; if negative (i.e. current time is earlier than last run time)
$lRun = BinaryToString("0x"&RegRead($trialKey,"lRun"))
$timeDiff = _DateDiff('s',$lRun,_NowCalc())
If $timeDiff < 0 Then
    RegWrite($trialKey,"id","REG_BINARY",StringToBinary(_BooleanToString(true)))
    Global $trialexpired = True
    About()
EndIf
EndFunc
Edited by coder09
Link to comment
Share on other sites

whenever i run my code it says Unknown function name pointing to _StringToBoolean. im running the latest beta. this code generated 6 errors, btw

Where you got this code from? It seems that this is a part of some script, and it's missing a lot of functions.

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

run this code

#include <GuiConstantsEx.au3>
#include <GuiEdit.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
#include <Constants.au3>
#include <GUIMENU.au3>
#include <_Trial.au3>

; check if date has expired
_nTrialCheck_Proc()

Global $idDelete[6], $idSave[6], $idInfo[6]
For $i = 0 To 5
    $idDelete[$i] = 1000 + $i
    $idSave[$i] = 1010 + $i
    $idInfo[$i] = 1020 + $i
Next
Global $wProcOld
Global $lastdragIP = -1
Dim $hInput_GUI[50], $Input[50], $wProcsOld[6], $InputMenu[6], $hMenu[6], $idDelete[6], $idSave[6], $ifInfo[6]
Dim $button
$gui = GUICreate("", 400, 400)

$button = GUICtrlCreateButton("", 50, 50, 50, 20)
GUISetState()

$wProcHandle = DllCallbackRegister("_WindowProc", "ptr", "hwnd;uint;wparam;lparam")

$toDelete = 0
$iW = -1
Global $totCreated = 0
While 1
    $msg = GUIGetMsg(1)
    $iW = -1
    For $i = 0 To 5
        If $msg[1] = $hInput_GUI[$i] Then
            $iW = $i
            ExitLoop
        EndIf
    Next
    If $iW >= 0 Or $msg[1] = $gui Then
        Switch $msg[0]
            Case $GUI_EVENT_CLOSE
                Exit
            Case $button
                If $totCreated < 6 Then
                    For $i = 0 To 5
                        If $hInput_GUI[$i] = 0 Then
                            createNextdragIP($i)
                            $totCreated += 1
                            ExitLoop
                        EndIf
                    Next
                Else
                    MsgBox(262144, "MAX Reached", "You are only allowed 6 notes!")
                EndIf
            Case $GUI_EVENT_PRIMARYDOWN


        EndSwitch
    EndIf


WEnd
DllCallbackFree($wProcHandle)

Func createNextdragIP($nw)

    $start = WinGetPos($gui)
    $hInput_GUI[$nw] = GUICreate("No. " & $nw + 1, 120, 22, 300 + 25 * $nw, 300 + 25 * $nw, BitOR($WS_POPUP, $WS_SIZEBOX), $WS_EX_TOOLWINDOW)
    $Input[$nw] = GUICtrlCreateEdit("", 0, 0, 120, 22, BitOR($ES_AUTOVSCROLL, $ES_AUTOHSCROLL, $ES_WANTRETURN))
    GUICtrlSetResizing(-1, $GUI_DOCKAUTO)

    $hMenu = _GUICtrlMenu_CreatePopup()
    $InputMenu[$nw] = $hMenu

    _GUICtrlMenu_AddMenuItem($hMenu, "Delete", $idDelete[$nw])
    _GUICtrlMenu_AddMenuItem($hMenu, "Save", $idSave[$nw])
    _GUICtrlMenu_AddMenuItem($hMenu, "Info", $idInfo[$nw])
    ConsoleWrite("90" & @CRLF)
    GUISetState()

    $wProcsOld[$nw] = _WinAPI_SetWindowLong(GUICtrlGetHandle($Input[$nw]), $GWL_WNDPROC, DllCallbackGetPtr($wProcHandle))
EndFunc;==>createNextdragIP


Func _WindowProc($hWnd, $msg, $wParam, $lParam)
Local $wProcOld

    For $i = 0 To UBound($Input) - 1
        If GUICtrlGetHandle($Input[$i]) = $hWnd Then
            Switch $msg
                Case $WM_CONTEXTMENU
                    _GUICtrlMenu_TrackPopupMenu($InputMenu[$i], $wParam)
                    Return 0
                Case $WM_COMMAND
                    Switch $wParam
                        Case $idDelete[$i]
                            ConsoleWrite("delete" & @CRLF)
                            GUIDelete($hInput_GUI[$i])
                            $hInput_GUI[$i] = 0
                            $totCreated -= 1
                        Case $idSave[$i]
                            ConsoleWrite("-> Save" & @LF)
                        Case $idInfo[$i]
                            ConsoleWrite("-> Info" & @LF)
                    EndSwitch
            EndSwitch
            $wProcOld = $wProcsOld[$i]
            ExitLoop
        EndIf
    Next

    Local $aRet = DllCall("user32.dll", "int", "CallWindowProc", "ptr", $wProcOld, _
            "hwnd", $hWnd, "uint", $msg, "wparam", $wParam, "lparam", $lParam)
    Return $aRet[0]
EndFunc;==>_WindowProc

name this code to _Trial.au3 and put it in the same folder as the above code. when u run above code you should get the same error im getting

; function for checking the trial days and disabling everything when trial expires

Func _nTrialCheck_Proc()
; Key in registry for trial
Global Const $trialKey = "HKEY_CURRENT_USER\Software\Microsoft\InstallDr\driverIco\3D8G8D0TG73C9S047F9JH90G8QW0N0M"

; Number of days to allow
Global Const $timeLimit = 14

; Check key if program has expired; if key does not exist, set to false
RegRead($trialKey,"id")
If @ERROR Then
    RegWrite($trialKey,"id","REG_BINARY",StringToBinary(_BooleanToString(false)))
EndIf
; Retrieve if the program is expired
$expired = _StringToBoolean(BinaryToString("0x"&RegRead($trialKey,"id")))
If $expired Then
    Global $trialexpired = True
    About()
EndIf

; Check if registry key for first run exists; if not, create it with current date and time
RegRead($trialKey,"fiRun")
If @ERROR Then
    RegWrite($trialKey,"fiRun","REG_BINARY",StringToBinary(_NowCalc()))
EndIf

; Retrieve first run time
$fiRun = BinaryToString("0x"&RegRead($trialKey,"fiRun"))
; Compare first run time with current time & date; if negative (current date is earlier than first run)
$timeDiff = _DateDiff('s',$fiRun,_NowCalc())
If $timeDiff < 0 Then
    RegWrite($trialKey,"id","REG_BINARY",StringToBinary(_BooleanToString(true)))

    Global $trialexpired = True
    Register()
EndIf
; Calculate number of days the program hs been used; if >= the time limit
$daysUsed = _DateDiff('d',$fiRun,_NowCalc())
If $daysUsed >= $timeLimit Then
    RegWrite($trialKey,"id","REG_BINARY",StringToBinary(_BooleanToString(true)))
    Global $trialexpired = True
    About()
EndIf

; Calculate how many days remain for the trial
Global $daysRemaining = $timeLimit - $daysUsed

; Check if registry key for last run exists; if not, create it with current date and time
RegRead($trialKey,"lRun")
If @ERROR Then
    RegWrite($trialKey,"lRun","REG_BINARY",StringToBinary(_NowCalc()))
EndIf

; Compare last run time with current time; if negative (i.e. current time is earlier than last run time)
$lRun = BinaryToString("0x"&RegRead($trialKey,"lRun"))
$timeDiff = _DateDiff('s',$lRun,_NowCalc())
If $timeDiff < 0 Then
    RegWrite($trialKey,"id","REG_BINARY",StringToBinary(_BooleanToString(true)))
    Global $trialexpired = True
    About()
EndIf
EndFunc
Edited by coder09
Link to comment
Share on other sites

run this code

#include <GuiConstantsEx.au3>
#include <GuiEdit.au3>
#include <WindowsConstants.au3>
#include <WinAPI.au3>
#include <Constants.au3>
#include <GUIMENU.au3>
#include <_Trial.au3>

; check if date has expired
_nTrialCheck_Proc()

Global $idDelete[6], $idSave[6], $idInfo[6]
For $i = 0 To 5
    $idDelete[$i] = 1000 + $i
    $idSave[$i] = 1010 + $i
    $idInfo[$i] = 1020 + $i
Next
Global $wProcOld
Global $lastdragIP = -1
Dim $hInput_GUI[50], $Input[50], $wProcsOld[6], $InputMenu[6], $hMenu[6], $idDelete[6], $idSave[6], $ifInfo[6]
Dim $button
$gui = GUICreate("", 400, 400)

$button = GUICtrlCreateButton("", 50, 50, 50, 20)
GUISetState()

$wProcHandle = DllCallbackRegister("_WindowProc", "ptr", "hwnd;uint;wparam;lparam")

$toDelete = 0
$iW = -1
Global $totCreated = 0
While 1
    $msg = GUIGetMsg(1)
    $iW = -1
    For $i = 0 To 5
        If $msg[1] = $hInput_GUI[$i] Then
            $iW = $i
            ExitLoop
        EndIf
    Next
    If $iW >= 0 Or $msg[1] = $gui Then
        Switch $msg[0]
            Case $GUI_EVENT_CLOSE
                Exit
            Case $button
                If $totCreated < 6 Then
                    For $i = 0 To 5
                        If $hInput_GUI[$i] = 0 Then
                            createNextdragIP($i)
                            $totCreated += 1
                            ExitLoop
                        EndIf
                    Next
                Else
                    MsgBox(262144, "MAX Reached", "You are only allowed 6 notes!")
                EndIf
            Case $GUI_EVENT_PRIMARYDOWN


        EndSwitch
    EndIf


WEnd
DllCallbackFree($wProcHandle)

Func createNextdragIP($nw)

    $start = WinGetPos($gui)
    $hInput_GUI[$nw] = GUICreate("No. " & $nw + 1, 120, 22, 300 + 25 * $nw, 300 + 25 * $nw, BitOR($WS_POPUP, $WS_SIZEBOX), $WS_EX_TOOLWINDOW)
    $Input[$nw] = GUICtrlCreateEdit("", 0, 0, 120, 22, BitOR($ES_AUTOVSCROLL, $ES_AUTOHSCROLL, $ES_WANTRETURN))
    GUICtrlSetResizing(-1, $GUI_DOCKAUTO)

    $hMenu = _GUICtrlMenu_CreatePopup()
    $InputMenu[$nw] = $hMenu

    _GUICtrlMenu_AddMenuItem($hMenu, "Delete", $idDelete[$nw])
    _GUICtrlMenu_AddMenuItem($hMenu, "Save", $idSave[$nw])
    _GUICtrlMenu_AddMenuItem($hMenu, "Info", $idInfo[$nw])
    ConsoleWrite("90" & @CRLF)
    GUISetState()

    $wProcsOld[$nw] = _WinAPI_SetWindowLong(GUICtrlGetHandle($Input[$nw]), $GWL_WNDPROC, DllCallbackGetPtr($wProcHandle))
EndFunc;==>createNextdragIP


Func _WindowProc($hWnd, $msg, $wParam, $lParam)
Local $wProcOld

    For $i = 0 To UBound($Input) - 1
        If GUICtrlGetHandle($Input[$i]) = $hWnd Then
            Switch $msg
                Case $WM_CONTEXTMENU
                    _GUICtrlMenu_TrackPopupMenu($InputMenu[$i], $wParam)
                    Return 0
                Case $WM_COMMAND
                    Switch $wParam
                        Case $idDelete[$i]
                            ConsoleWrite("delete" & @CRLF)
                            GUIDelete($hInput_GUI[$i])
                            $hInput_GUI[$i] = 0
                            $totCreated -= 1
                        Case $idSave[$i]
                            ConsoleWrite("-> Save" & @LF)
                        Case $idInfo[$i]
                            ConsoleWrite("-> Info" & @LF)
                    EndSwitch
            EndSwitch
            $wProcOld = $wProcsOld[$i]
            ExitLoop
        EndIf
    Next

    Local $aRet = DllCall("user32.dll", "int", "CallWindowProc", "ptr", $wProcOld, _
            "hwnd", $hWnd, "uint", $msg, "wparam", $wParam, "lparam", $lParam)
    Return $aRet[0]
EndFunc;==>_WindowProc

name this code to _Trial.au3 and put it in the same folder as the above code. when u run above code you should get the same error im getting

; function for checking the trial days and disabling everything when trial expires

Func _nTrialCheck_Proc()
; Key in registry for trial
Global Const $trialKey = "HKEY_CURRENT_USER\Software\Microsoft\InstallDr\driverIco\3D8G8D0TG73C9S047F9JH90G8QW0N0M"

; Number of days to allow
Global Const $timeLimit = 14

; Check key if program has expired; if key does not exist, set to false
RegRead($trialKey,"id")
If @ERROR Then
    RegWrite($trialKey,"id","REG_BINARY",StringToBinary(_BooleanToString(false)))
EndIf
; Retrieve if the program is expired
$expired = _StringToBoolean(BinaryToString("0x"&RegRead($trialKey,"id")))
If $expired Then
    Global $trialexpired = True
    About()
EndIf

; Check if registry key for first run exists; if not, create it with current date and time
RegRead($trialKey,"fiRun")
If @ERROR Then
    RegWrite($trialKey,"fiRun","REG_BINARY",StringToBinary(_NowCalc()))
EndIf

; Retrieve first run time
$fiRun = BinaryToString("0x"&RegRead($trialKey,"fiRun"))
; Compare first run time with current time & date; if negative (current date is earlier than first run)
$timeDiff = _DateDiff('s',$fiRun,_NowCalc())
If $timeDiff < 0 Then
    RegWrite($trialKey,"id","REG_BINARY",StringToBinary(_BooleanToString(true)))

    Global $trialexpired = True
    Register()
EndIf
; Calculate number of days the program hs been used; if >= the time limit
$daysUsed = _DateDiff('d',$fiRun,_NowCalc())
If $daysUsed >= $timeLimit Then
    RegWrite($trialKey,"id","REG_BINARY",StringToBinary(_BooleanToString(true)))
    Global $trialexpired = True
    About()
EndIf

; Calculate how many days remain for the trial
Global $daysRemaining = $timeLimit - $daysUsed

; Check if registry key for last run exists; if not, create it with current date and time
RegRead($trialKey,"lRun")
If @ERROR Then
    RegWrite($trialKey,"lRun","REG_BINARY",StringToBinary(_NowCalc()))
EndIf

; Compare last run time with current time; if negative (i.e. current time is earlier than last run time)
$lRun = BinaryToString("0x"&RegRead($trialKey,"lRun"))
$timeDiff = _DateDiff('s',$lRun,_NowCalc())
If $timeDiff < 0 Then
    RegWrite($trialKey,"id","REG_BINARY",StringToBinary(_BooleanToString(true)))
    Global $trialexpired = True
    About()
EndIf
EndFunc
You failed to to copy these two functions from the original source. Neither of which are standard Autoit function

You will also need to create an About() function and a Register() function

Other than that there is nothing to update for either AutoIt 3.3.0.0 or Beta 3.3.1.1

Func _StringToBoolean($sString)
    Switch $sString
        Case "True"
            Return True
        Case "False"
            Return False
    EndSwitch

    Return SetError(1, 0, -1)
EndFunc  ;==>_StringToBoolean

Func _BooleanToString ( $boolVal )
    If $boolVal Then
        Return "True"
    Else
        Return "False"
    EndIf
    EndFunc

    Func About()
    EndFunc

Func Register()
EndFunc

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Link to comment
Share on other sites

when u run above code you should get the same error im getting

So? How is that related to your OP? I gave you the function you asked for.

P.S

And you not answering to my question, this is your code? then you should know why it's not working, you got undeclared functions, you should have these functions in your script.

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

Func _BooleanToString ( $boolVal )

Can be just String($boolVal) :D

Func _BooleanToString($boolVal)
    Return String($boolVal)
EndFunc

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Link to comment
Share on other sites

Yes it's my code. This is just an example/dummy I used to try to solve my problem. I know about the undeclared functions which are actually not undeclared in my 2200+ line script which I know you don't feel like looking through...

If you have the missing functions elsewhere in your script then you script will run just fine using the current production or beta versions of AutoIt.

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

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