I want to display the icon of a process with the GUICtrlCreateIcon function.
Say if iexplorer.exe is running, I want to display the internet explorer icon.
How can I do this?
Ok I have 192 picture controls on my script. They are all in an array.
How can I make it so I don't have to write 192 Case lines for each control in the array.
Also I want to set $b to the number in the array that was clicked on.
Example
While 1
$msg = GUIGetMsg()
Select
Case $msg = $a[1]
$b = 1
Case $msg = $a[2]
$b = 2
EndSelect
WEnd
While 1
$msg = GUIGetMsg()
Select
Case $msg = $a
$b = ?
EndSelect
WEnd
May sound confusing of what i'm trying to do if you don't understand say so and i'll try to reword.
Checkbox not textbox sorry.
The text color is still black.
$remember = GUICtrlCreateCheckbox ("Remember", 75, 270, 150, 15)
GUICtrlSetColor(-1,0xffffff)
Ah! I found the problem.
It seems the way I was using FileOpen caused it.
I was doing this.
FileOpen($file,1)
...
FileClose($file)
I changed it to
$f = FileOpen($file,1)
...
FileClose($f)
It seemed to have fixed it.
When I create a .txt file using _FileCreate and then try to delete it using FileDelete it won't delete.
If I try to delete it manually with the script running it will display the file is in use by a person or another program.
Once I close the script I can delete it.
I even tried using FileClose after using _FileCreate but it still doesn't delete it and displays the file in use message when I try to also manually delete.
I want to retrieve the data from the selected item in a listview from the 4th column.
So if the 4th column displays "a" of the selected item I want it to return "a"
How can I do this?
Yes I am.
I also tried:
_FileWriteToLine($file,4,"test",1)
And it did not work either.
Other functions that use file.au3 are working in my script though, such as _FileCreate and _FileCountLines.
How can I convert a integer into a string.
Since the following are not working.
$int=FileReadLine($file,3) + 1
_FileWriteToLine($file,3,$int,1)
Or
_FileWriteToLine($file,3,FileReadLine($file,3) + 1,1)
I'm using the latest beta. v3.1.1.120 (beta)
What am I doing wrong here? Its not transparent, I have a picture underneath it.
$name = GUICtrlCreateLabel ("Name", 8, 15, 200,15,$WS_EX_TRANSPARENT)