
jameelo25
Active Members-
Posts
22 -
Joined
-
Last visited
Everything posted by jameelo25
-
_ScreenCapture_Capture not working
jameelo25 replied to jameelo25's topic in AutoIt General Help and Support
Thank you so much!! It's working now, moving it to the top actually fixed it! Thanks again! -
_ScreenCapture_Capture not working
jameelo25 replied to jameelo25's topic in AutoIt General Help and Support
HotKeySet("{^}", "_switchnumb") sleep(100) WEnd #include<ScreenCapture.au3> func _switchnumb() WinActivate("MEmu1") MouseClick("left", 1434, 317) ;free button MouseClick("left", 1187, 162) ;state Select MouseClick("left", 1456, 366) ;delaware MouseClick("left", 1450, 791) ;ok MouseClick("left", 1174, 202) ;select area code MouseClick("left", 1457, 433) ;area code MouseClick("left", 1453, 472) ;ok MouseClick("left", 1240, 246) ;get a custom number MouseClick("left", 1448, 484) ;ok sleep(5000) send("^4") sleep(2000) WinActivate("Chrome") _ScreenCapture_Capture(@ScriptDir&'\test.jpg', 1234, 432, 1327, 446 ) EndFunc Here -
_ScreenCapture_Capture not working
jameelo25 replied to jameelo25's topic in AutoIt General Help and Support
It's 3.3.14.5, didn't know that, really sorry. -
_ScreenCapture_Capture not working
jameelo25 replied to jameelo25's topic in AutoIt General Help and Support
I'm using 3.5.4 -
_ScreenCapture_Capture not working
jameelo25 replied to jameelo25's topic in AutoIt General Help and Support
func _xxxxxx WinActivate(xxxxx) MouseClick(xx) sleep(5000) send("xx") _ScreenCapture_Capture(@ScriptDir&'\test.jpg',1238, 432, 1328, 447) EndFunc The #include got moved to the top of the script, I still get the same error : "C:\Program Files (x86)\AutoIt3\Include\ScreenCapture.au3" (60) : ==> Variable used without being declared.: _WinAPI_BitBlt($hCDC, 0, 0, $iW, $iH, $hDDC, $iLeft, $iTop, $__SCREENCAPTURECONSTANT_SRCCOPY) _WinAPI_BitBlt($hCDC, 0, 0, $iW, $iH, $hDDC, $iLeft, $iTop, ^ ERROR -
_ScreenCapture_Capture not working
jameelo25 replied to jameelo25's topic in AutoIt General Help and Support
I did remove it from my function actually, I put it on top of the script -
_ScreenCapture_Capture not working
jameelo25 replied to jameelo25's topic in AutoIt General Help and Support
Sorry! Here it is "C:\Program Files (x86)\AutoIt3\Include\ScreenCapture.au3" (60) : ==> Variable used without being declared.: _WinAPI_BitBlt($hCDC, 0, 0, $iW, $iH, $hDDC, $iLeft, $iTop, $__SCREENCAPTURECONSTANT_SRCCOPY) _WinAPI_BitBlt($hCDC, 0, 0, $iW, $iH, $hDDC, $iLeft, $iTop, ^ ERROR It's the same script above but I added the & -
_ScreenCapture_Capture not working
jameelo25 replied to jameelo25's topic in AutoIt General Help and Support
Yeah, I discovered that right now, but the problem is im still getting a different error now, it says that the variable is mentioned without it being declared -
So this is a part of my script : func _xxxxxx WinActivate(xxxxx) MouseClick(xx) sleep(5000) send("xx") #include<ScreenCapture.au3> _ScreenCapture_Capture(@ScriptDir'\test.jpg',1238, 432, 1328, 447) EndFunc Whenever I write this code, I get an error from autoit saying : _ScreenCapture_Capture(@ScriptDir'\test.jpg',1238, 432, 1328, 447) _ScreenCapture_Capture(^ ERROR Anyone knows how to fix that?
-
How to increase number value by 1 in $count ?
jameelo25 replied to jameelo25's topic in AutoIt General Help and Support
@xCROv It's for me to get a number from the chat, increase it by 1, and type it in the chat bar. (its a counting up challenge) -
How to increase number value by 1 in $count ?
jameelo25 replied to jameelo25's topic in AutoIt General Help and Support
@Danp2 This thread is about a different function I need in AutoIt than my previous one, here's the code : WinActivate("Discord") MouseClick("left", 404, 702) ;clicking on the previous text MouseClick("left", 404, 702) ; double clicking to select all of it send("^c") ;copying it MouseClick("left", 526, 782) ;clicking on the chat bar Global $count = 0 Send("^v" & $count) ;pasting it and inserting the count in the chat bar $count += 1 ;adding 1 to $count ; i need to figure out how to ctrl v then add 1 to the number -
thanks, i'll try that @JLogan3o13
-
Hey everyone , I want to make a "While" or loop in Autoit where the program counts up numbers automatically in my notepad, starting from the number 5000. So I want it to write this every 2 seconds automatically : 5001 2 secs 5002 2 secs 5003 I don't really know how to do this without writing " send("5003") ", then "send("5004") " then "send(5005)" every single time, any help would be greatly appreciated
-
I want to make the Autoit program type some text in a discord server that I am a part of automatically , like every x minutes or every x hours, how can I do that? My code would be like this : WinActivate("Discord") sleep(2500) MouseClick("left",500, 770) Sleep(1800000) send("hai people ") send("{enter}") (the 1800000 seconds mean 30 minutes) So how can I make the text get typed automatically by autoit every 30 minutes?