Jump to content

Hex Variable


Recommended Posts

You'll have to explain that a bit better, but the Hex function seems to be what you're looking for.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

Ok, so make a variable that contains that. $SomeVariable = 1

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

  • Developers

Helpfile - language reference - Datatyoes

Numbers

Numbers can be standard decimal numbers like 2, 4.566, and -7.

Scientific notation is also supported; therefore, you could write 1.5e3 instead of 1500.

Integers (whole numbers) can also be represented in hexadecimal notation by preceding the integer with 0x as in 0x409 or 0x4fff (when using hex notation only 32-bit numbers are valid).

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

How did you highlight Jos?

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

  • Developers

How did you highlight Jos?

Just a Helpfile Search with "hex notation", which gives the blue-ish highlight. It is copied over with a Cut&Paste.

Jos :)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Just a Helpfile Search with "hex notation", which gives the blue-ish highlight. It is copied over with a Cut&Paste.

Jos :)

So simple! Thanks

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

$SomeVariable = 0x0045AF

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

Are you being deliberately stupid or did you not realize that was an example of how to assign a hex value to a variable? Hex A is 0xA.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

  • Moderators

Reinhardt1julian,

How about you post the code you are using so we can get some idea of what you are trying to do - because at the moment all you are doing is annoying lots of people who are trying to help you. ;)

M23

P.S. When you post the code please use Code tags - put [autoit] before and [/autoit] after it.

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Developers

When i do 0xA it prints out a number, and it's because iv'e never worked with variables / hex numbers that much before

Ok, it is time to stop the hide and seek game.

Post some code and indicate the lines you have problems with and what the problem is.

Jos

seems I wasn't the only one with these feelings.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

OK, here's my code.

