Jump to content

lawonama

Active Members
  • Posts

    57
  • Joined

  • Last visited

lawonama's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Right now I have the following code: Func message() ClipPut("0 1 1 0 2 0 2 1") Sleep(250) StringStripWS(ClipGet(), 8) Sleep(250) Send("^v") EndFunc The spaces between 0 and 1 are extra whitespace that the button "tab" does in notepad. How do I remove these from clipboard?
  2. So is it possible that if I press the "X" (close) button on notepad, it automatically saves it as "$VariableName + date of today".
  3. Amazing! Thanks to both of you guys. This is amazing! Is it also possible to use the inserted password as the title of the notepad when you close it, and save it to My Documents > Create map called $sOpenPrompt and save it as "Todays Date + $sOpenPrompt"
  4. Hello, I've tried to make a notepad application to writing notes slightly easier. What I want to do is when I hover my mouse on the top left of the screen a function will be done. It doesn't seem to work. And is it possible to know if the user tries to close the notepad? Like : If X button is pressed: Do this ? #include <Constants.au3> $s = "(1, 1)" if $s = Mousegetpos() then Example() Func Example() $PASSWORD = InputBox("PASSWORD","TYPE HERE PASSWORD","AutoIt","*") Run("notepad.exe") EndFunc while 1 sleep(1000) wend
  5. How do I actually activate google chrome, but it doesn't work. I am trying to activate, and write on google chrome. (It should write on the search place in google.) I use this code: WinActivate("[CLASS:Chrome_WidgetWin_1]") Send("Test") It does go to the google chrome, but it doesn't write. Any solutions?
  6. Well hello there, I'm trying to send keys to an un-opened (unactivated?) window. The code I use is this: Func start() ControlSend("[CLASS:Notepad]", "", "", "Hello {Enter}") EndFunc While 1 HotKeySet("{F2}","start") Wend Yet it only works when I have the NotePad opened. I want it to work when the page is on minus. (On the taskbar but not open)
  7. Yes I know, I didn't meant this. I explained my self wrongly. I want that every time I change GUICtrlCreateInput, the variable changes also. But that doesn't seem like working.
  8. I see it already, but I rather want to use "GUICtrlCreateInput" instead of an "InputBox"
  9. So I have this code: $Form1 = GUICreate("test", 515, 406, 235, 186) $one = GUICtrlCreateInput("", 33, 48, 465, 21) Func one() Send("hello" & $one & "{enter}") EndFunc While 1 HotKeySet("{Numpad1}","one") $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE EndSwitch Wend it doesn't appear to work. I want it like: When you entered your text in the CreateInput, and you press Numpad1, it'll write the sentence automatically for you.
  10. Nevermind it worked.. But can't it be even MORE faster?
  11. Can't this be even FASTER ?
  12. I quit scripting for a very long time and now I want to re-start it.. So I really want-to learn it. I couoldn't understand anything about the "SendKeyDelay" though.. Is there any example or something.. Please/
  13. I know the forum rules, and I know what I'm asking for. This isn't for a game neither is it a spam bot. I just want-to learn everything possible about this. Like 100 times in one second was just something. I might need 10 times in one second or something like that.
  14. So I have this command: Send("hello!") Can I make it, that in 1 second it would said 100 times Send("hello!") ??
  15. Wel I've made a kind of program, and I wanted help about this. I have a form, and I want that it shows a website (www.test.com), But I don't know how to do it, any help about it? I tried to search but couldn't find
×
×
  • Create New...