
Negative1
Active Members-
Posts
116 -
Joined
-
Last visited
Everything posted by Negative1
-
Resolved:_wordCreate() using color text?
Negative1 posted a topic in AutoIt General Help and Support
Hi All, #include <Word.au3> $oWordApp = _WordCreate (@ScriptDir & "\Test.doc", 0, 0) $oDoc = _WordDocGetCollection ($oWordApp, 0) $oDoc.Range.insertAfter ("This is some text to insert.") $oDoc = _WordDocGetCollection ($oWordApp, 0) $oDoc.Range.insertAfter ("This is some color text to insert.") So basically the above code I want to display two lines the first in default font/color and second in another color. I would also be happy if I could make the second line bold instead of color... Is this possible? Thanks, -1 Edit1: Thanks Smartee! -
Drawing a predicted trejectory on screen
Negative1 replied to Negative1's topic in AutoIt General Help and Support
Thanks for the script. I'm more looking for help on how to draw on an already open window eg. not my own GUI... Thanks -1 -
Drawing a predicted trejectory on screen
Negative1 posted a topic in AutoIt General Help and Support
Hi all, I have the code and formulas to correctly predict bullet drop and trejectory of a projectile however how I would like to simulate it graphically. What would be the best / easiest way to draw a trejectory arc overtop of another window? Thanks, -1 -
Hi all, How would I go about finding out the corrdinates of the next type a person clicks after calling a function? Thanks, -1
-
Hello, So i'm reading the help file to try and figure out how to get my list view to use up its entire gui ctrl space and I found this line: I don't quite understand what this is telling me. Is it suppose to be automatic when I use list view item because it does not appear to change the size at all. So in short how do I make a listview resize its columns according to the size of the data inside? Thanks, -1 Edit1: Got it, thanks for the help all!
-
Hi all, I searched the forums for the NomadMemory.au3 UDF however I was unsuccessful in locating it. Is this still in use or has it been replaced? If so can anyone point me to a new UDF for reading process memory. Thanks -1
-
Running application from toolbar
Negative1 replied to roberttz's topic in AutoIt General Help and Support
Hello, I think I can help with the first and the last part. I cant get the screen shot so second part I can only speculate on. Step 1: WinSetState("LabView Title Here","",@SW_MAXIMIZE) ^^^^even though its not a traditional window the process is still running and you can maximize it. Just insert the title of the Labview window. Step 2: You will have to get the control ID (if there is one) of the start button on the labview page. if there isn't a control ID or you don't know how to get it reply. Step 3: WinSetState("LabView Title Here","",@SW_MINIMIZE) *Edit: Let's all pretend I typed LanView -
Use the autoit window info tool and if the gui console window has an ID you can use ControlSend: ControlSend -------------------------------------------------------------------------------- Sends a string of characters to a control. ControlSend ( "title", "text", controlID, "string" [, flag] ) Parameters title The title of the window to access. text The text of the window to access. controlID The control to interact with. See Controls. string String of characters to send to the control. flag [optional] Changes how "keys" is processed: flag = 0 (default), Text contains special characters like + to indicate SHIFT and {LEFT} to indicate left arrow. flag = 1, keys are sent raw.
-
Passing $Variable in command line
Negative1 replied to csmithknott's topic in AutoIt General Help and Support
$string = '/create /SC weekly /TN LANDesk_DB_Maintenance /D SUN /TR ' & $LDMain & ' \\ldlogon\\_DBMaint\\_DBMaint.bat /ST 00:15:00 /RU SYSTEM' ShellExecuteWait ('schtasks.exe', $string , @SW_HIDE) ^^ I have used that as a work around before when I ran into this problem... If that doesn't work I would suspect $LDMain is not quite what you think it is. use a msgbox(0,"",$LDMain) and make sure it looks right... Then Msgbox(0,"",'/create /SC weekly /TN LANDesk_DB_Maintenance /D SUN /TR ' & $LDMain & ' \\ldlogon\\_DBMaint\\_DBMaint.bat /ST 00:15:00 /RU SYSTEM') make sure they both look right before adding them to shell execute -
A more natural mouse move [Resolved]
Negative1 replied to Negative1's topic in AutoIt General Help and Support
Thank you all for your help! Special thanks to JohnOne for dropping a hint that led me to my answer: #Include <WinAPI.au3> #include <Constants.au3> _WinAPI_Mouse_Event($MOUSEEVENTF_MOVE,100,100) The above code sends the mouse down and to the right (100)units. The units are relative to the mouses current position and (drum roll) windows mouse speed settings!!!! -1 -
A more natural mouse move [Resolved]
Negative1 replied to Negative1's topic in AutoIt General Help and Support
Would it be any different if I use _winapi_mouse_event "move" rather than mousemove()? -
_IECreate requirements?
Negative1 replied to grasshopper3's topic in AutoIt General Help and Support
...Zombies always showing up when uninvited! -
A more natural mouse move [Resolved]
Negative1 replied to Negative1's topic in AutoIt General Help and Support
You're telling me this entire community of brilliant minds has no way to move the mouse other then MouseMove()? I'm just looking for a starting point and some idea of how much I would have to go through but to simply say it's not possible seams improbable, right? -
A more natural mouse move [Resolved]
Negative1 replied to Negative1's topic in AutoIt General Help and Support
I'm trying to avoid using mousemove() as the original post says. The code I have written knows the direction the mouse must move in. I have attempted using Mousemove() with coordinates relative to the current mouse position with no success. Thus I wish to avoid using any coordinate driving mouse commands if its possible. -
Clicking button only when it becomes active.
Negative1 replied to Think7's topic in AutoIt General Help and Support
Hello, Have you tried the Autoit Window info tool? Start the tool then mouse over the mentioned button. Press ctrl+alt+f without moving the mouse... then select the window info tool and see if the "control" subtab has and ID number for the control. It may or may not depending on how the CCleaner languange. If it does have and ID you can use many autoit functions to get the status of the control and click the control: ControlCommand("Window Title","", ControlID,"IsEnabled","") ^^^^^ returns 1 if the control is enabled. ControlClick("Window Title","", ControlID,"Primary",1) ^^^^^ clicks the control once with the primary mouse button "left" for normal window op "right" for swapped left handers. hope this helps -1 -
A more natural mouse move [Resolved]
Negative1 replied to Negative1's topic in AutoIt General Help and Support
Thanks, but not really what I'm looking for as I'm trying to avoid using coordinates. -
Hello there, First off welcome to AutoIT and thank you for your well formatted and coherent question I think what you are looking for is a window title matching mode. Basically this will determine how autoit matches windows eg: exact match, partial match from start of the string, and partial match from anywhere in the title string. The syntax for this is: opt(winTitleMatchMode, #) Excerpt from help file: WinTitleMatchMode Alters the method that is used to match window titles during search operations. 1 = Match the title from the start (default) 2 = Match any substring in the title 3 = Exact title match 4 = Advanced mode, see Window Titles & Text (Advanced) -1 to -4 = force lower case match according to other type of match. replace # in the above code with 2 and you will be able to match just the "name.exe" and ignore the file path. Hope this helps -1
-
Hi all, Is it possible to move the mouse more like a human does. Basically I would like to be able to move the mouse by giving it a direction, velocity, and duration of movement. Also I do NOT wish to use the mousemove() function to simulate this, as I am trying to avoid coordinates. Any ideas? Thanks, -1
-
Hi all, Here is a snippet of my code in which i am using linkgetcollection to find all the links and then i want to search for the string "ad=" I'm very new to object programming and I know the problem is in my understanding of $oLink.href which I took from the example. so may question really boils down to: "how do I get the link string of the link I am currently indexing in my for loop?" $oIE= _IEAttach("", "instance",1) $oLinks = _IELinkGetCollection ($oIE) $iNumLinks = @extended For $x=0 to $iNumLinks if stringinstr($oLink.href,"ad=") Then _IELinkClickByIndex($oIE,$x) EndIf Next Thanks all, -1
-
Hi all, Trying to take the data currently held in windows clipboard with its current format. The data will be mostly text of various font type, but it also contains a small graphic. I want to paste into outlook exactly what I have copied. I have achieved this by sending control c and control v but I would like to know if it is possible to retrieve the data from clipboard, save it as a variable, and then output it later. Note: I understand how to capture it as a string or an image this is not what I am trying to achieve. Thanks, -1
-
GuiCtrlCreateDate and GuiCtrlSetData [Resolved]
Negative1 replied to Negative1's topic in AutoIt General Help and Support
my default without $DTS_SHORTDATEFORMAT is "Friday, June 06 2010" or something close to that I used the style cause I just need the short date. -
Hi all, So here is my delima I'm using: $Date_Input_1 = GUICtrlCreateDate("", 10, -1, 150,25,$DTS_SHORTDATEFORMAT) Then i use guictrlread to and save the read date to a ini file. After wards i want to be able to read from the ini file and use GUICtrlSetData($Date_Input_1, $Data1) The fun is that the guisetdata wants it in format: yyyy/mm/dd and the read data saves as: dd/mm/yyyy is there any easy was to change this without manually manipulating the strings? Thanks, -1 Edit1: Thank you GEO and Ninja
-
Hi all, I have a script that uses a hotkey to keep the mouse pressed down until the hotkey is press again. (I know real fancy ) What I want to do is send the mousedown directly to the control so that it works without the window being active. Is this possible? Thanks, -1