vmars
Active Members-
Posts
56 -
Joined
-
Last visited
vmars's Achievements
Wayfarer (2/7)
0
Reputation
-
I hope to create a "borderless, moveable, resizeable, visible object". One i can drag or push or pull around the screen. One i can rightClick on for more options. Any examples around that i can study? Thanks...vmars
-
Greetings; I've been away for a while. But it seems to me, there was "Win API viewer [wizard helper]", that i could select a certain api, and helper would show valid keyword combinations. Can anyone aim me in the right dirextion? Thanks...vmars
-
How to use AutoIt3Wrapper? SciTE4AutoIt3
vmars replied to vmars's topic in AutoIt General Help and Support
Thanks:Is this Autoit-Optimize still valid or is "Eat Spaghetti" better? Where is this "Eat Spaghetti" for download? Thanks..vm -
How to use AutoIt3Wrapper? SciTE4AutoIt3
vmars replied to vmars's topic in AutoIt General Help and Support
Thanks:"(In SciTE click Help/SciTE Help)" this would have been helpful in the other thread. I felt i wasn't getting the answers i needed. Thanks..vm -
How to use AutoIt3Wrapper? SciTE4AutoIt3
vmars replied to vmars's topic in AutoIt General Help and Support
1) cool. 2) OHHHHH, in the "Help>SciTE Help" from SciTE". I was looking in help => help. 3) "We are not mind-readers here." That's a nasty way to say it. "Can you elaborate on ?#3", is a positive way to say it. I could have better said, "is there a Generic Gui version". 4) Windows\ShellNew\Template.au3 doesn't seem to mention autoit wrapper. 5) probably answered by #2 above, now that i found some docs. 6) "Just press Compile from SciTE. It uses the gui one for a reason." I don't see any Wrapper stuff. 7) Now that you have aimed me in the right direction (#2 "Help>SciTE Help" from SciTE"), i think most of my questions will be answered. Thanks..vm -
Yes, i've noticed that too. Maybe we should ask 'ourselves' "how have i helped (benifitted) this person?" Before we actually POST. And if we can't answer that in a positive way. ReWite it until it is helpful, before POSTing. Thanks..vm
-
M23; I am not 'trying to shortcut the system', i am trying to understand WhatIs 'AutoIt3Wrapper', 1) why should i use it 2) and how should i use it? 3) What options should i use? 4) If it is beneficial to use it, how can i get it to Insert itself into a New_Untitled_Au3_File? 5) Where can i find an 'AutoIt3Wrapper_Template'. I see the Files in Folder'C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper', but it doesn't how to UseAutoIt3Wrapper, and when i Search the Help for 'AutoIt3Wrapper', all i get is 'AutoIt and Developer History '. I think i'll start a new topic for this: How to use AutoIt3Wrapper? Thanks..vm
-
SciTE4AutoIt3 : AutoIt3Wrapper 1) why should i use it (to get the Smallest Executable possible?). 2) and how should i use it? 3) What options should i use? 4) If it is beneficial to use it, how can i get it to Insert itself into a New_Untitled_Au3_File? 5) Where can i find an 'AutoIt3Wrapper_Template'. I see the Files in Folder'C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper', but it doesn't tell how to UseAutoIt3Wrapper, and when i Search the Help for 'AutoIt3Wrapper', all i get is 'AutoIt and Developer History '. I want to get the Smallest Executable possible, so someone suggested using AutoIt3Wrapper. 6) Should i use a separate AutoIt3Wrapper for GUI and one for CONSOLE ? Thanks..vm
-
I found this AutoIt3Wrapper_Gui.au3 --saved it as==> AutoIt3WrapperGui_vm.au3 Which now looks like beelow: ; AutoItWrapperGui_vm.au3 #NoTrayIcon ;#RequireAdmin #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=AutoIt3Wrapper.ico #AutoIt3Wrapper_UseUpx=n ;~ #AutoIt3Wrapper_UseAnsi=y #AutoIt3Wrapper_Res_Comment=AutoIt3Wrapper GUI to set the AutoIt3Wrapper directives. #AutoIt3Wrapper_Res_Description=AutoIt3Wrapper GUI to set the AutoIt3Wrapper directives. #AutoIt3Wrapper_Res_Fileversion=2.0.0.0 #AutoIt3Wrapper_Res_FileVersion_AutoIncrement=p #AutoIt3Wrapper_Res_LegalCopyright=Copyright © 2009 Jos van der Zande #AutoIt3Wrapper_Res_Field=Made By|Jos van der Zande #AutoIt3Wrapper_Res_Field=Email|jdeb at autoitscript dot com #AutoIt3Wrapper_Res_Field=AutoIt Version|%AutoItVer% #AutoIt3Wrapper_Res_Field=Compile Date|%date% %time% #AutoIt3Wrapper_Au3Check_Parameters=-q -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #AutoIt3Wrapper_Run_After=copy "%in%" "..\..\WsciteUpdates\AutoIt3Wrapper" #AutoIt3Wrapper_Run_After=copy "%out%" "..\..\WsciteUpdates\AutoIt3Wrapper" #AutoIt3Wrapper_Run_After=copy "%in%" "c:\program files (x86)\autoit3\SciTE\AutoIt3Wrapper" #AutoIt3Wrapper_Run_After=copy "%out%" "c:\program files (x86)\autoit3\SciTE\AutoIt3Wrapper" #Tidy_Parameters=/gd /sf #AutoIt3Wrapper_Run_cvsWrapper=v #AutoIt3Wrapper_cvsWrapper_Parameters=/comments "%fileversion% \n" #AutoIt3Wrapper_Run_Obfuscator=y #AutoIt3Wrapper_Add_Constants=n #Obfuscator_Parameters=/striponly #Obfuscator_Parameters=/SO #AutoIt3Wrapper_Compression=4 #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** I must have done something wrong, because size went from 617kb to 602kb? Should i have a separate AutoIt3Wrapper for non-Gui apps? Also, what is the PortableAutoIt3 ? Thanks..vm
-
Here are my two scrany pgms FileWriteLog_vm.exe : FileWriteLog_vm.au3 and FileWriteLog_vm_inc.au3 . Please, how can i whittle them down? Do i need all those includes? Thanks..vm ; FileWriteLog_vm.au3 #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <C:\Users\thisUser\Documents\AutoIt3\Projects-vm\FileWriteLog-vm-Folder\FileWriteLog_vm_inc.au3> Opt("GUIOnEventMode", 1) ;Global $vmLogFileName, $vmLogFileAction, $vmLogThisMsg, $file, $LineCnt $Form1 = GUICreate("Test FileWriteLog_vm.au3", 683, 170, 260, 145) GUISetBkColor(0x0E2765, $Form1); (0xA0A0A0) GUICtrlCreateGraphic(11, 38, 664, 66) GUICtrlSetBkColor(-1, 0xFFD8D8); (-1, 0x3A6EA5) (-1, 0xFFD8D8) GuiCtrlSetState(-1,$GUI_DISABLE) ;(-1,$GUI_DISABLE) ;GUICtrlCreateGroup("", -99, -99, 1, 1) ; Close Group $Group1 = GUICtrlCreateGroup("", 8, 32, 665, 73) ; $hButton1 = GUICtrlCreateButton("create", 88, 57, 75, 25, $WS_GROUP) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x800000) $hButton2 = GUICtrlCreateButton("open", 232, 57, 75, 25, $WS_GROUP) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x800000) $hButton3 = GUICtrlCreateButton("write", 376, 57, 75, 25, $WS_GROUP) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x800000) $hButton4 = GUICtrlCreateButton("close", 520, 56, 75, 25, $WS_GROUP) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x800000) GUICtrlCreateGroup("", -99, -99, 1, 1) ; Close Group GUISetState(@SW_SHOW) GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close") GUICtrlSetOnEvent($hButton1, "createButton") ; createButton GUICtrlSetOnEvent($hButton2, "openButton") ; createButton GUICtrlSetOnEvent($hButton3, "writeButton") ; createButton GUICtrlSetOnEvent($hButton4, "closeButton") ; createButton GUISetOnEvent($GUI_EVENT_CLOSE,"closeButton") ;WinSetTrans("Example","",127) ;GUISetState(@SW_ENABLE) While 1 Sleep(100) ; Very important or you eat CPU cycles WEnd Func createButton() $vmLogFileName = "DebugLog.txt" $vmLogFileAction = "create" $vmLogThisMsg = "create" FileWriteLog_vmFunc() ; EndFunc Func openButton() $vmLogFileName = "DebugLog.txt" $vmLogFileAction = "open" $vmLogThisMsg = "open" FileWriteLog_vmFunc() EndFunc Func writeButton() $LineCnt = $LineCnt +1 $vmLogFileName = "DebugLog.txt" $vmLogFileAction = "write" $vmLogThisMsg = ("Log message line " & $LineCnt) FileWriteLog_vmFunc() EndFunc Func closeButton() $vmLogFileName = "DebugLog.txt" $vmLogFileAction = "close" $vmLogThisMsg = "close" FileWriteLog_vmFunc() EndFunc Func Form1Close() Exit EndFunc ;FileWriteLog_vm_inc.au3 #include <File.au3> Global $vmLogFileName, $vmLogFileAction, $vmLogThisMsg, $file, $LineCnt Func FileWriteLog_vmFunc() Switch $vmLogFileAction Case "create" $LineCnt = 0 If $vmLogFileAction = "create" Then If FileExists($vmLogFileName) Then FileDelete($vmLogFileName) If Not _FileCreate($vmLogFileName) Then MsgBox(0, "_FileCreate Didn't work ", $vmLogFileName) EndIf $vmLogFileAction = "created" ; MsgBox(0,$vmLogFileAction,$vmLogFileName) EndIf EndIf Case "open" $LineCnt = 0 $file = FileOpen($vmLogFileName, 1) ; Check if file opened for writing OK If $file = -1 Then $vmLogThisMsg = "openError" Exit EndIf $vmLogFileAction = "opened" Case "write" ; $LineCnt = $LineCnt +1 FileWrite($file, ($vmLogThisMsg & @CRLF)) $vmLogFileAction = "written" ; MsgBox(0, "Writing Line: ", $vmLogFileName) Case "close" FileClose($file) $vmLogFileAction = "closed" Exit EndSwitch EndFunc
-
Gui compiles clean , but no output
vmars replied to vmars's topic in AutoIt General Help and Support
No problem. I do the same on occasion. Thanks for your help!..vm -
Gui compiles clean , but no output
vmars replied to vmars's topic in AutoIt General Help and Support
Ah yes, i did find this one line with a comment. "GUICtrlCreateGroup("", -99, -99, 1, 1) ;close group " So, does that mean, for every Group, there needs to be a corresponding "close group"? It didn't seem to matter where i put the close group. But i put it after the last BUTTON that visually lies within the Group. Anyways, the HELP document. Yes, i consult it all the time. But its not always apparent what is important at first reading. I am happy to admit that the AutoIt3 Help, is the best Help document that i have ever seen. Click on the 'Open this script' button and script pops up in Scite. Is that the correct positioning? Thanks..vm -
Gui compiles clean , but no output
vmars replied to vmars's topic in AutoIt General Help and Support
Ah, very cool. Everything is looking good. Please, what is the purpose of this statement: GUICtrlCreateGroup("", -99, -99, 1, 1) Here is the code (Thanks..vm); ; FileWriteLog_vm.au3 #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <C:\Users\vmars\Documents\AutoIt3\Projects-vm\FileWriteLog-vm-Folder\FileWriteLog_vm_inc.au3> Opt("GUIOnEventMode", 1) ;Global $vmLogFileName, $vmLogFileAction, $vmLogThisMsg, $file, $LineCnt $Form1 = GUICreate("Test FileWriteLog_vm.au3", 683, 170, 260, 145) GUISetBkColor(0x0E2765, $Form1); (0xA0A0A0) GUICtrlCreateGraphic(11, 38, 664, 66) GUICtrlSetBkColor(-1, 0xFFD8D8); (-1, 0x3A6EA5) (-1, 0xFFD8D8) GuiCtrlSetState(-1,$GUI_DISABLE) ;(-1,$GUI_DISABLE) GUICtrlCreateGroup("", -99, -99, 1, 1) $Group1 = GUICtrlCreateGroup("", 8, 32, 665, 73) ; $hButton1 = GUICtrlCreateButton("create", 88, 57, 75, 25, $WS_GROUP) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x800000) $hButton2 = GUICtrlCreateButton("open", 232, 57, 75, 25, $WS_GROUP) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x800000) $hButton3 = GUICtrlCreateButton("write", 376, 57, 75, 25, $WS_GROUP) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x800000) $hButton4 = GUICtrlCreateButton("close", 520, 56, 75, 25, $WS_GROUP) GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif") GUICtrlSetColor(-1, 0xFFFFFF) GUICtrlSetBkColor(-1, 0x800000) GUISetState(@SW_SHOW) GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close") GUICtrlSetOnEvent($hButton1, "createButton") ; createButton GUICtrlSetOnEvent($hButton2, "openButton") ; createButton GUICtrlSetOnEvent($hButton3, "writeButton") ; createButton GUICtrlSetOnEvent($hButton4, "closeButton") ; createButton GUISetOnEvent($GUI_EVENT_CLOSE,"closeButton") ;WinSetTrans("Example","",127) While 1 Sleep(100) ; Very important or you eat CPU cycles WEnd Func createButton() $vmLogFileName = "DebugLog.txt" $vmLogFileAction = "create" $vmLogThisMsg = "create" FileWriteLog_vmFunc() ; EndFunc Func openButton() $vmLogFileName = "DebugLog.txt" $vmLogFileAction = "open" $vmLogThisMsg = "open" FileWriteLog_vmFunc() EndFunc Func writeButton() $LineCnt = $LineCnt +1 $vmLogFileName = "DebugLog.txt" $vmLogFileAction = "write" $vmLogThisMsg = ("Log message line " & $LineCnt) FileWriteLog_vmFunc() EndFunc Func closeButton() $vmLogFileName = "DebugLog.txt" $vmLogFileAction = "close" $vmLogThisMsg = "close" FileWriteLog_vmFunc() EndFunc Func Form1Close() Exit EndFunc -
Gui compiles clean , but no output
vmars replied to vmars's topic in AutoIt General Help and Support
Oh Bother; Now since i made last changes, screen is pretty, but Bottons don't work. I probably got things in the wrong order. When i press a Button, there is no Button behavior, no push and pop. How can i wake-up the Buttons? Could someone take a look at code and see what's up? Thanks..vm -
Gui compiles clean , but no output
vmars replied to vmars's topic in AutoIt General Help and Support
Ah yes, i spent ~ 1+ hour searching. Didn't find . But did find post='657660'] . So my code now looks like: Opt("GUIOnEventMode", 1) ;Global $vmLogFileName, $vmLogFileAction, $vmLogThisMsg ; $Form1 = GUICreate("Test FileWriteLog_vm.au3", 683, 170, 260, 145) GUISetBkColor(0x0E2765, $Form1); (0xA0A0A0) GUICtrlCreateGraphic(11, 38, 664, 66) GUICtrlSetBkColor(-1, 0xFFD8D8); (-1, 0x3A6EA5) (-1, 0xFFD8D8) $Group1 = GUICtrlCreateGroup("", 8, 32, 665, 73) ; $hButton1 = GUICtrlCreateButton("create", 88, 57, 75, 25, $WS_GROUP) So, i learned that i can't Color a 'GUICtrlCreateGroup' . Can i also conclude that since GUICtrlCreateGraphic is coded before GUICtrlCreateGroup, that GUICtrlCreateGroup is Transparent, and will show the color underneath it? That's interesting! Thanks..vm ps: Oh, more about the search. What i searched for was 'GUICtrlSetBkColor'. Also, when i searched for your "+GUISetBkColor +group +control" what came back was a search for just GUISetBkColor. It appeard it had dropped the "+GUISetBkColor". Thanks..vm