-
Posts
16 -
Joined
-
Last visited
TheFixer's Achievements

Seeker (1/7)
1
Reputation
-
TheFixer changed their profile photo
-
Not sure how to delete this reply.
- 6 replies
-
- if
- wingettitle
-
(and 3 more)
Tagged with:
-
Which function to reach a specific part of a website ?
TheFixer replied to JulienL's topic in AutoIt General Help and Support
Sorry, I'll try to keep that in mind for next time. -
Which function to reach a specific part of a website ?
TheFixer replied to JulienL's topic in AutoIt General Help and Support
Unfortunately @JulienL, If you want something like that you will need to know a lot about how AutoIt works. But even then I am not actually sure if something like that is even possible in AutoIt. It is probably better looking towards one of the more "advanced" languages. Such as C++ I believe C++ might be able to do what you are looking for using reading and writing to a processes memory. But I don't really know anything about C++. -
In case you are not sure what i mean by that just use this code. #RequireAdmin ;switch to excel and create PDF cover WinActivate ("MyExcelSheet2016") Sleep (250) ;maximize excel WinSetState("[ACTIVE]", "", @SW_MAXIMIZE) Sleep (250) ;shift sheet left send ("{HOME}") Sleep (250) ;printing PDF Cover MouseClick ("left", 1387, 550) Sleep (5000) ;closing PDF converter send ("!{f4}") Sleep (250) ;switch to app for picture to Maximize WinActivate ("Picture App") Sleep (250) ;maximize Pictre App WinSetState("[ACTIVE]", "", @SW_MAXIMIZE) Sleep (250) ;switch to Picture Grabber WinActivate ("Pictre Grabber") Sleep (250) ;activate Picture Grabber hotkey send ("^+{F3}") Sleep (6000) send ("^+ {END}") Sleep (250) ;crop new diagram send ("^+{C}") Sleep (500) send ("!{W}") Sleep (500) send ("!{C}") Sleep (500) send ("{ENTER}") Sleep (500) send ("!{s}") Sleep (250) send ("^{s}") Sleep (500) send ("!{f4}") Sleep (1000) ;return to Excel for PDF 2nd page WinActivate ("MyExcelSheet2016") Sleep (250) ;maximize excel WinSetState("[ACTIVE]", "", @SW_MAXIMIZE) Sleep (250) MouseClick ("left", 748, 473) Sleep (500)
-
It's a long shot but the problem could be that you need admin rights for the script? Try adding #RequireAdmin at the very top of your script.
-
When i use this code $winsizecheck1 = WinGetClientSize("[ACTIVE]") $wintitledesktop = WinGetTitle("[ACTIVE]") If WinActive("[ACTIVE]") Then sleep(100) If $winsizecheck1[0] >= 1920 Then If $winsizecheck1[1] >= 1080 Then If not ($wintitledesktop = "Program Manager") Then MsgBox(0,"",$wintitledesktop) $gamesfolderstate = WinGetState($gamesfolder) If WinExists($gamesfolder) Then If Not BitAND($gamesfolderstate, 16) Then WinSetState($gamesfolder,"",@SW_MINIMIZE) EndIf EndIf EndIf EndIf EndIf EndIf The msgbox returns blank... white space. Nothing. Do you know why? p.s here are the global variables you are possibly wondering about. Global $progman = "Program Manager" Global $gamesfolder = "Games on this comp"
- 6 replies
-
- if
- wingettitle
-
(and 3 more)
Tagged with:
-
I assure you i'm not making any hack or exploit or a script that interacts with the game etc. What the script does is checks if a window is 1920 x 1080 (probably a game) then minimizes my games folder. Because usually it's open when i run a game from the folder. I made this because... OCD, a slight case of it anyway.
- 6 replies
-
- if
- wingettitle
-
(and 3 more)
Tagged with:
-
Just did a quick test with the updated code, it still is running the code when i click on my desktop.
- 6 replies
-
- if
- wingettitle
-
(and 3 more)
Tagged with:
-
Basically i am trying to make a script that detects if the currently active window is 1920 x 1080 or bigger. If it detects a window that is active, that is indeed that size. It will do some stuff. The problem i am having is that it is detecting my desktop whenever i click on my desktop, so it's doing stuff when i don't want it to. So all i need to know, is how can i do a simple check to see if a window = a title. Here is what i have so far $wintitledesktop = WinGetTitle("[ACTIVE]") If not $wintitledesktop = "Program Manager" Then ;does stuff endif Program Manager is what my desktop is called btw. The problem with that code is that the script is still detecting the desktop and doing the code. In case you need the whole section of the code, here it is. $winsizecheck1 = WinGetClientSize("[ACTIVE]") $wintitledesktop = WinGetTitle("[ACTIVE]") If WinActive("[ACTIVE]") Then sleep(100) If $winsizecheck1[0] >= 1920 Then If $winsizecheck1[1] >= 1080 Then If not $wintitledesktop = "Program Manager" Then $gamesfolderstate = WinGetState($gamesfolder) If WinExists($gamesfolder) Then If Not BitAND($gamesfolderstate, 16) Then WinSetState($gamesfolder,"",@SW_MINIMIZE) EndIf EndIf EndIf EndIf EndIf EndIf
- 6 replies
-
- if
- wingettitle
-
(and 3 more)
Tagged with:
-
TheFixer reacted to a post in a topic: Check if recycle bin has files inside?
-
Check if recycle bin has files inside?
TheFixer replied to TheFixer's topic in AutoIt General Help and Support
Thank you- 4 replies
-
- recylce
- recyclebin
-
(and 3 more)
Tagged with:
-
Hello reader, I would like to know if and/or how it is possible to check if recycle bin has files or folders in it. So my code would eventually be like this (if these were the commands) if fileshere then FileRecycleEmpty() ;empties recylce bin endif
- 4 replies
-
- recylce
- recyclebin
-
(and 3 more)
Tagged with:
-
TheFixer reacted to a post in a topic: Autoit Random number help?
-
I hope you don't mind but could you give me a little example? (I work best with examples & having things explained to me like I'm stupid pretty much lol)
-
So I need some help... basically all I want to do is have Autoit generate a random number between 1 and 3 and then have an if statement that reads the random number... and lets say if it = 3 it will say the number 3 in a msgbox (like this) sleep(500) Random(1,3) If Random = 2 Then MsgBox(0,"","2") EndIf If Random = 1 Then MsgBox(0,"","1") EndIf If Random = 3 Then MsgBox(0,"","3") EndIf can anyone help me? (thanks in advance!)