Jump to content

viresmetus

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by viresmetus

  1. So the above test code works (or actually something very similar as I tweaked the mouse movements but otherwise it's the same idea) but it only works in that specific window / file location. I essentially want it to do "that" but more generally and not tied to that folder
  2. #region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=00000409) --- #region --- Internal functions Au3Recorder Start --- Func _Au3RecordSetup() Opt('WinWaitDelay',100) Opt('WinDetectHiddenText',1) Opt('MouseCoordMode',0) Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '') If $aResult[1] <> '00000409' Then MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(00000409->' & $aResult[1] & ')') EndIf EndFunc Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc _AU3RecordSetup() #endregion --- Internal functions Au3Recorder End --- _WinWaitActivate("Expression","") MouseClick("right",372,308,1) MouseClick("left",429,522,1) Send("{CTRLDOWN}v{CTRLUP}{ENTER}{ENTER}") _WinWaitActivate("C:\Users\Glenn\Downloads\Video1\Posing\Expression\EXPRESSION SERIES.txt - Notepad++","") Send("{CTRLDOWN}v{CTRLUP}") _WinWaitActivate("*C:\Users\Glenn\Downloads\Video1\Posing\Expression\EXPRESSION SERIES.txt - Notepad++","") Send("{CTRLDOWN}s{CTRLUP}") _WinWaitActivate("C:\Users\Glenn\Downloads\Video1\Posing\Expression\EXPRESSION SERIES.txt - Notepad++","") Send("{CTRLDOWN}w{CTRLUP}") _WinWaitActivate("Expression","") MouseClick("left",430,467,1) #endregion --- Au3Recorder generated code End --- I used the recorder to generate this, my issue is I want the file location to be dynamic based on where I am (I'm want to run this macro on a button press in multiple locations), not locked to the above location
  3. As I said I'm probably just going to do that part manually because it's likely too dynamic to bother with
  4. From text in a browser but I can do that part manually
  5. I want to make a text file in my current folder, paste text into the name, open it, paste into the body, and then close. I was trying to create a macro but it has the static info of the file location so it would be useless as I want it to do these actions but be "smart" enough to work regardless of where I am in the file hierarchy. My workflow is: (step 1, 2 are probably fine to do manually, and 9 if it's too complicated) copy text click into opened explorer folder (make it active) create new text file (right-click > new text) paste into text file name open file paste again (there's a hard return in the text so it conveniently works for the title and body) save close window click into opened explorer folder (make it active)
×
×
  • Create New...