53 posts in this topic
scite buttons under the menu too small
Hi guys, wow, it's been awhile since I was last on this forum. Anyway, I've loaded up AutoIt and opened scite to a nice surprise,
Any way to get those buttons under the menu a bit bigger?
Can SciTE display the last lines that have been previously modified?
I hope this is the right place to ask. I have a somewhat large AutoIt script that I occasionally expand on, but I often forget what I last changed in the script, so it would be nice to have a visual distinction. In SciTE, Is it possible to see which lines of the script have been modified lately?
I had the idea, for example, that lines that have been modified lately could be in shades of green, while lines that haven't been modified in a while don't have any color overlay.
I've attached an example of what I mean.
Does something like this exist for the SciTE/AutoIT editor?
Help with copying and pasting into variables
The code below is intended to copy and paste highlighted text but I've been running into trouble.
The Text is already highlighted via the Mouseclicks and I've tried selecting text myself and then running code but I've no such luck. The issue is with the send("^C") part of the code I believe because ClipGet() works when I manually copy something. Any help is appreciated.
#include <Array.au3> #include <MsgBoxConstants.au3> Sleep(1000) MouseClick("left",1162, 497,2,1) send("^C") sleep(2000) $Time = ClipGet() MsgBox(1,"",$Time,0)
Update : I've just ran Send("^c") on its own in blank page in autoit to see what it entered and the photo below shows just that.
Further obfuscation with Au3Stripper
I was thinking that assigning native function names to variables could further obfuscate the legibility of the code.
$a = MsgBox $a(0, "Title", "Test") Maybe this could be added to Au3Stripper?
array vs loop is this possible
i have a file flower.txt with the name of the flowers and there picture location and information about that kind of flower. i wana cerat a gui that will display the flower picture and it information
here is the script
#include <Misc.au3> #include <EditConstants.au3> #include <Constants.au3> #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <MsgBoxConstants.au3> #include <WindowsConstants.au3> #include <AVIConstants.au3> #include <TreeViewConstants.au3> #include <GuiComboBox.au3> #include <GuiTab.au3> #include <file.au3> #include <array.au3> Global $sfPath = 'flowers.txt' Global $aFlowers _FileReadToArray($sfPath,$aFlowers,$FRTA_NOCOUNT,'|') _ArrayColDelete($aFlowers,0) ;row 0 has no data so deleting $Form1 = GUICreate("Search Flower Name",320, 480) $input = GUICtrlCreateInput("", 60, 360, 209, 25) $idss = GUICtrlCreateButton("Search", 130, 400, 73, 65) GUISetState(@SW_SHOW) Func Searchf() Global $Fname = GUICtrlRead($input) For $iNo = 0 To UBound($aFlowers) - 1 ; if $Fname = $aFlowers[$iNo] then MsgBox($MB_SYSTEMMODAL, "","Flower nfo", ""& $aFlowers[$iNo] &"") pic() EndIf Next EndFunc While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $nMsg = $idss Searchf() EndSwitch WEnd func pic() For $iNo = 0 To UBound($aFlowers) - 1 GUICtrlCreatePic($aFlowers[$iNo], 20, 30, 280, 280) Next EndFunc here is the flower.txt file
|Hibiscus|Hibiscus is a hardy perennial which grows in variety of colors, sizes and fragrances. Actually they are tropical flowers which require ample sunlight and moisture to grow well. These flowers start blooming in late spring and continuously bloom through July and August.|C:\T-in\IMG\2.jpg |Lilies|There are different types of lily flowers which bloom in August including water lilies, tiger lilies and gold band lilies. Tiger lilies generate orange flowers having black spots. This lily blooms in delayed July and beginning of August. Gold band lily produce exotic white blooms. All varieties of lilies need enough space to grow and protection from summer sun.|C:\T-in\IMG\1.jpg |Turtlehead|Growing in humid areas, turtleheads are small flowers which bloom from July to September. They mostly produce flowers of white and pink color.|C:\T-in\IMG\3.jpg |Hydrangea|These are ever green bushes which produce flowers in different colors including white, purple, blue and pink. They are easy to grow bushes and can grow 3 to 10 feet tall. They require morning sun to grow but they should be protected from noon and afternoon sun.|C:\T-in\IMG\4.jpg |Dahlias|August proves to be the peak blooming season for dahlias. Dahlias come in colors like white, orange, yellow, red and purple. They can tolerate all types of soil and require full sun to grow.|C:\T-in\IMG\5.jpg am still trying to learn about how the ubound work and the _filereadtoarray