Leaderboard
Popular Content
Showing content with the highest reputation on 09/05/2015 in all areas
-
Version 2.5.3
624 downloads
Transpond UDF helps in making complied scripts communicate with each other it has basic functions which are easy to use.you can send data to other windows as well as recieve them directly.you can help scripts share there data via transpond Udf. Features: * Compressed zip with examples * Reading data and sending data to windows * Calling functions when data is available to read TRANSPOND UDF IS NOT AVAILABLE AND REMOVED DUE TO COMPLAINTS DOWNLOAD IT BY GOOGLING..1 point -
Version 1.2
29,318 downloads
I wrote an introductory text for new programmers to learn how to code using AutoIt. It follows along with the help file for the most part – but provides additional context and attempts to connect all the information in a cohesive way for someone without any programming experience. I find the help file to be an AMAZING resource and the text I wrote in no way reflects any opinion to the contrary. Rather, it was created from the perspective of someone who struggled early on with the most basic concepts and thought that a hand-holding guide could be useful. I was also inspired by code.org who is trying to encourage people to learn to code. I thought – what better way than to use free tools that you can download at any time with access to an amazing community? If only there was a guide to walk people through it … Full discussion about the file can be found here: https://www.autoitscript.com/forum/topic/174205-introductory-learn-to-program-text-using-au3/1 point -
Clicking OK or Sending Enter, Program with Funky Controls
DerPensionist reacted to brokenchains for a topic
I'm trying to automate a chunk of what I do as a hobby with OBS Multiplatform, a livestreaming app. The original OBS program worked with a script in AutoHotkey, but doesn't in the newer rewrite of the app. Basically while the app is not in focus I need to double click an item in a list, just click 'OK' or hit enter or space, then send the same hotkey to OBS that goes through AutoIt. I got the double click to work just fine which was the problem with AHK, but I'm struggling to click 'OK'. I think the real issue is that this new multiplatform version of OBS has really funky naming for its classes & controls. They seem generic - for example the main window has the class "Qt5QWindowIcon". Anyway this is my first night looking into AutoIt but from what I've cobbled together after looking through the docs and picking up scraps, I have worked up the code below. (I know I commented the ControlSend & ControlClick, that's just to point out the two options I've tried.) Local $inTargetProg = False Func _num2() ControlClick("OBS 0.11.4 (windows)","","[CLASS:Qt5QWindowIcon; INSTANCE:4]","",2,224,35) WinWait("[TITLE:Properties for 'CC_Transition'") ;ControlSend("Properties for 'CC_Transition'","","[CLASS:Qt5QWindowIcon; INSTANCE:2]","","{enter}") ;ControlClick("Properties for 'CC_Transition'","","[CLASS:Qt5QWindowIcon; INSTANCE:2]","",1,28,10) EndFunc While 1 If WinExists("OBS 0.11.4 (windows)") and Not $inTargetProg Then HotKeySet("^{NUMPAD2}","_num2") $inWC3 = True EndIf If Not WinExists("OBS 0.11.4 (windows)") and $inTargetProg Then HotKeySet("^{NUMPAD2}") $inWC3 = False EndIf Sleep(5) WEnd Below is the Window Info while I hovered exactly in the center of the button I need to click. I though just sending {enter} with the ControlSend option above would do it easily but it didn't. >>>> Window <<<< Title: Properties for 'CC_Transition' Class: Qt5QWindowIcon Position: 29, 272 Size: 989, 700 Style: 0x96CC0000 ExStyle: 0x00000500 Handle: 0x004E0074 >>>> Control <<<< Class: Qt5QWindowIcon Instance: 2 ClassnameNN: Qt5QWindowIcon2 Name: Advanced (Class): [CLASS:Qt5QWindowIcon; INSTANCE:2] ID: Text: buttonBoxWindow Position: 830, 629 Size: 132, 21 ControlClick Coords: 30, 12 Style: 0x56000000 ExStyle: 0x00000000 Handle: 0x002C04CC >>>> Mouse <<<< Position: 860, 641 Cursor ID: 0 Color: 0x8E6A65 >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< OBSPropertiesViewClassWindow buttonBoxWindow OBSQTDisplayClassWindow >>>> Hidden Text <<<< Any suggestions? If I missed anything I'd be glad to provide it if I can.1 point -
@extended is set by StringReplace and returns the number of replacements that have been done.1 point
-
Forum upgraded to 4.0.13 - mainly internal bug fixes.1 point
-
That's fine. Because you have set the workbook to invisible when you open it and you do not make it visible again before saving then it's still invisibile when you open it manually. You have to make it visible again. It it described in the remarks of _Excel_BookOpen:1 point
-
1 point
-
1 point
-
UDF Link Viewer
kcvinu reacted to coffeeturtle for a topic
@MimiOne might mean that you might be coding to open the IE browser as opposed whatever the default browser is on any given system (e.g. Firefox or Chrome). Thank you for your work here. --> I just tested. The links open properly in my default browser. So i don't know what MimiOne's point is either.1 point -
Windows 10 Sound Control Panel - Info needed
zaubermaus reacted to KaFu for a topic
Just updated the Beta again (quite some changes this time, among others I change to v2 ). So, for those few interested, give it a try and let me know of any bugs (esp. on Win10), otherwise I'll upload the final v2 including source soon ... http://funk.eu/wp-content/plugins/download-monitor/download.php?id=2171 point -
Number Puzzle
jvanegmond reacted to jchd for a topic
This is the drawback of 2's complement representation: the range isn't symetric around zero. So -(-128 ) isn't representable as a signed byte, up to whatever fixed integral size your hardware/software handles. 1's complement doesn't have the issue, but then you end up with another problem: you get distinct values for +0 and -0.1 point -
ups yes. You only need the NMTREEVIEW structure cuz NMHDR is inside. look this. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <TreeViewConstants.au3> #include <GuiTreeView.au3> Global $hTreeView, $fExpanded = 0 Global $ahRoot[5][2] = [[0, 0],[0, 0],[0, 0],[0, 0]] $hGUI = GUICreate("Test", 220, 250) $hTreeView = GUICtrlCreateTreeView(10, 10, 200, 200, -1, $WS_EX_CLIENTEDGE) $ahRoot[1][0] = _GUICtrlTreeView_InsertItem($hTreeView, "RootItem1") _GUICtrlTreeView_InsertItem($hTreeView, "SubItem1", $ahRoot[1][0]) $ahRoot[2][0] = _GUICtrlTreeView_InsertItem($hTreeView, "RootItem2") _GUICtrlTreeView_InsertItem($hTreeView, "SubItem2", $ahRoot[2][0]) $ahRoot[3][0] = _GUICtrlTreeView_InsertItem($hTreeView, "RootItem3") _GUICtrlTreeView_InsertItem($hTreeView, "SubItem3", $ahRoot[3][0]) $ahRoot[4][0] = _GUICtrlTreeView_InsertItem($hTreeView, "RootItem4") _GUICtrlTreeView_InsertItem($hTreeView, "SubItem4", $ahRoot[4][0]) GUISetState() GUIRegisterMsg($WM_NOTIFY, "WM_Notify_Events") While 1 $iMsg = GUIGetMsg() Select Case $iMsg = $GUI_EVENT_CLOSE Exit Case $fExpanded = 1 ; node closed so reset all nodes to current states For $i = 1 To 4 If _GUICtrlTreeView_GetExpanded($hTreeView, $ahRoot[$i][0]) = True Then $ahRoot[$i][1] = 1 ; set expanded flag Else $ahRoot[$i][1] = 0 ; set closed flag EndIf Next $fExpanded = 0 Case $fExpanded = 2 ; node opened so check which changed For $i = 1 To 4 If _GUICtrlTreeView_GetExpanded($hTreeView, $ahRoot[$i][0]) <> $ahRoot[$i][1] Then $sText = _GUICtrlTreeView_GetText($hTreeView, $ahRoot[$i][0]) EndIf Next MsgBox(0x40000, "+ Clicked", $sText) $fExpanded = 0 EndSelect WEnd Func WM_Notify_Events($hWndGUI, $iMsgID, $wParam, $lParam) #forceref $hWndGUI, $iMsgID ; Create NMTREEVIEW structure Local $tStruct = DllStructCreate("struct;hwnd hWndFrom;uint_ptr IDFrom;INT Code;endstruct;" & _ "uint Action;struct;uint OldMask;handle OldhItem;uint OldState;uint OldStateMask;" & _ "ptr OldText;int OldTextMax;int OldImage;int OldSelectedImage;int OldChildren;lparam OldParam;endstruct;" & _ "struct;uint NewMask;handle NewhItem;uint NewState;uint NewStateMask;" & _ "ptr NewText;int NewTextMax;int NewImage;int NewSelectedImage;int NewChildren;lparam NewParam;endstruct;" & _ "struct;long PointX;long PointY;endstruct", $lParam) If @error Then Return Local $iEvent = DllStructGetData($tStruct, 3) Select Case $wParam = $hTreeView Switch $iEvent Case $TVN_ITEMEXPANDEDW, $TVN_ITEMEXPANDEDA $fExpanded = DllStructGetData($tStruct, 4) ; 1 = node closed, 2 = node expanded Local $hItem = DllStructGetData($tStruct, "NewhItem") ConsoleWrite( _GUICtrlTreeView_GetText($hTreeView, $hItem) & ": " & (($fExpanded = 1) ? "node closed" : "node expanded") & @CRLF) EndSwitch EndSelect $tStruct = 0 Return $GUI_RUNDEFMSG EndFunc ;==>WM_Notify_Events All is in msdn reference Saludos1 point