Jump to content

Negative1

Active Members
  • Posts

    116
  • Joined

  • Last visited

About Negative1

  • Birthday 08/12/1984

Profile Information

  • Location
    95110

Recent Profile Visitors

290 profile views

Negative1's Achievements

Adventurer

Adventurer (3/7)

0

Reputation

  1. 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!
  2. Hi All, For one of my scripts I have to determine if a USB device is installed, connected, and running. Is this possible without the use of DevCon as I do not have the liberty to install it on the scripted computer. Thanks -1
  3. 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
  4. 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
  5. Hi all, How would I go about finding out the corrdinates of the next type a person clicks after calling a function? Thanks, -1
  6. 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!
  7. 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
  8. 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
  9. 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.
  10. $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
  11. 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
  12. by console window are you referring to a Command console window already running? the scite console window? or a GUI console window of your creation?
  13. Would it be any different if I use _winapi_mouse_event "move" rather than mousemove()?
  14. ...Zombies always showing up when uninvited!
  15. 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?
×
×
  • Create New...