#include
#include
#include
#include
#include
$TFarbe = 0xC0C0C0
$HFarbe = 0x000000
$TFarbeH = 7
$HFarbeH = 0
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Test", 692, 211, 175, 144)
$Button1 = GUICtrlCreateButton("", 8, 32, 25, 25)
GUICtrlSetBkColor(-1, 0x000000)
$Button3 = GUICtrlCreateButton("", 40, 32, 25, 25)
GUICtrlSetBkColor(-1, 0x000080)
$Button4 = GUICtrlCreateButton("", 72, 32, 25, 25)
GUICtrlSetBkColor(-1, 0x008000)
$Button5 = GUICtrlCreateButton("", 104, 32, 25, 25)
GUICtrlSetBkColor(-1, 0x008080)
$Button6 = GUICtrlCreateButton("", 136, 32, 25, 25)
GUICtrlSetBkColor(-1, 0x800000)
$Button7 = GUICtrlCreateButton("", 168, 32, 25, 25)
GUICtrlSetBkColor(-1, 0x800080)
$Button8 = GUICtrlCreateButton("", 200, 32, 25, 25)
GUICtrlSetBkColor(-1, 0x808000)
$Button9 = GUICtrlCreateButton("", 232, 32, 25, 25)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Button10 = GUICtrlCreateButton("", 264, 32, 25, 25)
GUICtrlSetBkColor(-1, 0x808080)
$Button11 = GUICtrlCreateButton("", 296, 32, 25, 25)
GUICtrlSetBkColor(-1, 0x0000FF)
$Button12 = GUICtrlCreateButton("", 328, 32, 25, 25)
GUICtrlSetBkColor(-1, 0x00FF00)
$Button13 = GUICtrlCreateButton("", 360, 32, 25, 25)
GUICtrlSetBkColor(-1, 0x00FFFF)
$Button14 = GUICtrlCreateButton("", 392, 32, 25, 25)
GUICtrlSetBkColor(-1, 0xFF0000)
$Button15 = GUICtrlCreateButton("", 424, 32, 25, 25)
GUICtrlSetBkColor(-1, 0xFF00FF)
$Button16 = GUICtrlCreateButton("", 456, 32, 25, 25)
GUICtrlSetBkColor(-1, 0xFFFF00)
$Button17 = GUICtrlCreateButton("", 488, 32, 25, 25)
GUICtrlSetBkColor(-1, 0xFFFFFF)
$Button2 = GUICtrlCreateButton("", 488, 100, 25, 25)
GUICtrlSetBkColor(-1, 0xFFFFFF)
$Button18 = GUICtrlCreateButton("", 104, 100, 25, 25)
GUICtrlSetBkColor(-1, 0x008080)
$Button19 = GUICtrlCreateButton("", 168, 100, 25, 25)
GUICtrlSetBkColor(-1, 0x800080)
$Button20 = GUICtrlCreateButton("", 136, 100, 25, 25)
GUICtrlSetBkColor(-1, 0x800000)
$Button21 = GUICtrlCreateButton("", 8, 100, 25, 25)
GUICtrlSetBkColor(-1, 0x000000)
$Button22 = GUICtrlCreateButton("", 40, 100, 25, 25)
GUICtrlSetBkColor(-1, 0x000080)
$Button23 = GUICtrlCreateButton("", 72, 100, 25, 25)
GUICtrlSetBkColor(-1, 0x008000)
$Button24 = GUICtrlCreateButton("", 200, 100, 25, 25)
GUICtrlSetBkColor(-1, 0x808000)
$Button25 = GUICtrlCreateButton("", 232, 100, 25, 25)
GUICtrlSetBkColor(-1, 0xC0C0C0)
$Button26 = GUICtrlCreateButton("", 264, 100, 25, 25)
GUICtrlSetBkColor(-1, 0x808080)
$Button27 = GUICtrlCreateButton("", 296, 100, 25, 25)
GUICtrlSetBkColor(-1, 0x0000FF)
$Button28 = GUICtrlCreateButton("", 328, 100, 25, 25)
GUICtrlSetBkColor(-1, 0x00FF00)
$Button29 = GUICtrlCreateButton("", 360, 100, 25, 25)
GUICtrlSetBkColor(-1, 0x00FFFF)
$Button30 = GUICtrlCreateButton("", 392, 100, 25, 25)
GUICtrlSetBkColor(-1, 0xFF0000)
$Button31 = GUICtrlCreateButton("", 424, 100, 25, 25)
GUICtrlSetBkColor(-1, 0xFF00FF)
$Button32 = GUICtrlCreateButton("", 456, 100, 25, 25)
GUICtrlSetBkColor(-1, 0xFFFF00)
$Label1 = GUICtrlCreateLabel("Wähle die Textfarbe", 8, 8, 125, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("Wähle die Hintergrundfarbe", 9, 71, 168, 20)
GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif")
$Button34 = GUICtrlCreateButton("", 536, 32, 137, 97)
GUICtrlSetBkColor(-1, $HFarbe)
GUICtrlSetState(-1, $GUI_DISABLE)
$Label3 = GUICtrlCreateLabel("AaBbCc", 544, 64, 122, 41)
GUICtrlSetFont(-1, 27, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, $TFarbe)
GUICtrlSetBkColor(-1, $HFarbe)
$OK = GUICtrlCreateButton("OK", 224, 160, 105, 33)
$Abbrechen = GUICtrlCreateButton("Abbrechen", 352, 160, 105, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Abbrechen
Exit
Case $OK
GUICtrlDelete($Form1)
Run("cmd.exe")
WinWaitActive("C:\WINDOWS")
Sleep(100)
Send("color ")
Send($HFarbeH)
Send($TFarbeH)
Send("{ENTER}")
Exit
Case $Button1
$TFarbe = 0x000000
$TFarbeH = 0
GUICtrlSetColor($Label3, $TFarbe)
Case $Button3
$TFarbe = 0x000080
$TFarbeH = 1
GUICtrlSetColor($Label3, $TFarbe)
Case $Button4
$TFarbe = 0x008000
$TFarbeH = 2
GUICtrlSetColor($Label3, $TFarbe)
Case $Button5
$TFarbe = 0x008080
$TFarbeH = 3
GUICtrlSetColor($Label3, $TFarbe)
Case $Button6
$TFarbe = 0x800000
$TFarbeH = 4
GUICtrlSetColor($Label3, $TFarbe)
Case $Button7
$TFarbe = 0x800080
$TFarbeH = 5
GUICtrlSetColor($Label3, $TFarbe)
Case $Button8
$TFarbe = 0x808000
$TFarbeH = 6
GUICtrlSetColor($Label3, $TFarbe)
Case $Button9
$TFarbe = 0xC0C0C0
$TFarbeH = 7
GUICtrlSetColor($Label3, $TFarbe)
Case $Button10
$TFarbe = 0x808080
$TFarbeH = 8
GUICtrlSetColor($Label3, $TFarbe)
Case $Button11
$TFarbe = 0x0000FF
$TFarbeH = 9
GUICtrlSetColor($Label3, $TFarbe)
Case $Button12
$TFarbe = 0x00FF00
$TFarbeH = 0x41
GUICtrlSetColor($Label3, $TFarbe)
Case $Button13
$TFarbe = 0x00FFFF
$TFarbeH = 0x42
GUICtrlSetColor($Label3, $TFarbe)
Case $Button14
$TFarbe = 0xFF0000
$TFarbeH = 0x43
GUICtrlSetColor($Label3, $TFarbe)
Case $Button15
$TFarbe = 0xFF00FF
$TFarbeH = 0x44
GUICtrlSetColor($Label3, $TFarbe)
Case $Button16
$TFarbe = 0xFFFF00
$TFarbeH = 0x45
GUICtrlSetColor($Label3, $TFarbe)
Case $Button17
$TFarbe = 0xFFFFFF
$TFarbeH = 0x46
GUICtrlSetColor($Label3, $TFarbe)
Case $Button2
$HFarbe = 0xFFFFFF
$HFarbeH = 0x46
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button18
$HFarbe = 0x008080
$HFarbeH = 3
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button19
$HFarbe = 0x800080
$HFarbeH = 5
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button20
$HFarbe = 0x800000
$HFarbeH = 4
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button21
$HFarbe = 0x000000
$HFarbeH = 0
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button22
$HFarbe = 0x000080
$HFarbeH = 1
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button23
$HFarbe = 0x008000
$HFarbeH = 2
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button24
$HFarbe = 0x808000
$HFarbeH = 6
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button25
$HFarbe = 0xC0C0C0
$HFarbeH = 7
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button26
$HFarbe = 0x808080
$HFarbeH = 8
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button27
$HFarbe = 0x0000FF
$HFarbeH = 9
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button28
$HFarbe = 0x00FF00
$HFarbeH = 0x41
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button29
$HFarbe = 0x00FFFF
$HFarbeH = 0x42
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button30
$HFarbe = 0xFF0000
$HFarbeH = 0x43
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button31
$HFarbe = 0xFF00FF
$HFarbeH = 0x44
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
Case $Button32
$HFarbe = 0xFFFF00
$HFarbeH = 0x45
GUICtrlSetBkColor($Button34, $HFarbe)
GUICtrlSetBkColor($Label3, $HFarbe)
EndSwitch
WEnd

What might be a problem: The variables are in german (some at least).

And i replaced where i wanted to make the variable $HFarbeH to be "A" the A with 0x41, where it should be "B" there's 0x42 ... but that didn't worked either. I tried 0xA and stuff before

Edited by Reinhardt1julian
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...