BinConvert -- Binary Conversion
Loop ToolTip, % BinConvert(A_Index)
This function can be used to convert any decimal number into it's binary equivalent.
These are my functions and libraries. They are NOT compiled executables and are for AutoHotkey developers only, AutoHotkey is required to use them.
Loop ToolTip, % BinConvert(A_Index)
This function can be used to convert any decimal number into it's binary equivalent.
Loop
{
ToolTip % "Results= " EvenOdd(A_Index) "Index= " A_Index
Sleep 500
}
This function will return 1 if the number it is given is an odd number and 2 if it is an even number.
Button_Add(100, 100, 100, 100, "Button", 1, "Button") Button_Add(200, 100, 100, 100, "Button2", 0) Button_Add(300, 100, 100, 100, "Button3", "C:\Windows\GreenStone.bmp") Return Button: Button_Hide(3) Return Button2: Button_Show(3) Return Button3: ExitApp
This group of functions can be used to create buttons, not bound by a GUI, anywhere on the screen. It can create regular buttons, invisible buttons, or use images as buttons.
Button_Add(X, Y, Width, Height, "Label" [, StyleNum, "ButtonText"]
X, Y --- The X and Y coordinates of the screen where you want the most top-left part of the button to appear.
Width, Height --- The width and heighth of the button.
Label --- The label in which you want to run apon pushing the button.
StyleNum --- If this parameter is omitted, the default is set to 1.
0 = Specify 0 if you would like the button to appear completely invisible.
1 = Specify 1 if you would like the button to appear as a normal button would in a GUI window.
Path = Provide the path to an image you would like the button to appear as. Must specify an absolute path.
ButtonText --- If StyleNum is specified as 1, this is the text that will appear on the button, otherwise leave this blank.
Remarks: This function uses GUI numbers starting at 99. Each call of the function uses the next number preseding the last. For example, if you were to have 5 buttons created, GUI number's 94, 95, 96, 97, 98, and 99 will be unusable.
Also, the ButtonNum%Number of button%, contains the GUI count number of that button. This is useful for when you want to change the font size of the button's text. For example, ButtonNum1 would contain 99, since the first button that is created uses the 99th GUI count number and ButtonNum2 would contain 98, since it uses the 98th GUI count number.
Button_Hide/Show(ButtonNumber)
ButtonNumber --- The number of the button, in order of creation, you want to hide or show.