
MacScript
Active Members-
Posts
51 -
Joined
-
Last visited
MacScript's Achievements
-
Send Keys/commands to window that is not active
MacScript replied to MacScript's topic in AutoIt General Help and Support
Thanks, will try it out. -
Is there a way to send keystrokes to an application that has not been brought to the forefront using WinActivate or some other command? I have anywhere from 2->12 applications open at the same time and need to send keystrokes and mouse commands to them on a regular basis when an event occurs. When I do the winactive it takes about 2.5 seconds to make each application active (older computer). So was hoping to see if there was a way to send stuff to it while it is in background/minimized? Thanks in advance
-
Merging some text database files together
MacScript replied to MacScript's topic in AutoIt General Help and Support
Here are several real records return { ["Flour"] = { ["SortCategory"] = "37", ["Total"] = "101", ["Category"] = "37", ["Qty"] = { ["18123-0111"] = { ["Subtotal"] = "81", ["5"] = "81" }, ["17342-1212"] = { ["Subtotal"] = "20", ["4"] = "20" } }, ["IconImageID"] = "1091444181", ["BackgroundImageID"] = "1090640816", ["Quality"] = "4" }, ["Sugar"] = { ["SortCategory"] = "6", ["Total"] = "1", ["Category"] = "6", ["Qty"] = { ["18123-0111"] = { ["Subtotal"] = "1", ["5"] = "1" } }, ["IconImageID"] = "1091718003", ["BackgroundImageID"] = "1091711664", ["Quality"] = "2" }, ["Red Dye"] = { ["SortCategory"] = "57", ["Total"] = "23", ["Category"] = "57", ["Qty"] = { ["18123-0111"] = { ["Subtotal"] = "16", ["2"] = "16" }, ["17342-1212"] = { ["1"] = "7", ["Subtotal"] = "7" } }, ["IconImageID"] = "1091804780", ["BackgroundImageID"] = "1090519043", ["Quality"] = "3" }, ["Corn Syrup"] = { ["SortCategory"] = "33", ["Total"] = "1", ["Category"] = "33", ["Qty"] = { ["19212-1212"] = { ["1"] = "1", ["Subtotal"] = "1" } }, ["IconImageID"] = "1091768345", ["BackgroundImageID"] = "1090519043", ["Quality"] = "3" }, ["Baking Soda"] = { ["Total"] = "1", ["SortCategory"] = "49", ["BackgroundImageID"] = "1090519044", ["Qty"] = { ["17342-1212"] = { ["Subtotal"] = "1", ["2"] = "1" } }, ["IconImageID"] = "1091581771", ["Category"] = "49", ["Quality"] = "2" }, } -
I have a multiple text files which is an export of inventory data. Each Text file represents a different system export. All the data is in the same format. [Item] = { ["Total"] = "21", ["SortCategory"] = "6", ["BackgroundImageID"] = "1091711664", ["Qty"] = { ["User1"] = { ["Subtotal"] = "1", ["5"] = "1" }, ["User2"] = { ["Subtotal"] = "20", ["4"] = "20" } }, ["IconImageID"] = "1091718003", ["Category"] = "6", ["Quality"] = "2" }, I am looking for a way to merge this information into one file. So every Item record would need to be merged together. After all this information is merged I would like to be able to search it. So for instance I want to look for item X and then have it show me the quantities and the users who have item X. My primary focus of this post is to see what is the best way to read in these files and merge them together. To be honest, I do not have any code yet. I have looked at this and been trying on paper to get a basic concept as to how to do this task but so far have not come up with one. Was not sure if there might be a function that already does this. This information in theory is in a LUA table structure, but I am not familiar with LUA so can't confirm this. Thanks for pointing me in a direction ahead of time
-
mLipok reacted to a post in a topic: Create a Rich text Field that is Transparent and on a tab
-
I have a context menu that I am using in an autoit gui. The application loop is based on GUIGetMsg(). So the loop of course watches for Left mouse clicks on the Context menu options. I was wondering if there was a way to provide an Alternative action on the context menu option. My idea was to see if there was a way to catch Right clicks on the context menu options. If you get right click do X versus doing Y with left click. Here is just a basic piece of GUI code that has a context menu in it. Thanks in advance for all help that is provided #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> Example() Func Example() GUICreate("My GUI Context Menu", 300, 200) Local $idContextmenu = GUICtrlCreateContextMenu() Global $CtxMenuTrans = GUICtrlCreateMenu("Read Only", $idContextmenu) ;-45a- Global $CtxMenuNo = GUICtrlCreateMenuItem("No", $CtxMenuTrans, -1, 1) ;-49b- Global $CtxMenuYes = GUICtrlCreateMenuItem("Yes", $CtxMenuTrans, -1, 1) ;-49b- GUICtrlSetState($CtxMenuNo, $GUI_CHECKED) ;-49b- Local $idNewsubmenu = GUICtrlCreateMenu("new", $idContextmenu) Local $idNewsubmenuText = GUICtrlCreateMenuItem("text", $idNewsubmenu) Local $idButton = GUICtrlCreateButton("OK", 100, 100, 70, 20) Local $idButtoncontext = GUICtrlCreateContextMenu($idButton) Local $idMenuAbout = GUICtrlCreateMenuItem("About button", $idButtoncontext) Local $idMenuOpen = GUICtrlCreateMenuItem("Open", $idContextmenu) Local $idMenuSave = GUICtrlCreateMenuItem("Save", $idContextmenu) GUICtrlCreateMenuItem("", $idContextmenu) ; separator Local $idMenuInfo = GUICtrlCreateMenuItem("Info", $idContextmenu) GUISetState(@SW_SHOW) ; Loop until the user exits. GUICtrlSetState($idNewsubmenuText, 32) While 1 Switch GUIGetMsg() Case $CtxMenuNo ;----> Show the Control $idNewsubmenu <---- Case $CtxMenuyes ;----> HIDE the Control $idNewsubmenu <---- Case $GUI_EVENT_CLOSE ExitLoop Case $idButton MsgBox($MB_SYSTEMMODAL, "Button Clicked", 'OK') Case $idMenuAbout MsgBox($MB_SYSTEMMODAL, "Menu Selected", 'About') Case $idMenuOpen MsgBox($MB_SYSTEMMODAL, "Menu Selected", 'Open') Case $idMenuSave MsgBox($MB_SYSTEMMODAL, "Menu Selected", 'Save') Case $idMenuInfo MsgBox($MB_SYSTEMMODAL, "Menu Selected", 'Info') Case $idNewsubmenuText MsgBox($MB_SYSTEMMODAL, "SubMenu Selected", 'Text') EndSwitch WEnd GUIDelete() EndFunc ;==>Example
-
HI all, I noticed that iniwrite, iniread do not support Unicode which makes sense cause by the standard they are not supposed too. With that said, I need a way to support the storage of Unicode directory paths and languages like Korean, Japanese in my configuration file (which is an INI). Any suggestions would be greatly appreciated. Thanks in advance for your replies
-
Context Menu How to Hide a menu option
MacScript replied to MacScript's topic in AutoIt GUI Help and Support
Seeker -> Guictrlstate will not work on contextmenu as can be seen by the statement in the link you provided -> "State of a "contextmenu" control cannot be changed.". Thanks for your suggestion but need a different one. -
HI there, I was wondering if there is a way to hide a menu option that is part of a context menu. For instance when you right click on the body of this gui and set Readonly = Yes. Then I want the COntext Menu for New to be Hidden (Not disabled/greyed out). Is there any way to do this? #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <MsgBoxConstants.au3> Example() Func Example() GUICreate("My GUI Context Menu", 300, 200) Local $idContextmenu = GUICtrlCreateContextMenu() Global $CtxMenuTrans = GUICtrlCreateMenu("Read Only", $idContextmenu) ;-45a- Global $CtxMenuNo = GUICtrlCreateMenuItem("No", $CtxMenuTrans, -1, 1) ;-49b- Global $CtxMenuYes = GUICtrlCreateMenuItem("Yes", $CtxMenuTrans, -1, 1) ;-49b- GUICtrlSetState($CtxMenuNo, $GUI_CHECKED) ;-49b- Local $idNewsubmenu = GUICtrlCreateMenu("new", $idContextmenu) Local $idNewsubmenuText = GUICtrlCreateMenuItem("text", $idNewsubmenu) Local $idButton = GUICtrlCreateButton("OK", 100, 100, 70, 20) Local $idButtoncontext = GUICtrlCreateContextMenu($idButton) Local $idMenuAbout = GUICtrlCreateMenuItem("About button", $idButtoncontext) Local $idMenuOpen = GUICtrlCreateMenuItem("Open", $idContextmenu) Local $idMenuSave = GUICtrlCreateMenuItem("Save", $idContextmenu) GUICtrlCreateMenuItem("", $idContextmenu) ; separator Local $idMenuInfo = GUICtrlCreateMenuItem("Info", $idContextmenu) GUISetState(@SW_SHOW) ; Loop until the user exits. While 1 Switch GUIGetMsg() Case $CtxMenuNo ;----> Show the Control $idNewsubmenu <---- Case $CtxMenuyes ;----> HIDE the Control $idNewsubmenu <---- Case $GUI_EVENT_CLOSE ExitLoop Case $idButton MsgBox($MB_SYSTEMMODAL, "Button Clicked", 'OK') Case $idMenuAbout MsgBox($MB_SYSTEMMODAL, "Menu Selected", 'About') Case $idMenuOpen MsgBox($MB_SYSTEMMODAL, "Menu Selected", 'Open') Case $idMenuSave MsgBox($MB_SYSTEMMODAL, "Menu Selected", 'Save') Case $idMenuInfo MsgBox($MB_SYSTEMMODAL, "Menu Selected", 'Info') Case $idNewsubmenuText MsgBox($MB_SYSTEMMODAL, "SubMenu Selected", 'Text') EndSwitch WEnd GUIDelete() EndFunc ;==>Example Thanks in advance for any help / suggestions that are provided
-
How to add Tooltips to Context menu
MacScript replied to MacScript's topic in AutoIt GUI Help and Support
Because you can not do that command for context menus. That command is for other type of controls. -
Database Free to get store statistics in
MacScript posted a topic in AutoIt General Help and Support
Hi all I am in the need of a place to collect abou 8 fields of data and a bunch of rows. Trying to collect some statistics. Since what I am doing I don't get paid for I am looking for a free location that a autoit exe could send some data too. Any suggestions of a place to do this at? Also what types of databases can Autoit make calls too? Thanks ahead of time for all help. -
How to add Tooltips to Context menu
MacScript replied to MacScript's topic in AutoIt GUI Help and Support
I am having one issue with this tool tip method. When one of the tooltips is up it seem to leave that tool tip visible if I do not mouse over one of the connext menu options that do not have a tooltip. So mouse over menu item with Tooltop. then just move my mouse away from the menus entirely and tool tip stays forever. Any suggestions? -
GUI background that is see-through
MacScript replied to MacScript's topic in AutoIt GUI Help and Support
HI Careca - Look at the post that is marked Answered and just add in changing the background color of the edit control for transparency-> GUICtrlSetBkColor($edit, 0xABCDEF) -
I was wondering if there was a single gui interface that had both the font options on it and the custom color palet. instead of having two different gui windows.
-
I am currently using _ChooseFont and _ChooseColor for my application. I was wondering if there is a tool to that does both (yes the Choosefont does let me select Basic colors but I need the custom colors that exist in ChooseColor. So are there any combined tools out there? Thanks in advance for pointing me in the correct direction.
-
How to add Tooltips to Context menu
MacScript replied to MacScript's topic in AutoIt GUI Help and Support
Thanks for your example. I noticed in the wm_menuselect function that it does not return any value does this mean that it will do the Autoit message handling or not? Also does this function only work on context menus or other type of controls? Thanks for your help.